System.FieldReflectionLibrary.GetData C# (CSharp) Метод

GetData() публичный статический Метод

public static GetData ( Type type, string info, &data ) : bool
type Type
info string
Результат bool
        public static bool GetData<T>(this Type type, string info, out T data)
        {
            var field = type.GetField(info, ReflectionLibrary.STATIC_MEMBER_BINDING_FLAGS);

            var valid = field != null && field.FieldType == typeof(T);

            data = valid ? (T) field.GetValue(null) : default;

            return valid;
        }
        

Same methods

FieldReflectionLibrary::GetData ( Type type, string info, object &data ) : bool
FieldReflectionLibrary::GetData ( object o, string info, object &data ) : bool
FieldReflectionLibrary::GetData ( object o, string info, &data ) : bool