void LoadGenericTypes() { this.subTypes.Clear(); if (null != this.targetType && this.targetType.IsGenericTypeDefinition) { Type[] generics = this.targetType.GetGenericArguments(); foreach (Type t in generics) { TypeKeyValue entry = new TypeKeyValue(t, typeChangedCallBack); this.subTypes.Add(entry); typeChangedCallBack(entry); } } }