Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Perez Rodriguez <joperezr@microsoft.com>2017-01-20 03:38:55 +0300
committerGitHub <noreply@github.com>2017-01-20 03:38:55 +0300
commit2847e0ec9f7c9ac42d44d2bc8c6fd39e504b7a9b (patch)
tree0aa0d6304cd9e0a7baabe07ac8c069973d5008c8 /src/System.Runtime
parent245d6cd52564a4d062dcd27f6d9e6326524945e2 (diff)
Adding missing Configurations.props for refs and fixing the existing ones (#15291)
Adding missing Configurations.props for refs and fixing the existing ones
Diffstat (limited to 'src/System.Runtime')
-rw-r--r--src/System.Runtime/ref/Configurations.props2
-rw-r--r--src/System.Runtime/ref/System.Runtime.cs74
-rw-r--r--src/System.Runtime/ref/System.Runtime.csproj1
3 files changed, 1 insertions, 76 deletions
diff --git a/src/System.Runtime/ref/Configurations.props b/src/System.Runtime/ref/Configurations.props
index 8b803e0772..c701755863 100644
--- a/src/System.Runtime/ref/Configurations.props
+++ b/src/System.Runtime/ref/Configurations.props
@@ -3,7 +3,7 @@
<PropertyGroup>
<BuildConfigurations>
netcoreapp;
- netstandard;
+ uap;
</BuildConfigurations>
</PropertyGroup>
</Project> \ No newline at end of file
diff --git a/src/System.Runtime/ref/System.Runtime.cs b/src/System.Runtime/ref/System.Runtime.cs
index a862cf3556..f3bc42bae3 100644
--- a/src/System.Runtime/ref/System.Runtime.cs
+++ b/src/System.Runtime/ref/System.Runtime.cs
@@ -83,10 +83,8 @@ namespace System
public static string BaseDirectory { get { throw null; } }
public static void SetSwitch(string switchName, bool isEnabled) { }
public static bool TryGetSwitch(string switchName, out bool isEnabled) { throw null; }
-#if netcoreapp11
public static string TargetFrameworkName { get { throw null; } }
public static object GetData(string name) { throw null; }
-#endif
}
public partial class EntryPointNotFoundException : System.TypeLoadException
@@ -245,10 +243,8 @@ namespace System
public static System.Array CreateInstance(System.Type elementType, params long[] lengths) { throw null; }
public static T[] Empty<T>() { throw null; }
public static bool Exists<T>(T[] array, System.Predicate<T> match) { throw null; }
-#if netcoreapp11
public static void Fill<T>(T[] array, T value) { throw null; }
public static void Fill<T>(T[] array, T value, int startIndex, int count) { throw null; }
-#endif
public static T Find<T>(T[] array, System.Predicate<T> match) { throw null; }
public static T[] FindAll<T>(T[] array, System.Predicate<T> match) { throw null; }
public static int FindIndex<T>(T[] array, int startIndex, int count, System.Predicate<T> match) { throw null; }
@@ -288,10 +284,8 @@ namespace System
public static void Resize<T>(ref T[] array, int newSize) { }
public static void Reverse(System.Array array) { }
public static void Reverse(System.Array array, int index, int length) { }
-#if netcoreapp11
public static void Reverse<T>(T[] array) { }
public static void Reverse<T>(T[] array, int index, int length) { }
-#endif
public void SetValue(object value, int index) { }
public void SetValue(object value, int index1, int index2) { }
public void SetValue(object value, int index1, int index2, int index3) { }
@@ -1104,10 +1098,8 @@ namespace System
public static bool IsDefined(System.Type enumType, object value) { throw null; }
public static object Parse(System.Type enumType, string value) { throw null; }
public static object Parse(System.Type enumType, string value, bool ignoreCase) { throw null; }
-#if netcoreapp11
public static TEnum Parse<TEnum>(String value) where TEnum : struct { return default(TEnum); }
public static TEnum Parse<TEnum>(String value, bool ignoreCase) where TEnum : struct { return default(TEnum); }
-#endif
System.TypeCode System.IConvertible.GetTypeCode() { throw null; }
bool System.IConvertible.ToBoolean(System.IFormatProvider provider) { throw null; }
byte System.IConvertible.ToByte(System.IFormatProvider provider) { throw null; }
@@ -1143,10 +1135,8 @@ namespace System
public string ToString(System.IFormatProvider provider) { throw null; }
[System.ObsoleteAttribute("The provider argument is not used. Please use ToString(String).")]
public string ToString(string format, System.IFormatProvider provider) { throw null; }
-#if netcoreapp11
public static bool TryParse(System.Type enumType, string value, out object result) { result = default(object); return default(bool); }
public static bool TryParse(System.Type enumType, string value, bool ignoreCase, out object result) { result = default(object); return default(bool); }
-#endif
public static bool TryParse<TEnum>(string value, out TEnum result) where TEnum : struct { throw null; }
public static bool TryParse<TEnum>(string value, bool ignoreCase, out TEnum result) where TEnum : struct { throw null; }
}
@@ -1256,9 +1246,7 @@ namespace System
public static System.GCNotificationStatus WaitForFullGCComplete() { throw null; }
public static System.GCNotificationStatus WaitForFullGCComplete(int millisecondsTimeout) { throw null; }
public static void WaitForPendingFinalizers() { }
-#if netcoreapp11
public static long GetAllocatedBytesForCurrentThread() { return default(long); }
-#endif
}
public enum GCCollectionMode
{
@@ -1492,9 +1480,7 @@ namespace System
}
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct IntPtr : System.Runtime.Serialization.ISerializable
-#if netcoreapp11
, IEquatable<IntPtr>
-#endif
{
public static readonly System.IntPtr Zero;
public IntPtr(int value) { throw null; }
@@ -1505,9 +1491,7 @@ namespace System
public static int Size { get { throw null; } }
public static System.IntPtr Add(System.IntPtr pointer, int offset) { throw null; }
public override bool Equals(object obj) { throw null; }
-#if netcoreapp11
bool IEquatable<IntPtr>.Equals(IntPtr other) { return default(bool); }
-#endif
public override int GetHashCode() { throw null; }
void System.Runtime.Serialization.ISerializable.GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
public static System.IntPtr operator +(System.IntPtr pointer, int offset) { throw null; }
@@ -1576,9 +1560,7 @@ namespace System
public partial class Lazy<T>
{
public Lazy() { }
-#if netcoreapp11
public Lazy(T value) { }
-#endif
public Lazy(bool isThreadSafe) { }
public Lazy(System.Func<T> valueFactory) { }
public Lazy(System.Func<T> valueFactory, bool isThreadSafe) { }
@@ -2072,12 +2054,10 @@ namespace System
public string Remove(int startIndex, int count) { throw null; }
public string Replace(char oldChar, char newChar) { throw null; }
public string Replace(string oldValue, string newValue) { throw null; }
-#if netcoreapp11
public string[] Split(char separator, System.StringSplitOptions options = System.StringSplitOptions.None) { return default(string[]); }
public string[] Split(char separator, int count, System.StringSplitOptions options = System.StringSplitOptions.None) { return default(string[]); }
public string[] Split(string separator, System.StringSplitOptions options = System.StringSplitOptions.None) { return default(string[]); }
public string[] Split(string separator, int count, System.StringSplitOptions options = System.StringSplitOptions.None) { return default(string[]); }
-#endif
public string[] Split(params char[] separator) { throw null; }
public string[] Split(char[] separator, int count) { throw null; }
public string[] Split(char[] separator, int count, System.StringSplitOptions options) { throw null; }
@@ -2334,16 +2314,12 @@ namespace System
public static System.Tuple<T1, T2, T3, T4, T5, T6, T7, System.Tuple<T8>> Create<T1, T2, T3, T4, T5, T6, T7, T8>(T1 item1, T2 item2, T3 item3, T4 item4, T5 item5, T6 item6, T7 item7, T8 item8) { throw null; }
}
public partial class Tuple<T1> : System.Collections.IStructuralComparable, System.Collections.IStructuralEquatable, System.IComparable
-#if netcoreapp11
, System.Runtime.CompilerServices.ITuple
-#endif
{
public Tuple(T1 item1) { }
public T1 Item1 { get { throw null; } }
-#if netcoreapp11
object Runtime.CompilerServices.ITuple.this[int index] { get { throw null; } }
int Runtime.CompilerServices.ITuple.Length { get { throw null; } }
-#endif
public override bool Equals(object obj) { throw null; }
public override int GetHashCode() { throw null; }
int System.Collections.IStructuralComparable.CompareTo(object other, System.Collections.IComparer comparer) { throw null; }
@@ -2353,17 +2329,13 @@ namespace System
public override string ToString() { throw null; }
}
public partial class Tuple<T1, T2> : System.Collections.IStructuralComparable, System.Collections.IStructuralEquatable, System.IComparable
-#if netcoreapp11
, System.Runtime.CompilerServices.ITuple
-#endif
{
public Tuple(T1 item1, T2 item2) { }
public T1 Item1 { get { throw null; } }
public T2 Item2 { get { throw null; } }
-#if netcoreapp11
object Runtime.CompilerServices.ITuple.this[int index] { get { throw null; } }
int Runtime.CompilerServices.ITuple.Length { get { throw null; } }
-#endif
public override bool Equals(object obj) { throw null; }
public override int GetHashCode() { throw null; }
int System.Collections.IStructuralComparable.CompareTo(object other, System.Collections.IComparer comparer) { throw null; }
@@ -2373,18 +2345,14 @@ namespace System
public override string ToString() { throw null; }
}
public partial class Tuple<T1, T2, T3> : System.Collections.IStructuralComparable, System.Collections.IStructuralEquatable, System.IComparable
-#if netcoreapp11
, System.Runtime.CompilerServices.ITuple
-#endif
{
public Tuple(T1 item1, T2 item2, T3 item3) { }
public T1 Item1 { get { throw null; } }
public T2 Item2 { get { throw null; } }
public T3 Item3 { get { throw null; } }
-#if netcoreapp11
object Runtime.CompilerServices.ITuple.this[int index] { get { throw null; } }
int Runtime.CompilerServices.ITuple.Length { get { throw null; } }
-#endif
public override bool Equals(object obj) { throw null; }
public override int GetHashCode() { throw null; }
int System.Collections.IStructuralComparable.CompareTo(object other, System.Collections.IComparer comparer) { throw null; }
@@ -2394,19 +2362,15 @@ namespace System
public override string ToString() { throw null; }
}
public partial class Tuple<T1, T2, T3, T4> : System.Collections.IStructuralComparable, System.Collections.IStructuralEquatable, System.IComparable
-#if netcoreapp11
, System.Runtime.CompilerServices.ITuple
-#endif
{
public Tuple(T1 item1, T2 item2, T3 item3, T4 item4) { }
public T1 Item1 { get { throw null; } }
public T2 Item2 { get { throw null; } }
public T3 Item3 { get { throw null; } }
public T4 Item4 { get { throw null; } }
-#if netcoreapp11
object Runtime.CompilerServices.ITuple.this[int index] { get { throw null; } }
int Runtime.CompilerServices.ITuple.Length { get { throw null; } }
-#endif
public override bool Equals(object obj) { throw null; }
public override int GetHashCode() { throw null; }
int System.Collections.IStructuralComparable.CompareTo(object other, System.Collections.IComparer comparer) { throw null; }
@@ -2416,9 +2380,7 @@ namespace System
public override string ToString() { throw null; }
}
public partial class Tuple<T1, T2, T3, T4, T5> : System.Collections.IStructuralComparable, System.Collections.IStructuralEquatable, System.IComparable
-#if netcoreapp11
, System.Runtime.CompilerServices.ITuple
-#endif
{
public Tuple(T1 item1, T2 item2, T3 item3, T4 item4, T5 item5) { }
public T1 Item1 { get { throw null; } }
@@ -2426,10 +2388,8 @@ namespace System
public T3 Item3 { get { throw null; } }
public T4 Item4 { get { throw null; } }
public T5 Item5 { get { throw null; } }
-#if netcoreapp11
object Runtime.CompilerServices.ITuple.this[int index] { get { throw null; } }
int Runtime.CompilerServices.ITuple.Length { get { throw null; } }
-#endif
public override bool Equals(object obj) { throw null; }
public override int GetHashCode() { throw null; }
int System.Collections.IStructuralComparable.CompareTo(object other, System.Collections.IComparer comparer) { throw null; }
@@ -2439,9 +2399,7 @@ namespace System
public override string ToString() { throw null; }
}
public partial class Tuple<T1, T2, T3, T4, T5, T6> : System.Collections.IStructuralComparable, System.Collections.IStructuralEquatable, System.IComparable
-#if netcoreapp11
, System.Runtime.CompilerServices.ITuple
-#endif
{
public Tuple(T1 item1, T2 item2, T3 item3, T4 item4, T5 item5, T6 item6) { }
public T1 Item1 { get { throw null; } }
@@ -2450,10 +2408,8 @@ namespace System
public T4 Item4 { get { throw null; } }
public T5 Item5 { get { throw null; } }
public T6 Item6 { get { throw null; } }
-#if netcoreapp11
object Runtime.CompilerServices.ITuple.this[int index] { get { throw null; } }
int Runtime.CompilerServices.ITuple.Length { get { throw null; } }
-#endif
public override bool Equals(object obj) { throw null; }
public override int GetHashCode() { throw null; }
int System.Collections.IStructuralComparable.CompareTo(object other, System.Collections.IComparer comparer) { throw null; }
@@ -2463,9 +2419,7 @@ namespace System
public override string ToString() { throw null; }
}
public partial class Tuple<T1, T2, T3, T4, T5, T6, T7> : System.Collections.IStructuralComparable, System.Collections.IStructuralEquatable, System.IComparable
-#if netcoreapp11
, System.Runtime.CompilerServices.ITuple
-#endif
{
public Tuple(T1 item1, T2 item2, T3 item3, T4 item4, T5 item5, T6 item6, T7 item7) { }
public T1 Item1 { get { throw null; } }
@@ -2475,10 +2429,8 @@ namespace System
public T5 Item5 { get { throw null; } }
public T6 Item6 { get { throw null; } }
public T7 Item7 { get { throw null; } }
-#if netcoreapp11
object Runtime.CompilerServices.ITuple.this[int index] { get { throw null; } }
int Runtime.CompilerServices.ITuple.Length { get { throw null; } }
-#endif
public override bool Equals(object obj) { throw null; }
public override int GetHashCode() { throw null; }
int System.Collections.IStructuralComparable.CompareTo(object other, System.Collections.IComparer comparer) { throw null; }
@@ -2488,9 +2440,7 @@ namespace System
public override string ToString() { throw null; }
}
public partial class Tuple<T1, T2, T3, T4, T5, T6, T7, TRest> : System.Collections.IStructuralComparable, System.Collections.IStructuralEquatable, System.IComparable
-#if netcoreapp11
, System.Runtime.CompilerServices.ITuple
-#endif
{
public Tuple(T1 item1, T2 item2, T3 item3, T4 item4, T5 item5, T6 item6, T7 item7, TRest rest) { }
public T1 Item1 { get { throw null; } }
@@ -2501,10 +2451,8 @@ namespace System
public T6 Item6 { get { throw null; } }
public T7 Item7 { get { throw null; } }
public TRest Rest { get { throw null; } }
-#if netcoreapp11
object Runtime.CompilerServices.ITuple.this[int index] { get { throw null; } }
int Runtime.CompilerServices.ITuple.Length { get { throw null; } }
-#endif
public override bool Equals(object obj) { throw null; }
public override int GetHashCode() { throw null; }
int System.Collections.IStructuralComparable.CompareTo(object other, System.Collections.IComparer comparer) { throw null; }
@@ -2513,7 +2461,6 @@ namespace System
int System.IComparable.CompareTo(object obj) { throw null; }
public override string ToString() { throw null; }
}
-#if netcoreapp11
public static class TupleExtensions
{
public static void Deconstruct<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21>(this Tuple<T1, T2, T3, T4, T5, T6, T7, Tuple<T8, T9, T10, T11, T12, T13, T14, Tuple<T15, T16, T17, T18, T19, T20, T21>>> value, out T1 item1, out T2 item2, out T3 item3, out T4 item4, out T5 item5, out T6 item6, out T7 item7, out T8 item8, out T9 item9, out T10 item10, out T11 item11, out T12 item12, out T13 item13, out T14 item14, out T15 item15, out T16 item16, out T17 item17, out T18 item18, out T19 item19, out T20 item20, out T21 item21) { throw null; }
@@ -2580,7 +2527,6 @@ namespace System
public static ValueTuple<T1, T2> ToValueTuple<T1, T2>(this Tuple<T1, T2> value) { throw null; }
public static ValueTuple<T1> ToValueTuple<T1>(this Tuple<T1> value) { throw null; }
}
-#endif
public abstract partial class Type : System.Reflection.MemberInfo, System.Reflection.IReflect
{
public static readonly char Delimiter;
@@ -2948,9 +2894,7 @@ namespace System
[System.CLSCompliantAttribute(false)]
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct UIntPtr : System.Runtime.Serialization.ISerializable
-#if netcoreapp11
, IEquatable<UIntPtr>
-#endif
{
public static readonly System.UIntPtr Zero;
public UIntPtr(uint value) { throw null; }
@@ -2961,9 +2905,7 @@ namespace System
public static int Size { get { throw null; } }
public static System.UIntPtr Add(System.UIntPtr pointer, int offset) { throw null; }
public override bool Equals(object obj) { throw null; }
-#if netcoreapp11
bool IEquatable<UIntPtr>.Equals(UIntPtr other) { return default(bool); }
-#endif
public override int GetHashCode() { throw null; }
void System.Runtime.Serialization.ISerializable.GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
public static System.UIntPtr operator +(System.UIntPtr pointer, int offset) { throw null; }
@@ -3216,7 +3158,6 @@ namespace System
{
public NewsStyleUriParser() { }
}
-#if netcoreapp11
public struct ValueTuple
: IEquatable<ValueTuple>, Collections.IStructuralEquatable, Collections.IStructuralComparable, IComparable, IComparable<ValueTuple>, Runtime.CompilerServices.ITuple
{
@@ -3413,7 +3354,6 @@ namespace System
int Runtime.CompilerServices.ITuple.Length { get { throw null; } }
object Runtime.CompilerServices.ITuple.this[int index] { get { throw null; } }
}
-#endif // netcoreapp11
public abstract partial class ValueType
{
protected ValueType() { }
@@ -3604,13 +3544,11 @@ namespace System.Runtime.CompilerServices
{
void OnCompleted(System.Action continuation);
}
-#if netcoreapp11
public interface ITuple
{
int Length { get; }
object this[int index] { get; }
}
-#endif
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct TaskAwaiter : System.Runtime.CompilerServices.ICriticalNotifyCompletion, System.Runtime.CompilerServices.INotifyCompletion
{
@@ -3629,7 +3567,6 @@ namespace System.Runtime.CompilerServices
[System.Security.SecurityCriticalAttribute]
public void UnsafeOnCompleted(System.Action continuation) { }
}
-#if netcoreapp11
[System.CLSCompliant(false)]
[System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Parameter | System.AttributeTargets.Property | System.AttributeTargets.ReturnValue | System.AttributeTargets.Class | System.AttributeTargets.Struct | System.AttributeTargets.Event)]
public sealed class TupleElementNamesAttribute : Attribute
@@ -3637,7 +3574,6 @@ namespace System.Runtime.CompilerServices
public TupleElementNamesAttribute(string[] transformNames) { throw null; }
public System.Collections.Generic.IList<string> TransformNames { get { throw null; } }
}
-#endif
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential, Size = 1)]
public partial struct YieldAwaitable
{
@@ -3906,7 +3842,6 @@ namespace System.ComponentModel
public DefaultValueAttribute(object value) { }
public DefaultValueAttribute(float value) { }
public DefaultValueAttribute(string value) { }
-#if netcoreapp11
[System.CLSCompliantAttribute(false)]
public DefaultValueAttribute(sbyte value) { }
[System.CLSCompliantAttribute(false)]
@@ -3915,7 +3850,6 @@ namespace System.ComponentModel
public DefaultValueAttribute(uint value) { }
[System.CLSCompliantAttribute(false)]
public DefaultValueAttribute(ulong value) { }
-#endif
public DefaultValueAttribute(System.Type type, string value) { }
public virtual object Value { get { throw null; } }
public override bool Equals(object obj) { throw null; }
@@ -4957,11 +4891,7 @@ namespace System.IO
public virtual System.IAsyncResult BeginRead(byte[] buffer, int offset, int count, System.AsyncCallback callback, object state) { throw null; }
public virtual System.IAsyncResult BeginWrite(byte[] buffer, int offset, int count, System.AsyncCallback callback, object state) { throw null; }
public void CopyTo(System.IO.Stream destination) { }
-#if netcoreapp11
public virtual void CopyTo(System.IO.Stream destination, int bufferSize) { }
-#else
- public void CopyTo(System.IO.Stream destination, int bufferSize) { }
-#endif
public System.Threading.Tasks.Task CopyToAsync(System.IO.Stream destination) { throw null; }
public System.Threading.Tasks.Task CopyToAsync(System.IO.Stream destination, int bufferSize) { throw null; }
public virtual System.Threading.Tasks.Task CopyToAsync(System.IO.Stream destination, int bufferSize, System.Threading.CancellationToken cancellationToken) { throw null; }
@@ -6281,9 +6211,7 @@ namespace System.Runtime.CompilerServices
{
public ConditionalWeakTable() { }
public void Add(TKey key, TValue value) { }
-#if netcoreapp11
public void AddOrUpdate(TKey key, TValue value) { }
-#endif //netcoreapp11
~ConditionalWeakTable() { }
public TValue GetOrCreateValue(TKey key) { throw null; }
public TValue GetValue(TKey key, System.Runtime.CompilerServices.ConditionalWeakTable<TKey, TValue>.CreateValueCallback createValueCallback) { throw null; }
@@ -6422,10 +6350,8 @@ namespace System.Runtime.CompilerServices
public static void PrepareMethod(System.RuntimeMethodHandle method, System.RuntimeTypeHandle[] instantiation) { }
[System.Security.SecurityCriticalAttribute]
public static void ProbeForSufficientStack() { }
-#if netcoreapp11
public static bool TryEnsureSufficientExecutionStack() { return default(bool); }
public static object GetUninitializedObject(Type type) { return default(object); }
-#endif
}
[System.AttributeUsageAttribute((System.AttributeTargets)(64), Inherited = false, AllowMultiple = false)]
public partial class StateMachineAttribute : System.Attribute
diff --git a/src/System.Runtime/ref/System.Runtime.csproj b/src/System.Runtime/ref/System.Runtime.csproj
index 734f4d9b9a..fb586af2dd 100644
--- a/src/System.Runtime/ref/System.Runtime.csproj
+++ b/src/System.Runtime/ref/System.Runtime.csproj
@@ -5,7 +5,6 @@
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<IsCoreAssembly>true</IsCoreAssembly>
<ProjectGuid>{ADBCF120-3454-4A3C-9D1D-AC4293E795D6}</ProjectGuid>
- <DefineConstants Condition="'$(TargetGroup)' == 'netcoreapp'">$(DefineConstants);netcoreapp11</DefineConstants>
</PropertyGroup>
<ItemGroup>
<Compile Include="System.Runtime.cs" />