4 references to AddMethodIfAvailable
Microsoft.CodeAnalysis.CodeStyle (4)
src\roslyn\src\Analyzers\Core\Analyzers\SimplifyInterpolation\AbstractSimplifyInterpolationHelpers.cs (4)
45
AddMethodIfAvailable
(dateType, nameof(DateTime.ToLongDateString), "D");
46
AddMethodIfAvailable
(dateType, nameof(DateTime.ToShortDateString), "d");
51
AddMethodIfAvailable
(timeType, nameof(DateTime.ToLongTimeString), "T");
52
AddMethodIfAvailable
(timeType, nameof(DateTime.ToShortTimeString), "t");