public void RegisterNativeBehavior(Type type, NativeBehavior behavior) { this.nativeBehaviors[type] = behavior; }
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; }