void EditorInit() { for (int i = 0; i < methodData.parameters.Count; i++) { ParameterData parameter = methodData.parameters[i]; EditorParameter editorParameter = new EditorParameter(parameter, level); editorParameters.Add(editorParameter); } }
public MethodData(object instance, MethodInfo methodInfo) { this.instance = instance; this.methodInfo = methodInfo; name = methodInfo.Name; if (this.methodInfo.IsPublic) { accessModifier = AccessModifier.Public; } else if (this.methodInfo.IsPrivate) { accessModifier = AccessModifier.Private; } if (this.methodInfo.IsStatic) { instanceType = InstanceType.Static; } else { instanceType = InstanceType.Instance; } if (name.StartsWith("get_")) { isGet = true; } if (name.StartsWith("set_")) { isSet = true; } ParameterInfo[] parameters = methodInfo.GetParameters(); foreach (var item in parameters) { ParameterData parameter = new ParameterData(item); this.parameters.Add(parameter); } }