static string GetGroupName(DefaultUserGroup group)
 {
     string fieldName = Enum.GetName(typeof(DefaultUserGroup), group);
     FieldInfo field = typeof(DefaultUserGroup).GetField(fieldName);
     UserGroupDefinitionAttribute definition = AttributeUtils.GetAttribute<UserGroupDefinitionAttribute>(field);
     return definition.Name;
 }
Esempio n. 2
0
        static string GetGroupName(DefaultUserGroup group)
        {
            string    fieldName = Enum.GetName(typeof(DefaultUserGroup), group);
            FieldInfo field     = typeof(DefaultUserGroup).GetField(fieldName);
            UserGroupDefinitionAttribute definition = AttributeUtils.GetAttribute <UserGroupDefinitionAttribute>(field);

            return(definition.Name);
        }