コード例 #1
0
        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);
        }
コード例 #2
0
        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;
        }