Skip to content

Commit

Permalink
[corlib] Add ValueTuple
Browse files Browse the repository at this point in the history
  • Loading branch information
marek-safar committed Oct 6, 2016
1 parent 390697c commit 0a515cf
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,6 @@
path = external/boringssl
url = git://github.com/mono/boringssl.git
branch = mono
[submodule "external/corefx"]
path = external/corefx
url = git://github.com/mono/corefx.git
1 change: 1 addition & 0 deletions external/corefx
Submodule corefx added at b1aa1d
2 changes: 1 addition & 1 deletion mcs/class/corlib/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ RESOURCE_FILES = \
resources/collation.cjkKO.bin \
resources/collation.cjkKOlv2.bin

REFERENCE_SOURCES_FLAGS = -d:FEATURE_PAL,GENERICS_WORK,FEATURE_LIST_PREDICATES,FEATURE_SERIALIZATION,FEATURE_ASCII,FEATURE_LATIN1,FEATURE_UTF7,FEATURE_UTF32,MONO_HYBRID_ENCODING_SUPPORT,FEATURE_ASYNC_IO,NEW_EXPERIMENTAL_ASYNC_IO,FEATURE_UTF32,FEATURE_EXCEPTIONDISPATCHINFO,FEATURE_CORRUPTING_EXCEPTIONS,FEATURE_EXCEPTION_NOTIFICATIONS,FEATURE_STRONGNAME_MIGRATION,FEATURE_USE_LCID,FEATURE_FUSION,FEATURE_CRYPTO,FEATURE_X509_SECURESTRINGS,FEATURE_SYNCHRONIZATIONCONTEXT,FEATURE_SYNCHRONIZATIONCONTEXT_WAIT
REFERENCE_SOURCES_FLAGS = -d:FEATURE_PAL,GENERICS_WORK,FEATURE_LIST_PREDICATES,FEATURE_SERIALIZATION,FEATURE_ASCII,FEATURE_LATIN1,FEATURE_UTF7,FEATURE_UTF32,MONO_HYBRID_ENCODING_SUPPORT,FEATURE_ASYNC_IO,NEW_EXPERIMENTAL_ASYNC_IO,FEATURE_UTF32,FEATURE_EXCEPTIONDISPATCHINFO,FEATURE_CORRUPTING_EXCEPTIONS,FEATURE_EXCEPTION_NOTIFICATIONS,FEATURE_STRONGNAME_MIGRATION,FEATURE_USE_LCID,FEATURE_FUSION,FEATURE_CRYPTO,FEATURE_X509_SECURESTRINGS,FEATURE_SYNCHRONIZATIONCONTEXT,FEATURE_SYNCHRONIZATIONCONTEXT_WAIT,HAS_CORLIB_CONTRACTS

ifndef MOBILE_PROFILE
REFERENCE_SOURCES_FLAGS += -d:FEATURE_MACL
Expand Down
7 changes: 7 additions & 0 deletions mcs/class/corlib/corefx/SR.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// TODO: Should be auto-generated from resources.resx

static class SR
{
public const string ArgumentException_ValueTupleIncorrectType = "The parameter should be a ValueTuple type of appropriate arity.";
public const string ArgumentException_ValueTupleLastArgumentNotAValueTuple = "The TRest type argument of ValueTuple`8 must be a ValueTuple.";
}
11 changes: 9 additions & 2 deletions mcs/class/corlib/corlib.dll.sources
Original file line number Diff line number Diff line change
Expand Up @@ -906,6 +906,8 @@ ReferenceSources/SharedStatics.cs
ReferenceSources/SecurityContext.cs
ReferenceSources/PathInternal.cs
ReferenceSources/BinaryCompatibility.cs
ReferenceSources/String.cs
ReferenceSources/Type.cs

../referencesource/mscorlib/system/__filters.cs
../referencesource/mscorlib/system/__hresults.cs
Expand Down Expand Up @@ -1640,5 +1642,10 @@ ReferenceSources/BinaryCompatibility.cs
../referencesource/mscorlib/microsoft/win32/safehandles/safewaithandle.cs
../referencesource/mscorlib/microsoft/win32/safehandles/win32safehandles.cs

ReferenceSources/String.cs
ReferenceSources/Type.cs
corefx/SR.cs

../../../external/corefx/src/Common/src/System/Numerics/Hashing/HashHelpers.cs

../../../external/corefx/src/System.ValueTuple/src/System/ValueTuple/ValueTuple.cs
../../../external/corefx/src/System.ValueTuple/src/System/ValueTuple/TupleExtensions.cs
../../../external/corefx/src/System.ValueTuple/src/System/Runtime/CompilerServices/TupleElementNamesAttribute.cs

0 comments on commit 0a515cf

Please sign in to comment.