public override _P_BaseMethod CreateInstance(object obj) { lock(LockObj) { var tmpInstance = new _P_NativeInstanceMethod(obj, this.MethodInfo, this.Environment); return tmpInstance; } }
public void AddMethod(System.Reflection.MethodInfo methodInfo, LNGMapAttribute attribute) { var tmpMethod = new _P_NativeInstanceMethod(mObject, methodInfo, this.Environment); tmpMethod.AssignFeatures(attribute.Features); tmpMethod.AssignSecondaryFeatures(attribute.SecondaryFeatures); this.AddMethod(tmpMethod); }