You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
608 B
21 lines
608 B
5 years ago
|
// Copyright (c) Microsoft. All rights reserved.
|
||
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||
|
|
||
|
#if !NET_4_6
|
||
|
using System.Collections.ObjectModel;
|
||
|
|
||
|
namespace System.Runtime.CompilerServices
|
||
|
{
|
||
|
internal sealed class TrueReadOnlyCollection<T> : ReadOnlyCollection<T>
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// Creates instance of TrueReadOnlyCollection, wrapping passed in array.
|
||
|
/// !!! DOES NOT COPY THE ARRAY !!!
|
||
|
/// </summary>
|
||
|
public TrueReadOnlyCollection(T[] list)
|
||
|
: base(list)
|
||
|
{
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
#endif
|