public NodePinType(string name, Type type, NodePinTypeCategory category, params Type[] compatibleTypes) { Name = name; WrappedType = type; Category = category; CompatibleTypes = new List <Type>(); CompatibleTypes.Add(type); foreach (var compatibleType in compatibleTypes) { CompatibleTypes.Add(compatibleType); } }
protected void RegisterPinType <T>(string name, NodePinTypeCategory category = NodePinTypeCategory.Uncategorized) { RegisterPinType(new NodePinType(name, typeof(T), category)); }