Esempio n. 1
0
        protected internal void MapMethod(string propName, Method function)
        {
            var prop = new TotemProperty();

            prop.Type   = TotemPropertyType.Property;
            prop.Getter = @this => new ClrMethod(propName, @this, function);
            prop.Flags  = TotemPropertyFlags.ReadOnly;
            properties.Add(propName, prop);
        }
Esempio n. 2
0
        protected internal void MapProperty(string propName, PropertyGetter getter, PropertySetter setter)
        {
            var prop = new TotemProperty();

            prop.Type   = TotemPropertyType.Property;
            prop.Getter = getter;
            prop.Setter = setter;
            properties.Add(propName, prop);
        }