System.PropertyReflectionLibrary.Retrieve C# (CSharp) Method

Retrieve() public static method

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

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

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

            return valid;
        }

Same methods

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