diff --git a/dir.props b/dir.props
index db8965d74a80..b9f3ab572cdd 100644
--- a/dir.props
+++ b/dir.props
@@ -231,6 +231,11 @@
true
+
+
+ $(NoWarn);0169;0649
+
+
$(SourceDir)Common\src
diff --git a/src/System.Collections.Immutable/ref/System.Collections.Immutable.cs b/src/System.Collections.Immutable/ref/System.Collections.Immutable.cs
index 6815c08199a1..d78033ec633e 100644
--- a/src/System.Collections.Immutable/ref/System.Collections.Immutable.cs
+++ b/src/System.Collections.Immutable/ref/System.Collections.Immutable.cs
@@ -93,17 +93,14 @@ public static partial class ImmutableArray
public static System.Collections.Immutable.ImmutableArray Create(T[] items, int start, int length) { throw null; }
public static System.Collections.Immutable.ImmutableArray ToImmutableArray(this System.Collections.Generic.IEnumerable items) { throw null; }
}
- [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct ImmutableArray : System.Collections.Generic.ICollection, System.Collections.Generic.IEnumerable, System.Collections.Generic.IList, System.Collections.Generic.IReadOnlyCollection, System.Collections.Generic.IReadOnlyList, System.Collections.ICollection, System.Collections.IEnumerable, System.Collections.IList, System.Collections.Immutable.IImmutableList, System.Collections.IStructuralComparable, System.Collections.IStructuralEquatable, System.IEquatable>
{
+ internal T[] array;
public static readonly System.Collections.Immutable.ImmutableArray Empty;
public bool IsDefault { get { throw null; } }
public bool IsDefaultOrEmpty { get { throw null; } }
public bool IsEmpty { get { throw null; } }
public T this[int index] { get { throw null; } }
-#if FEATURE_ITEMREFAPI
- public ref readonly T ItemRef(int index) { throw null; }
-#endif
public int Length { get { throw null; } }
int System.Collections.Generic.ICollection.Count { get { throw null; } }
bool System.Collections.Generic.ICollection.IsReadOnly { get { throw null; } }
@@ -139,6 +136,9 @@ public void CopyTo(T[] destination, int destinationIndex) { }
public System.Collections.Immutable.ImmutableArray Insert(int index, T item) { throw null; }
public System.Collections.Immutable.ImmutableArray InsertRange(int index, System.Collections.Generic.IEnumerable items) { throw null; }
public System.Collections.Immutable.ImmutableArray InsertRange(int index, System.Collections.Immutable.ImmutableArray items) { throw null; }
+#if FEATURE_ITEMREFAPI
+ public ref readonly T ItemRef(int index) { throw null; }
+#endif
public int LastIndexOf(T item) { throw null; }
public int LastIndexOf(T item, int startIndex) { throw null; }
public int LastIndexOf(T item, int startIndex, int count) { throw null; }
@@ -201,9 +201,6 @@ internal Builder() { }
public int Capacity { get { throw null; } set { } }
public int Count { get { throw null; } set { } }
public T this[int index] { get { throw null; } set { } }
-#if FEATURE_ITEMREFAPI
- public ref readonly T ItemRef(int index) { throw null; }
-#endif
bool System.Collections.Generic.ICollection.IsReadOnly { get { throw null; } }
public void Add(T item) { }
public void AddRange(System.Collections.Generic.IEnumerable items) { }
@@ -224,6 +221,9 @@ public void CopyTo(T[] array, int index) { }
public int IndexOf(T item, int startIndex, int count) { throw null; }
public int IndexOf(T item, int startIndex, int count, System.Collections.Generic.IEqualityComparer equalityComparer) { throw null; }
public void Insert(int index, T item) { }
+#if FEATURE_ITEMREFAPI
+ public ref readonly T ItemRef(int index) { throw null; }
+#endif
public int LastIndexOf(T item) { throw null; }
public int LastIndexOf(T item, int startIndex) { throw null; }
public int LastIndexOf(T item, int startIndex, int count) { throw null; }
@@ -241,9 +241,9 @@ public void Sort(int index, int count, System.Collections.Generic.IComparer c
public T[] ToArray() { throw null; }
public System.Collections.Immutable.ImmutableArray ToImmutable() { throw null; }
}
- [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct Enumerator
{
+ private readonly T[] _array;
public T Current { get { throw null; } }
public bool MoveNext() { throw null; }
}
@@ -326,8 +326,8 @@ void System.Collections.IDictionary.Remove(object key) { }
System.Collections.Immutable.IImmutableDictionary System.Collections.Immutable.IImmutableDictionary.SetItem(TKey key, TValue value) { throw null; }
System.Collections.Immutable.IImmutableDictionary System.Collections.Immutable.IImmutableDictionary.SetItems(System.Collections.Generic.IEnumerable> items) { throw null; }
public System.Collections.Immutable.ImmutableDictionary.Builder ToBuilder() { throw null; }
- public bool TryGetKey(TKey equalKey, out TKey actualKey) { actualKey = default(TKey); throw null; }
- public bool TryGetValue(TKey key, out TValue value) { value = default(TValue); throw null; }
+ public bool TryGetKey(TKey equalKey, out TKey actualKey) { throw null; }
+ public bool TryGetValue(TKey key, out TValue value) { throw null; }
public System.Collections.Immutable.ImmutableDictionary WithComparers(System.Collections.Generic.IEqualityComparer keyComparer) { throw null; }
public System.Collections.Immutable.ImmutableDictionary WithComparers(System.Collections.Generic.IEqualityComparer keyComparer, System.Collections.Generic.IEqualityComparer valueComparer) { throw null; }
public sealed partial class Builder : System.Collections.Generic.ICollection>, System.Collections.Generic.IDictionary, System.Collections.Generic.IEnumerable>, System.Collections.Generic.IReadOnlyCollection>, System.Collections.Generic.IReadOnlyDictionary, System.Collections.ICollection, System.Collections.IDictionary, System.Collections.IEnumerable
@@ -371,12 +371,12 @@ void System.Collections.IDictionary.Add(object key, object value) { }
void System.Collections.IDictionary.Remove(object key) { }
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; }
public System.Collections.Immutable.ImmutableDictionary ToImmutable() { throw null; }
- public bool TryGetKey(TKey equalKey, out TKey actualKey) { actualKey = default(TKey); throw null; }
- public bool TryGetValue(TKey key, out TValue value) { value = default(TValue); throw null; }
+ public bool TryGetKey(TKey equalKey, out TKey actualKey) { throw null; }
+ public bool TryGetValue(TKey key, out TValue value) { throw null; }
}
- [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct Enumerator : System.Collections.Generic.IEnumerator>, System.Collections.IEnumerator, System.IDisposable
{
+ private object _dummy;
public System.Collections.Generic.KeyValuePair Current { get { throw null; } }
object System.Collections.IEnumerator.Current { get { throw null; } }
public void Dispose() { }
@@ -443,7 +443,7 @@ void System.Collections.ICollection.CopyTo(System.Array array, int arrayIndex) {
System.Collections.Immutable.IImmutableSet System.Collections.Immutable.IImmutableSet.SymmetricExcept(System.Collections.Generic.IEnumerable other) { throw null; }
System.Collections.Immutable.IImmutableSet System.Collections.Immutable.IImmutableSet.Union(System.Collections.Generic.IEnumerable other) { throw null; }
public System.Collections.Immutable.ImmutableHashSet.Builder ToBuilder() { throw null; }
- public bool TryGetValue(T equalValue, out T actualValue) { actualValue = default(T); throw null; }
+ public bool TryGetValue(T equalValue, out T actualValue) { throw null; }
public System.Collections.Immutable.ImmutableHashSet Union(System.Collections.Generic.IEnumerable other) { throw null; }
public System.Collections.Immutable.ImmutableHashSet WithComparer(System.Collections.Generic.IEqualityComparer equalityComparer) { throw null; }
public sealed partial class Builder : System.Collections.Generic.ICollection, System.Collections.Generic.IEnumerable, System.Collections.Generic.IReadOnlyCollection, System.Collections.Generic.ISet, System.Collections.IEnumerable
@@ -473,9 +473,9 @@ void System.Collections.Generic.ICollection.CopyTo(T[] array, int arrayIndex)
public System.Collections.Immutable.ImmutableHashSet ToImmutable() { throw null; }
public void UnionWith(System.Collections.Generic.IEnumerable other) { }
}
- [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct Enumerator : System.Collections.Generic.IEnumerator, System.Collections.IEnumerator, System.IDisposable
{
+ private object _dummy;
public T Current { get { throw null; } }
object System.Collections.IEnumerator.Current { get { throw null; } }
public void Dispose() { }
@@ -496,9 +496,9 @@ public static void Enqueue(ref System.Collections.Immutable.ImmutableQueue
public static bool InterlockedInitialize(ref System.Collections.Immutable.ImmutableArray location, System.Collections.Immutable.ImmutableArray value) { throw null; }
public static void Push(ref System.Collections.Immutable.ImmutableStack location, T value) { }
public static bool TryAdd(ref System.Collections.Immutable.ImmutableDictionary location, TKey key, TValue value) { throw null; }
- public static bool TryDequeue(ref System.Collections.Immutable.ImmutableQueue location, out T value) { value = default(T); throw null; }
- public static bool TryPop(ref System.Collections.Immutable.ImmutableStack location, out T value) { value = default(T); throw null; }
- public static bool TryRemove(ref System.Collections.Immutable.ImmutableDictionary location, TKey key, out TValue value) { value = default(TValue); throw null; }
+ public static bool TryDequeue(ref System.Collections.Immutable.ImmutableQueue location, out T value) { throw null; }
+ public static bool TryPop(ref System.Collections.Immutable.ImmutableStack location, out T value) { throw null; }
+ public static bool TryRemove(ref System.Collections.Immutable.ImmutableDictionary location, TKey key, out TValue value) { throw null; }
public static bool TryUpdate(ref System.Collections.Immutable.ImmutableDictionary location, TKey key, TValue newValue, TValue comparisonValue) { throw null; }
public static bool Update(ref T location, System.Func transformer) where T : class { throw null; }
public static bool Update(ref T location, System.Func transformer, TArg transformerArgument) where T : class { throw null; }
@@ -530,9 +530,6 @@ internal ImmutableList() { }
public int Count { get { throw null; } }
public bool IsEmpty { get { throw null; } }
public T this[int index] { get { throw null; } }
-#if FEATURE_ITEMREFAPI
- public ref readonly T ItemRef(int index) { throw null; }
-#endif
bool System.Collections.Generic.ICollection.IsReadOnly { get { throw null; } }
T System.Collections.Generic.IList.this[int index] { get { throw null; } set { } }
bool System.Collections.ICollection.IsSynchronized { get { throw null; } }
@@ -568,6 +565,9 @@ public void ForEach(System.Action action) { }
public int IndexOf(T item, int index, int count, System.Collections.Generic.IEqualityComparer equalityComparer) { throw null; }
public System.Collections.Immutable.ImmutableList Insert(int index, T item) { throw null; }
public System.Collections.Immutable.ImmutableList InsertRange(int index, System.Collections.Generic.IEnumerable items) { throw null; }
+#if FEATURE_ITEMREFAPI
+ public ref readonly T ItemRef(int index) { throw null; }
+#endif
public int LastIndexOf(T item, int index, int count, System.Collections.Generic.IEqualityComparer equalityComparer) { throw null; }
public System.Collections.Immutable.ImmutableList Remove(T value) { throw null; }
public System.Collections.Immutable.ImmutableList Remove(T value, System.Collections.Generic.IEqualityComparer equalityComparer) { throw null; }
@@ -619,9 +619,6 @@ public sealed partial class Builder : System.Collections.Generic.ICollection,
internal Builder() { }
public int Count { get { throw null; } }
public T this[int index] { get { throw null; } set { } }
-#if FEATURE_ITEMREFAPI
- public ref readonly T ItemRef(int index) { throw null; }
-#endif
bool System.Collections.Generic.ICollection.IsReadOnly { get { throw null; } }
bool System.Collections.ICollection.IsSynchronized { get { throw null; } }
object System.Collections.ICollection.SyncRoot { get { throw null; } }
@@ -658,6 +655,9 @@ public void ForEach(System.Action action) { }
public int IndexOf(T item, int index, int count, System.Collections.Generic.IEqualityComparer equalityComparer) { throw null; }
public void Insert(int index, T item) { }
public void InsertRange(int index, System.Collections.Generic.IEnumerable items) { }
+#if FEATURE_ITEMREFAPI
+ public ref readonly T ItemRef(int index) { throw null; }
+#endif
public int LastIndexOf(T item) { throw null; }
public int LastIndexOf(T item, int startIndex) { throw null; }
public int LastIndexOf(T item, int startIndex, int count) { throw null; }
@@ -684,9 +684,9 @@ void System.Collections.IList.Remove(object value) { }
public bool TrueForAll(System.Predicate match) { throw null; }
}
[System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(2))]
- [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct Enumerator : System.Collections.Generic.IEnumerator, System.Collections.IEnumerator, System.IDisposable
{
+ private object _dummy;
public T Current { get { throw null; } }
object System.Collections.IEnumerator.Current { get { throw null; } }
public void Dispose() { }
@@ -700,7 +700,7 @@ public static partial class ImmutableQueue
public static System.Collections.Immutable.ImmutableQueue Create() { throw null; }
public static System.Collections.Immutable.ImmutableQueue Create(T item) { throw null; }
public static System.Collections.Immutable.ImmutableQueue Create(params T[] items) { throw null; }
- public static System.Collections.Immutable.IImmutableQueue Dequeue(this System.Collections.Immutable.IImmutableQueue queue, out T value) { value = default(T); throw null; }
+ public static System.Collections.Immutable.IImmutableQueue Dequeue(this System.Collections.Immutable.IImmutableQueue queue, out T value) { throw null; }
}
public sealed partial class ImmutableQueue : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable, System.Collections.Immutable.IImmutableQueue
{
@@ -709,7 +709,7 @@ internal ImmutableQueue() { }
public bool IsEmpty { get { throw null; } }
public System.Collections.Immutable.ImmutableQueue Clear() { throw null; }
public System.Collections.Immutable.ImmutableQueue Dequeue() { throw null; }
- public System.Collections.Immutable.ImmutableQueue Dequeue(out T value) { value = default(T); throw null; }
+ public System.Collections.Immutable.ImmutableQueue Dequeue(out T value) { throw null; }
public System.Collections.Immutable.ImmutableQueue Enqueue(T value) { throw null; }
public System.Collections.Immutable.ImmutableQueue.Enumerator GetEnumerator() { throw null; }
public T Peek() { throw null; }
@@ -722,9 +722,9 @@ internal ImmutableQueue() { }
System.Collections.Immutable.IImmutableQueue System.Collections.Immutable.IImmutableQueue.Dequeue() { throw null; }
System.Collections.Immutable.IImmutableQueue System.Collections.Immutable.IImmutableQueue.Enqueue(T value) { throw null; }
[System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(2))]
- [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct Enumerator
{
+ private object _dummy;
public T Current { get { throw null; } }
public bool MoveNext() { throw null; }
}
@@ -754,9 +754,6 @@ internal ImmutableSortedDictionary() { }
public int Count { get { throw null; } }
public bool IsEmpty { get { throw null; } }
public TValue this[TKey key] { get { throw null; } }
-#if FEATURE_ITEMREFAPI
- public ref readonly TValue ValueRef(TKey key) { throw null; }
-#endif
public System.Collections.Generic.IComparer KeyComparer { get { throw null; } }
public System.Collections.Generic.IEnumerable Keys { get { throw null; } }
bool System.Collections.Generic.ICollection>.IsReadOnly { get { throw null; } }
@@ -805,8 +802,11 @@ void System.Collections.IDictionary.Remove(object key) { }
System.Collections.Immutable.IImmutableDictionary System.Collections.Immutable.IImmutableDictionary.SetItem(TKey key, TValue value) { throw null; }
System.Collections.Immutable.IImmutableDictionary System.Collections.Immutable.IImmutableDictionary.SetItems(System.Collections.Generic.IEnumerable> items) { throw null; }
public System.Collections.Immutable.ImmutableSortedDictionary.Builder ToBuilder() { throw null; }
- public bool TryGetKey(TKey equalKey, out TKey actualKey) { actualKey = default(TKey); throw null; }
- public bool TryGetValue(TKey key, out TValue value) { value = default(TValue); throw null; }
+ public bool TryGetKey(TKey equalKey, out TKey actualKey) { throw null; }
+ public bool TryGetValue(TKey key, out TValue value) { throw null; }
+#if FEATURE_ITEMREFAPI
+ public ref readonly TValue ValueRef(TKey key) { throw null; }
+#endif
public System.Collections.Immutable.ImmutableSortedDictionary WithComparers(System.Collections.Generic.IComparer keyComparer) { throw null; }
public System.Collections.Immutable.ImmutableSortedDictionary WithComparers(System.Collections.Generic.IComparer keyComparer, System.Collections.Generic.IEqualityComparer valueComparer) { throw null; }
public sealed partial class Builder : System.Collections.Generic.ICollection>, System.Collections.Generic.IDictionary, System.Collections.Generic.IEnumerable>, System.Collections.Generic.IReadOnlyCollection>, System.Collections.Generic.IReadOnlyDictionary, System.Collections.ICollection, System.Collections.IDictionary, System.Collections.IEnumerable
@@ -814,9 +814,6 @@ public sealed partial class Builder : System.Collections.Generic.ICollection KeyComparer { get { throw null; } set { } }
public System.Collections.Generic.IEnumerable Keys { get { throw null; } }
bool System.Collections.Generic.ICollection>.IsReadOnly { get { throw null; } }
@@ -853,13 +850,16 @@ void System.Collections.IDictionary.Add(object key, object value) { }
void System.Collections.IDictionary.Remove(object key) { }
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; }
public System.Collections.Immutable.ImmutableSortedDictionary ToImmutable() { throw null; }
- public bool TryGetKey(TKey equalKey, out TKey actualKey) { actualKey = default(TKey); throw null; }
- public bool TryGetValue(TKey key, out TValue value) { value = default(TValue); throw null; }
+ public bool TryGetKey(TKey equalKey, out TKey actualKey) { throw null; }
+ public bool TryGetValue(TKey key, out TValue value) { throw null; }
+#if FEATURE_ITEMREFAPI
+ public ref readonly TValue ValueRef(TKey key) { throw null; }
+#endif
}
[System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(2))]
- [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct Enumerator : System.Collections.Generic.IEnumerator>, System.Collections.IEnumerator, System.IDisposable
{
+ private object _dummy;
public System.Collections.Generic.KeyValuePair Current { get { throw null; } }
object System.Collections.IEnumerator.Current { get { throw null; } }
public void Dispose() { }
@@ -889,9 +889,6 @@ internal ImmutableSortedSet() { }
public int Count { get { throw null; } }
public bool IsEmpty { get { throw null; } }
public T this[int index] { get { throw null; } }
-#if FEATURE_ITEMREFAPI
- public ref readonly T ItemRef(int index) { throw null; }
-#endif
public System.Collections.Generic.IComparer KeyComparer { get { throw null; } }
public T Max { get { throw null; } }
public T Min { get { throw null; } }
@@ -913,6 +910,9 @@ internal ImmutableSortedSet() { }
public bool IsProperSupersetOf(System.Collections.Generic.IEnumerable other) { throw null; }
public bool IsSubsetOf(System.Collections.Generic.IEnumerable other) { throw null; }
public bool IsSupersetOf(System.Collections.Generic.IEnumerable other) { throw null; }
+#if FEATURE_ITEMREFAPI
+ public ref readonly T ItemRef(int index) { throw null; }
+#endif
public bool Overlaps(System.Collections.Generic.IEnumerable other) { throw null; }
public System.Collections.Immutable.ImmutableSortedSet Remove(T value) { throw null; }
public System.Collections.Generic.IEnumerable Reverse() { throw null; }
@@ -947,7 +947,7 @@ void System.Collections.IList.RemoveAt(int index) { }
System.Collections.Immutable.IImmutableSet System.Collections.Immutable.IImmutableSet.SymmetricExcept(System.Collections.Generic.IEnumerable other) { throw null; }
System.Collections.Immutable.IImmutableSet System.Collections.Immutable.IImmutableSet.Union(System.Collections.Generic.IEnumerable other) { throw null; }
public System.Collections.Immutable.ImmutableSortedSet.Builder ToBuilder() { throw null; }
- public bool TryGetValue(T equalValue, out T actualValue) { actualValue = default(T); throw null; }
+ public bool TryGetValue(T equalValue, out T actualValue) { throw null; }
public System.Collections.Immutable.ImmutableSortedSet Union(System.Collections.Generic.IEnumerable other) { throw null; }
public System.Collections.Immutable.ImmutableSortedSet WithComparer(System.Collections.Generic.IComparer comparer) { throw null; }
public sealed partial class Builder : System.Collections.Generic.ICollection, System.Collections.Generic.IEnumerable, System.Collections.Generic.IReadOnlyCollection, System.Collections.Generic.ISet, System.Collections.ICollection, System.Collections.IEnumerable
@@ -955,9 +955,6 @@ public sealed partial class Builder : System.Collections.Generic.ICollection,
internal Builder() { }
public int Count { get { throw null; } }
public T this[int index] { get { throw null; } }
-#if FEATURE_ITEMREFAPI
- public ref readonly T ItemRef(int index) { throw null; }
-#endif
public System.Collections.Generic.IComparer KeyComparer { get { throw null; } set { } }
public T Max { get { throw null; } }
public T Min { get { throw null; } }
@@ -974,6 +971,9 @@ public void IntersectWith(System.Collections.Generic.IEnumerable other) { }
public bool IsProperSupersetOf(System.Collections.Generic.IEnumerable other) { throw null; }
public bool IsSubsetOf(System.Collections.Generic.IEnumerable other) { throw null; }
public bool IsSupersetOf(System.Collections.Generic.IEnumerable other) { throw null; }
+#if FEATURE_ITEMREFAPI
+ public ref readonly T ItemRef(int index) { throw null; }
+#endif
public bool Overlaps(System.Collections.Generic.IEnumerable other) { throw null; }
public bool Remove(T item) { throw null; }
public System.Collections.Generic.IEnumerable Reverse() { throw null; }
@@ -988,9 +988,9 @@ void System.Collections.ICollection.CopyTo(System.Array array, int arrayIndex) {
public void UnionWith(System.Collections.Generic.IEnumerable other) { }
}
[System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(2))]
- [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct Enumerator : System.Collections.Generic.IEnumerator, System.Collections.IEnumerator, System.IDisposable
{
+ private object _dummy;
public T Current { get { throw null; } }
object System.Collections.IEnumerator.Current { get { throw null; } }
public void Dispose() { }
@@ -1004,7 +1004,7 @@ public static partial class ImmutableStack
public static System.Collections.Immutable.ImmutableStack Create() { throw null; }
public static System.Collections.Immutable.ImmutableStack Create(T item) { throw null; }
public static System.Collections.Immutable.ImmutableStack Create(params T[] items) { throw null; }
- public static System.Collections.Immutable.IImmutableStack Pop(this System.Collections.Immutable.IImmutableStack stack, out T value) { value = default(T); throw null; }
+ public static System.Collections.Immutable.IImmutableStack Pop(this System.Collections.Immutable.IImmutableStack stack, out T value) { throw null; }
}
public sealed partial class ImmutableStack : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable, System.Collections.Immutable.IImmutableStack
{
@@ -1018,7 +1018,7 @@ internal ImmutableStack() { }
public ref readonly T PeekRef() { throw null; }
#endif
public System.Collections.Immutable.ImmutableStack Pop() { throw null; }
- public System.Collections.Immutable.ImmutableStack Pop(out T value) { value = default(T); throw null; }
+ public System.Collections.Immutable.ImmutableStack Pop(out T value) { throw null; }
public System.Collections.Immutable.ImmutableStack Push(T value) { throw null; }
System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; }
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; }
@@ -1026,9 +1026,9 @@ internal ImmutableStack() { }
System.Collections.Immutable.IImmutableStack System.Collections.Immutable.IImmutableStack.Pop() { throw null; }
System.Collections.Immutable.IImmutableStack System.Collections.Immutable.IImmutableStack.Push(T value) { throw null; }
[System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(2))]
- [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct Enumerator
{
+ private object _dummy;
public T Current { get { throw null; } }
public bool MoveNext() { throw null; }
}
diff --git a/src/System.Collections.Specialized/ref/System.Collections.Specialized.cs b/src/System.Collections.Specialized/ref/System.Collections.Specialized.cs
index d998213a7c8d..915e6cec09c9 100644
--- a/src/System.Collections.Specialized/ref/System.Collections.Specialized.cs
+++ b/src/System.Collections.Specialized/ref/System.Collections.Specialized.cs
@@ -5,12 +5,11 @@
// Changes to this file must follow the http://aka.ms/api-review process.
// ------------------------------------------------------------------------------
-
namespace System.Collections.Specialized
{
- [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct BitVector32
{
+ private int _dummy;
public BitVector32(System.Collections.Specialized.BitVector32 value) { throw null; }
public BitVector32(int data) { throw null; }
public int Data { get { throw null; } }
@@ -24,9 +23,9 @@ public partial struct BitVector32
public override int GetHashCode() { throw null; }
public override string ToString() { throw null; }
public static string ToString(System.Collections.Specialized.BitVector32 value) { throw null; }
- [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public readonly partial struct Section
{
+ private readonly int _dummy;
public short Mask { get { throw null; } }
public short Offset { get { throw null; } }
public bool Equals(System.Collections.Specialized.BitVector32.Section obj) { throw null; }
@@ -87,7 +86,7 @@ public void CopyTo(System.Array array, int index) { }
public void Remove(object key) { }
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; }
}
- public abstract partial class NameObjectCollectionBase : System.Collections.ICollection, System.Collections.IEnumerable, System.Runtime.Serialization.ISerializable, System.Runtime.Serialization.IDeserializationCallback
+ public abstract partial class NameObjectCollectionBase : System.Collections.ICollection, System.Collections.IEnumerable, System.Runtime.Serialization.IDeserializationCallback, System.Runtime.Serialization.ISerializable
{
protected NameObjectCollectionBase() { }
protected NameObjectCollectionBase(System.Collections.IEqualityComparer equalityComparer) { }
@@ -162,7 +161,7 @@ protected void InvalidateCachedArrays() { }
public virtual void Remove(string name) { }
public virtual void Set(string name, string value) { }
}
- public partial class OrderedDictionary : System.Collections.ICollection, System.Collections.IDictionary, System.Collections.IEnumerable, System.Collections.Specialized.IOrderedDictionary, System.Runtime.Serialization.ISerializable, System.Runtime.Serialization.IDeserializationCallback
+ public partial class OrderedDictionary : System.Collections.ICollection, System.Collections.IDictionary, System.Collections.IEnumerable, System.Collections.Specialized.IOrderedDictionary, System.Runtime.Serialization.IDeserializationCallback, System.Runtime.Serialization.ISerializable
{
public OrderedDictionary() { }
public OrderedDictionary(System.Collections.IEqualityComparer comparer) { }
@@ -187,10 +186,10 @@ public void CopyTo(System.Array array, int index) { }
public virtual void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
public void Insert(int index, object key, object value) { }
protected virtual void OnDeserialization(object sender) { }
- void System.Runtime.Serialization.IDeserializationCallback.OnDeserialization(object sender) { }
public void Remove(object key) { }
public void RemoveAt(int index) { }
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; }
+ void System.Runtime.Serialization.IDeserializationCallback.OnDeserialization(object sender) { }
}
public partial class StringCollection : System.Collections.ICollection, System.Collections.IEnumerable, System.Collections.IList
{
diff --git a/src/System.Collections/ref/System.Collections.cs b/src/System.Collections/ref/System.Collections.cs
index b86af9e8e812..e8d493423675 100644
--- a/src/System.Collections/ref/System.Collections.cs
+++ b/src/System.Collections/ref/System.Collections.cs
@@ -108,9 +108,9 @@ void System.Collections.IDictionary.Add(object key, object value) { }
void System.Collections.IDictionary.Remove(object key) { }
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; }
public bool TryGetValue(TKey key, out TValue value) { throw null; }
- [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct Enumerator : System.Collections.Generic.IEnumerator>, System.Collections.IDictionaryEnumerator, System.Collections.IEnumerator, System.IDisposable
{
+ private object _dummy;
public System.Collections.Generic.KeyValuePair Current { get { throw null; } }
System.Collections.DictionaryEntry System.Collections.IDictionaryEnumerator.Entry { get { throw null; } }
object System.Collections.IDictionaryEnumerator.Key { get { throw null; } }
@@ -136,9 +136,9 @@ void System.Collections.Generic.ICollection.Clear() { }
System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; }
void System.Collections.ICollection.CopyTo(System.Array array, int index) { }
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; }
- [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct Enumerator : System.Collections.Generic.IEnumerator, System.Collections.IEnumerator, System.IDisposable
{
+ private object _dummy;
public TKey Current { get { throw null; } }
object System.Collections.IEnumerator.Current { get { throw null; } }
public void Dispose() { }
@@ -162,9 +162,9 @@ void System.Collections.Generic.ICollection.Clear() { }
System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; }
void System.Collections.ICollection.CopyTo(System.Array array, int index) { }
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; }
- [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct Enumerator : System.Collections.Generic.IEnumerator, System.Collections.IEnumerator, System.IDisposable
{
+ private object _dummy;
public TValue Current { get { throw null; } }
object System.Collections.IEnumerator.Current { get { throw null; } }
public void Dispose() { }
@@ -221,9 +221,9 @@ void System.Collections.Generic.ICollection.Add(T item) { }
public void TrimExcess() { }
public bool TryGetValue(T equalValue, out T actualValue) { throw null; }
public void UnionWith(System.Collections.Generic.IEnumerable other) { }
- [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct Enumerator : System.Collections.Generic.IEnumerator, System.Collections.IEnumerator, System.IDisposable
{
+ private object _dummy;
public T Current { get { throw null; } }
object System.Collections.IEnumerator.Current { get { throw null; } }
public void Dispose() { }
@@ -266,9 +266,9 @@ void System.Collections.Generic.ICollection.Add(T value) { }
System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; }
void System.Collections.ICollection.CopyTo(System.Array array, int index) { }
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; }
- [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct Enumerator : System.Collections.Generic.IEnumerator, System.Collections.IEnumerator, System.IDisposable, System.Runtime.Serialization.IDeserializationCallback, System.Runtime.Serialization.ISerializable
{
+ private object _dummy;
public T Current { get { throw null; } }
object System.Collections.IEnumerator.Current { get { throw null; } }
public void Dispose() { }
@@ -354,9 +354,9 @@ void System.Collections.IList.Remove(object item) { }
public T[] ToArray() { throw null; }
public void TrimExcess() { }
public bool TrueForAll(System.Predicate match) { throw null; }
- [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct Enumerator : System.Collections.Generic.IEnumerator, System.Collections.IEnumerator, System.IDisposable
{
+ private object _dummy;
public T Current { get { throw null; } }
object System.Collections.IEnumerator.Current { get { throw null; } }
public void Dispose() { }
@@ -386,9 +386,9 @@ void System.Collections.ICollection.CopyTo(System.Array array, int index) { }
public void TrimExcess() { }
public bool TryDequeue(out T result) { throw null; }
public bool TryPeek(out T result) { throw null; }
- [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct Enumerator : System.Collections.Generic.IEnumerator, System.Collections.IEnumerator, System.IDisposable
{
+ private object _dummy;
public T Current { get { throw null; } }
object System.Collections.IEnumerator.Current { get { throw null; } }
public void Dispose() { }
@@ -437,9 +437,9 @@ void System.Collections.IDictionary.Add(object key, object value) { }
void System.Collections.IDictionary.Remove(object key) { }
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; }
public bool TryGetValue(TKey key, out TValue value) { throw null; }
- [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct Enumerator : System.Collections.Generic.IEnumerator>, System.Collections.IDictionaryEnumerator, System.Collections.IEnumerator, System.IDisposable
{
+ private object _dummy;
public System.Collections.Generic.KeyValuePair Current { get { throw null; } }
System.Collections.DictionaryEntry System.Collections.IDictionaryEnumerator.Entry { get { throw null; } }
object System.Collections.IDictionaryEnumerator.Key { get { throw null; } }
@@ -465,9 +465,9 @@ void System.Collections.Generic.ICollection.Clear() { }
System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; }
void System.Collections.ICollection.CopyTo(System.Array array, int index) { }
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; }
- [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct Enumerator : System.Collections.Generic.IEnumerator, System.Collections.IEnumerator, System.IDisposable
{
+ private object _dummy;
public TKey Current { get { throw null; } }
object System.Collections.IEnumerator.Current { get { throw null; } }
public void Dispose() { }
@@ -491,9 +491,9 @@ void System.Collections.Generic.ICollection.Clear() { }
System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; }
void System.Collections.ICollection.CopyTo(System.Array array, int index) { }
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; }
- [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct Enumerator : System.Collections.Generic.IEnumerator, System.Collections.IEnumerator, System.IDisposable
{
+ private object _dummy;
public TValue Current { get { throw null; } }
object System.Collections.IEnumerator.Current { get { throw null; } }
public void Dispose() { }
@@ -597,9 +597,9 @@ void System.Collections.ICollection.CopyTo(System.Array array, int index) { }
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; }
public bool TryGetValue(T equalValue, out T actualValue) { throw null; }
public void UnionWith(System.Collections.Generic.IEnumerable other) { }
- [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct Enumerator : System.Collections.Generic.IEnumerator, System.Collections.IEnumerator, System.IDisposable, System.Runtime.Serialization.IDeserializationCallback, System.Runtime.Serialization.ISerializable
{
+ private object _dummy;
public T Current { get { throw null; } }
object System.Collections.IEnumerator.Current { get { throw null; } }
public void Dispose() { }
@@ -631,9 +631,9 @@ void System.Collections.ICollection.CopyTo(System.Array array, int arrayIndex) {
public void TrimExcess() { }
public bool TryPeek(out T result) { throw null; }
public bool TryPop(out T result) { throw null; }
- [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct Enumerator : System.Collections.Generic.IEnumerator, System.Collections.IEnumerator, System.IDisposable
{
+ private object _dummy;
public T Current { get { throw null; } }
object System.Collections.IEnumerator.Current { get { throw null; } }
public void Dispose() { }
diff --git a/src/System.ComponentModel.Composition/ref/System.ComponentModel.Composition.cs b/src/System.ComponentModel.Composition/ref/System.ComponentModel.Composition.cs
index d60af9077de4..aadd04f683cf 100644
--- a/src/System.ComponentModel.Composition/ref/System.ComponentModel.Composition.cs
+++ b/src/System.ComponentModel.Composition/ref/System.ComponentModel.Composition.cs
@@ -7,6 +7,12 @@
namespace System.ComponentModel.Composition
{
+ public static partial class AdaptationConstants
+ {
+ public const string AdapterContractName = "System.ComponentModel.Composition.AdapterContract";
+ public const string AdapterFromContractMetadataName = "FromContract";
+ public const string AdapterToContractMetadataName = "ToContract";
+ }
public static partial class AttributedModelServices
{
public static System.ComponentModel.Composition.Primitives.ComposablePart AddExportedValue(this System.ComponentModel.Composition.Hosting.CompositionBatch batch, string contractName, T exportedValue) { throw null; }
@@ -17,6 +23,7 @@ public static void ComposeExportedValue(this System.ComponentModel.Compositio
public static void ComposeParts(this System.ComponentModel.Composition.Hosting.CompositionContainer container, params object[] attributedParts) { }
public static System.ComponentModel.Composition.Primitives.ComposablePart CreatePart(System.ComponentModel.Composition.Primitives.ComposablePartDefinition partDefinition, object attributedPart) { throw null; }
public static System.ComponentModel.Composition.Primitives.ComposablePart CreatePart(object attributedPart) { throw null; }
+ public static System.ComponentModel.Composition.Primitives.ComposablePart CreatePart(object attributedPart, System.Reflection.ReflectionContext reflectionContext) { throw null; }
public static System.ComponentModel.Composition.Primitives.ComposablePartDefinition CreatePartDefinition(System.Type type, System.ComponentModel.Composition.Primitives.ICompositionElement origin) { throw null; }
public static System.ComponentModel.Composition.Primitives.ComposablePartDefinition CreatePartDefinition(System.Type type, System.ComponentModel.Composition.Primitives.ICompositionElement origin, bool ensureIsDiscoverable) { throw null; }
public static bool Exports(this System.ComponentModel.Composition.Primitives.ComposablePartDefinition part, System.Type contractType) { throw null; }
@@ -30,6 +37,13 @@ public static void ComposeParts(this System.ComponentModel.Composition.Hosting.C
public static bool Imports(this System.ComponentModel.Composition.Primitives.ComposablePartDefinition part) { throw null; }
public static bool Imports(this System.ComponentModel.Composition.Primitives.ComposablePartDefinition part, System.ComponentModel.Composition.Primitives.ImportCardinality importCardinality) { throw null; }
public static System.ComponentModel.Composition.Primitives.ComposablePart SatisfyImportsOnce(this System.ComponentModel.Composition.ICompositionService compositionService, object attributedPart) { throw null; }
+ public static System.ComponentModel.Composition.Primitives.ComposablePart SatisfyImportsOnce(this System.ComponentModel.Composition.ICompositionService compositionService, object attributedPart, System.Reflection.ReflectionContext reflectionContext) { throw null; }
+ }
+ [System.AttributeUsageAttribute((System.AttributeTargets)(1), AllowMultiple=false, Inherited=true)]
+ public partial class CatalogReflectionContextAttribute : System.Attribute
+ {
+ public CatalogReflectionContextAttribute(System.Type reflectionContextType) { }
+ public System.Reflection.ReflectionContext CreateReflectionContext() { throw null; }
}
public partial class ChangeRejectedException : System.ComponentModel.Composition.CompositionException
{
@@ -42,6 +56,7 @@ public ChangeRejectedException(string message, System.Exception innerException)
public partial class CompositionContractMismatchException : System.Exception
{
public CompositionContractMismatchException() { }
+ protected CompositionContractMismatchException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
public CompositionContractMismatchException(string message) { }
public CompositionContractMismatchException(string message, System.Exception innerException) { }
}
@@ -56,7 +71,6 @@ public CompositionError(string message, System.Exception exception) { }
public System.Exception Exception { get { throw null; } }
public override string ToString() { throw null; }
}
- [System.Diagnostics.DebuggerDisplayAttribute("{Message}")]
public partial class CompositionException : System.Exception
{
public CompositionException() { }
@@ -73,15 +87,15 @@ public enum CreationPolicy
NonShared = 2,
Shared = 1,
}
- [System.AttributeUsageAttribute(AttributeTargets.Class | AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Method, AllowMultiple=true, Inherited=false)]
+ [System.AttributeUsageAttribute((System.AttributeTargets)(452), AllowMultiple=true, Inherited=false)]
public partial class ExportAttribute : System.Attribute
{
public ExportAttribute() { }
public ExportAttribute(string contractName) { }
public ExportAttribute(string contractName, System.Type contractType) { }
public ExportAttribute(System.Type contractType) { }
- public string ContractName { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
- public System.Type ContractType { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
+ public string ContractName { get { throw null; } }
+ public System.Type ContractType { get { throw null; } }
}
public partial class ExportFactory