You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Smdn.Reflection.ReverseGenerating/Smdn.Reflection.ReverseGenerating/CSharpFormatter.FormatTypeNameWithNullabilityAnnotation.cs
-40Lines changed: 0 additions & 40 deletions
Original file line number
Diff line number
Diff line change
@@ -41,10 +41,6 @@ FormatTypeNameOptions options
41
41
)
42
42
{
43
43
if(target.Type.IsByRef){
44
-
#if WORKAROUND_NULLABILITYINFO_BYREFTYPE
45
-
varelementTypeNullabilityInfo=target.ElementType;
46
-
#endif
47
-
48
44
switch(options.AttributeProvider){
49
45
caseParameterInfopara:
50
46
// retval/parameter modifiers
@@ -55,22 +51,11 @@ FormatTypeNameOptions options
55
51
else/*if (para.IsRetval)*/
56
52
builder.Append("ref ");
57
53
58
-
#if WORKAROUND_NULLABILITYINFO_BYREFTYPE
59
-
// [.net6.0] Currently, NullabilityInfo.ElementType is always null if the type is ByRef.
60
-
// Uses the workaround implementation instead in that case.
61
-
// See https://github.com/dotnet/runtime/issues/72320
62
-
if(options.NullabilityInfoContextis not null&&target.ElementTypeisnull&¶.ParameterType.HasElementType)
0 commit comments