Click here to Skip to main content

Articles by SergeyT2 (Tip/Tricks: 5)

Tip/Tricks: 5

RSS Feed
No articles have been posted.
No blogs have been submitted.

Average tips rating: 4.75

Programming Tips
General
Posted: 28 Dec 2010   Updated: 28 Dec 2010   Views: 1,855   Rating: 4.50/5    Votes: 4   Popularity: 2.71
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
With System.Windows.Forms it's not necessary to pass the owner. You can use static property Cursor.Current.I use the following class in my projects:public sealed class WaitCursor : IDisposable{ private Cursor _SavedCursor; public WaitCursor() { _SavedCursor =...
Posted: 21 Jun 2011   Updated: 21 Jun 2011   Views: 3,003   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
You can use Action instead of MethodInvoker as well. And ".Invoke" at the method is unnesessary.public static void ThreadSafeCall(this Control control, Action method){ if (control.InvokeRequired) { control.Invoke(method); } else { method(); ...
Posted: 18 Jul 2011   Updated: 18 Jul 2011   Views: 1,601   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
The codepublic static IEnumerable IfMatchWith(this IEnumerable myList, string itemToMatch){ foreach (var item in myList.Where(item => item == itemToMatch)) yield return item;}could be rewritten as:public static IEnumerable IfMatchWith(this...
Posted: 20 Jul 2011   Updated: 20 Jul 2011   Views: 2,147   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
public static IEnumerable MakeAllLower(this IEnumerable myList){ foreach (var item in myList) yield return item.ToLower();}Could be rewritten as:public static IEnumerable MakeAllLower(this IEnumerable myList){ return myList.Select(item...
Posted: 20 Jul 2011   Updated: 20 Jul 2011   Views: 1,337   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
myList.IfMatch...
No reference articles have been posted.

SergeyT2
Software Developer
Russian Federation Russian Federation
No Biography provided


Advertise | Privacy | Mobile
Web03 | 2.8.141015.1 | Last Updated 22 Oct 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid