Extract a method refactoring

preview_player
Показать описание
In this video, I'm going to teach you the popular "Extract Method" refactoring in Visual Studio.
Рекомендации по теме
Комментарии
Автор

muchas gracias, me sirvio mucho el metodo

marcelomartinez
Автор

Abi Türk müsün bir şey soracağım da ben visaul studio 2019 kullanıyorum ve methodu extract etme sağ tık yapınca gözükmüyor karşıma çıkmıyor eklentili olarak resharper var ama bir de refactor kısmıda koyu olarak var o da seçilmiyor uğraştıma ama bulamadım çaresini şöyle de bir hata alıyorum.

System.ArgumentException : textContainer is not a SourceTextContainer that was created from an ITextBuffer.
Parameter name: textContainer
at textContainer)
at documentId, Workspace workspace, Func`2 getVsTextSpan)
at workspace, DocumentId documentId, Func`2 getTextSpanForMapping, Func`2 getVsTextSpan, OptionSet options)
at workspace, DocumentId documentId, TextSpan textSpan, OptionSet options)
at workspace, Solution oldSolution, Solution newSolution, CancellationToken cancellationToken)
at workspace, Document fromDocument, ImmutableArray`1 operations, String title, IProgressTracker progressTracker, CancellationToken cancellationToken)
at getFromDocument, IProgressTracker progressTracker, CancellationToken cancellationToken)
at
at extensionManager, Object extension, Action action)
at exceptionObject)

aliihsan