Beispiel #1
0
        protected PropSetter(MethodInfo method, string name, ReactPropBaseAttribute attribute)
        {
            Method   = method;
            Name     = name;
            PropType = GetPropType(method);

            _genericDelegate = GenericDelegate.Create(method);

            _propType = attribute.CustomType == ReactPropBaseAttribute.UseDefaultType
                ? GetPropType(PropType)
                : attribute.CustomType;

            _attribute = attribute;
        }