Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Code with generic types
Message
From
09/11/2008 07:24:36
 
General information
Forum:
Level Extreme
Category:
Other
Title:
Code with generic types
Miscellaneous
Thread ID:
01360734
Message ID:
01360734
Views:
24
Michel,

Is there anything that can be done to allow LessThan + CharExpression + GreaterThan in code fragments

This 'eats' part of the code in preview mode. Problem is you just don't know how it will look like
class xxx<T> where T : IComparable<T>
{
 
}
public static partial class ExtensionMethods
{
        public static bool InList<T>(this T s, params T[] list) where T : IEquatable<T>
		{
			return list.Contains(s);
		}
}
If I use « and » instead of LT and GT you see what I mean but I have to manually edit the code
class xxx«T» where T : IComparable«T»
{
 
}
public static partial class ExtensionMethods
{
        public static bool InList«T»(this T s, params T[] list) where T : IEquatable«T»
		{
			return list.Contains(s);
		}
}
thanks,
Gregory
Next
Reply
Map
View

Click here to load this message in the networking platform