public WoopsaMethod(WoopsaObject container, string name, WoopsaValueType returnType, IEnumerable <WoopsaMethodArgumentInfo> argumentInfos, WoopsaMethodInvoke methodInvoke) : base(container, name) { ReturnType = returnType; ArgumentInfos = argumentInfos; _methodInvoke = methodInvoke; if (container != null) { container.Add(this); } }
public WoopsaProperty(WoopsaObject container, string name, WoopsaValueType type, WoopsaPropertyGet get, WoopsaPropertySet set) : base(container, name) { Type = type; _get = get; IsReadOnly = set == null; if (!IsReadOnly) { _set = set; } if (container != null) { container.Add(this); } }