IsEnumeration() 공개 정적인 메소드

public static IsEnumeration ( ITypeReference value ) : bool
value ITypeReference
리턴 bool
예제 #1
0
        public static string GetName(IFieldReference value)
        {
            IType fieldType     = value.FieldType;
            IType declaringType = value.DeclaringType;

            if (fieldType.Equals(declaringType))
            {
                ITypeReference typeReference = fieldType as ITypeReference;
                if (typeReference != null)
                {
                    if (Helper.IsEnumeration(typeReference))
                    {
                        return(value.Name);
                    }
                }
            }

            return(value.Name + " : " + value.FieldType.ToString());
        }