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