Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Code with generic types
Message
De
12/11/2008 03:01:09
 
 
À
11/11/2008 20:24:43
Information générale
Forum:
Level Extreme
Catégorie:
Autre
Divers
Thread ID:
01360734
Message ID:
01361242
Vues:
16
>>Is there anything that can be done to allow LessThan + CharExpression + GreaterThan in code fragments
>
>Can you send me such a code by email so I can try it? Because, I just tested it back under the PRE tag, which should encapsulate the code portion, and I was able to post it.

Code below sent by email
You can send it alright and it shows alright - but not in preview mode

If you start a reply on this message - go to preview - you'll see
	public static partial class ExtensionMethods
	{
		public static bool Between<T>(this T s, T s1, T s2) where T : IComparable<T>
		{
			return false;
		}
		public static bool InList<T>(this T s, params T[] list) where T : IEquatable<T>
		{
			return list.Contains(s);
		}
	}
}
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform