コード例 #1
0
        public static NullableTypeTree GetNullableTypeTree(this Type @this, INullableTypeTreeBuilder?builder = null)
        {
            var info = new NullabilityTypeInfo(GetNullabilityKind(@this), null, false);

            return(GetNullableTypeTreeWithProfile(@this, info.GenerateAnnotations().GetEnumerator(), info.Kind, builder ?? NullableTypeTree.ObliviousDefaultBuilder));
        }
コード例 #2
0
 public static NullableTypeTree GetNullableTypeTree(this Type @this, NullabilityTypeInfo info, INullableTypeTreeBuilder?builder = null)
 {
     return(GetNullableTypeTreeWithProfile(@this, info.GenerateAnnotations().GetEnumerator(), info.Kind, builder));
 }