public void RegistDynamicProperty(Name propertyName, DynamicPropertyCalculator_T2 surrogate, string description = null)
        {
            if (surrogate == null)
                throw new ArgumentNullException(nameof(surrogate));

            internal_RegistDynamicProperty(propertyName, description, surrogate.GetMethodInfo(),
                (context,args) => surrogate(context, args[0],args[1]));
        }
예제 #2
0
        public void RegistDynamicProperty(Name propertyName, DynamicPropertyCalculator_T2 surrogate)
        {
            if (surrogate == null)
            {
                throw new ArgumentNullException(nameof(surrogate));
            }

            internal_RegistDynamicProperty(propertyName, surrogate.Method,
                                           (context, args) => surrogate(context, args[0], args[1]));
        }
예제 #3
0
 public void RegistDynamicProperty(Name propertyName, string description, DynamicPropertyCalculator_T2 surrogate)
 {
     _registry.RegistDynamicProperty(propertyName, description, surrogate);
 }
예제 #4
0
 public void RegistDynamicProperty(Name propertyName, DynamicPropertyCalculator_T2 surrogate)
 {
     _registry.RegistDynamicProperty(propertyName, surrogate);
 }