Re: [Banshee-List] banshee r3335 - in trunk/banshee: .src/Extensions/Banshee.Lastfm/Banshee.Lastfm.Audioscrobblersrc/Libraries/Lastfm/Lastfm
- From: "Brian Nickel" <brian nickel gmail com>
- To: <banshee-list gnome org>
- Subject: Re: [Banshee-List] banshee r3335 - in trunk/banshee: .src/Extensions/Banshee.Lastfm/Banshee.Lastfm.Audioscrobblersrc/Libraries/Lastfm/Lastfm
- Date: Wed, 27 Feb 2008 12:28:21 -0700
> trunk/banshee/src/Extensions/Banshee.Lastfm/Banshee.Lastfm.Audioscrobbler/
> AudioscrobblerService.cs Wed Feb 27 08:50:05 2008
> > - if (song_started && !queued && track.Duration.TotalSeconds
> > 30 &&
> > + if (!queued && track.Duration.TotalSeconds > 30 &&
> > track.ArtistName != "" && track.TrackTitle != "" &&
>
> Please do not compare against "". Use String.Empty, or use the
> String.IsNullOrEmpty method.
Comparing against String.Empty is not recommended. If the string is known to
be non-null, String.Length == 0 would be the best method, otherwise
String.IsNullOrEmpty.
http://msdn2.microsoft.com/en-us/library/ms182279(VS.80).aspx
- Brian
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]