Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void AddComponent(Type type)
- {
- var genericType = typeof(ComponentSetup<>);
- var makeme = genericType.MakeGenericType(type);
- Components.Add(type, Activator.CreateInstance(makeme));
- }
- public class ComponentSetup<T>
- {
- //coÅ› tam
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement