private void MakeCallExtension(IProgressIndicator pi) { var sharedToExtensionHelper = new SharedToExtensionHelper(); var validReferences = ReferencePointers .Select(pointer => pointer.GetReference()) .Where(reference => reference != null && reference.IsValid()) .ToList(); validReferences.ForEachWithProgress(pi, "Converting Shared Method Calls to Extension Method Calls...", sharedToExtensionHelper.MakeCallExtension); }
private void MakeCallShared(IProgressIndicator pi) { var sharedToExtensionHelper = new SharedToExtensionHelper(); var validReferences = ReferencePointers .Select(pointer => pointer.GetReference()) .Where(reference => reference != null && reference.IsValid()) .ToList(); validReferences.ForEachWithProgress(pi, "Converting Extension Method Calls to Shared Method Calls...", sharedToExtensionHelper.MakeCallShared); }