Example #1
0
 public void RegisterNativeBehavior(Type type, NativeBehavior behavior)
 {
     this.nativeBehaviors[type] = behavior;
 }
Example #2
0
        public IBehavior CreateNativeBehavior(IBehavior superclass, Type type)
        {
            IMetaClass supermeta = null;

            if (superclass != null)
                supermeta = superclass.MetaClass;

            IMetaClass meta = new BaseMetaClass(this.metaclassclass, supermeta, this, string.Empty);
            NativeBehavior behavior = new NativeBehavior(meta, superclass, this, type);
            return behavior;
        }