System.PropertyReflectionLibrary.Retrieve C# (CSharp) Method

Retrieve() public static method

public static Retrieve ( Type type, string info, object &data ) : bool
type Type
info string
data object
return bool
        public static bool Retrieve(this Type type, string info, out object data)
        {
            var property = type.GetProperty(info, ReflectionLibrary.STATIC_MEMBER_BINDING_FLAGS);

            var valid = property != null && property.CanRead;

            data = valid ? property.GetValue(null) : null;

            return valid;
        }

Same methods

PropertyReflectionLibrary::Retrieve ( object o, string info, object &data ) : bool
PropertyReflectionLibrary::Retrieve ( Type type, string info, &data ) : bool
PropertyReflectionLibrary::Retrieve ( object o, string info, &data ) : bool