コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ImmutableSortedSetBuilderDebuggerProxy{T}"/> class.
 /// </summary>
 /// <param name="builder">The collection to display in the debugger</param>
 public ImmutableSortedSetBuilderDebuggerProxy(ImmutableSortedSet <T> .Builder builder)
 {
     Requires.NotNull(builder, "builder");
     _set = builder;
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DebuggerProxy"/> class.
 /// </summary>
 /// <param name="builder">The collection to display in the debugger</param>
 public DebuggerProxy(ImmutableSortedSet <T> .Builder builder)
 {
     Requires.NotNull(builder, "builder");
     this.set = builder.Root;
 }
コード例 #3
0
        public static ImmutableSortedSet <TSource> ToImmutableSortedSet <TSource>(this ImmutableSortedSet <TSource> .Builder builder)
        {
            Requires.NotNull(builder, nameof(builder));

            return(builder.ToImmutable());
        }
コード例 #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ImmutableSortedSetDebuggerProxy{T}"/> class.
 /// </summary>
 /// <param name="set">The collection to display in the debugger</param>
 public ImmutableSortedSetDebuggerProxy(ImmutableSortedSet <T> set)
 {
     Requires.NotNull(set, nameof(set));
     _set = set;
 }