protected override Mono.Cecil.IMetadataTokenProvider ImportCore(MemberImportingOptions options, ICSharpCode.TreeView.SharpTreeNode node) { //Checks that the task hasn't been canceled options.CancellationToken.ThrowIfCancellationRequested(); //Adds the field to the destination type ((TypeDefinition)Destination).Methods.Add(methodClone); if (_createNode) node.AddChildAndColorAncestors(new ILEditTreeNode(methodClone, false)); //Returns the new field return methodClone; }