Exemple #1
0
        static void GetInstantiatorAndWrapper(Type type, out ValueInstantiator instantiator, out ValueWrapper wrapper)
        {
            if (type.IsEnum)
            {
                instantiator = EnumValue.CreateInstantiator(type);
                wrapper      = EnumValue.CreateWrapper(type);
                return;
            }

            instantiator = ReflectedClassValue.Instantiate;
            wrapper      = ReflectedClassValue.WrapRawValue;
        }