Boo.Lang.Compiler.TypeSystem.GenericsServices.IsGenericMethod C# (CSharp) Method

IsGenericMethod() public static method

public static IsGenericMethod ( IEntity entity ) : bool
entity IEntity
return bool
        public static bool IsGenericMethod(IEntity entity)
        {
            IMethod method = entity as IMethod;
            return (method != null && method.GenericInfo != null);
        }

Usage Example

Example #1
0
 /// <summary>
 /// Checks if a specified entity is not a generic definition.
 /// </summary>
 public bool NotGenericDefinition(IEntity entity)
 {
     if (!(GenericsServices.IsGenericType(entity) || GenericsServices.IsGenericMethod(entity)))
     {
         Errors.Add(CompilerErrorFactory.NotAGenericDefinition(ConstructionNode, entity.FullName));
         return(true);
     }
     return(false);
 }
All Usage Examples Of Boo.Lang.Compiler.TypeSystem.GenericsServices::IsGenericMethod