public void DeleteMethod(UIRMethod method) { var existing = Type.Methods.Single(x => x.MethodId == method.MethodId); var index = Type.Methods.IndexOf(existing); Type.Methods.RemoveAt(index); }
public void UpdateMethod(UIRMethod method) { var existing = Type.Methods.Single(x => x.MethodId == method.MethodId); var index = Type.Methods.IndexOf(existing); Type.Methods[index] = method; method.DeclaringType = Type; }