Esempio n. 1
0
        public static apiType GetApiType(this suffix enumVal)
        {
            var     typeInfo = enumVal.GetType().GetTypeInfo();
            var     v        = typeInfo.DeclaredMembers.First(x => x.Name == enumVal.ToString());
            apiType a        = v.GetCustomAttribute <ApiTypeAttribute>().ApiType;

            return(a);
        }
Esempio n. 2
0
 public IsStaticAttribute(int _isStatic)
 {
     this.value = _isStatic == 0 ? apiType.Status : (_isStatic == 2 ? apiType.Static : apiType.nonStatic);
 }
Esempio n. 3
0
 public ApiTypeAttribute(apiType _apitype)
 {
     this.value = _apitype;
 }