// 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 namespace System.Dynamic.Utils { internal static class Strings { /// /// A string like "Invalid argument value" /// internal static string InvalidArgumentValue { get { return SR.InvalidArgumentValue; } } /// /// A string like "Non-empty collection required" /// internal static string NonEmptyCollectionRequired { get { return SR.NonEmptyCollectionRequired; } } internal static string InvalidNullValue(object p0) { return SR.Format(SR.InvalidNullValue, p0); } internal static string InvalidObjectType(object p0, object p1) { return SR.Format(SR.InvalidObjectType, p0, p1); } internal static string TypeContainsGenericParameters(object p0) { return SR.Format(SR.TypeContainsGenericParameters, p0); } internal static string TypeIsGeneric(object p0) { return SR.Format(SR.TypeIsGeneric, p0); } /// /// A string like "Collection was modified; enumeration operation may not execute." /// internal static string CollectionModifiedWhileEnumerating { get { return SR.CollectionModifiedWhileEnumerating; } } /// /// A string like "Enumeration has either not started or has already finished." /// internal static string EnumerationIsDone { get { return SR.EnumerationIsDone; } } internal static string ExpressionMustBeReadable { get { return SR.ExpressionMustBeReadable; } } internal static string ExpressionTypeDoesNotMatchMethodParameter(object p0, object p1, object p2) { return SR.Format(SR.ExpressionTypeDoesNotMatchMethodParameter, p0, p1, p2); } internal static string ExpressionTypeDoesNotMatchParameter(object p0, object p1) { return SR.Format(SR.ExpressionTypeDoesNotMatchParameter, p0, p1); } internal static string ExpressionTypeDoesNotMatchConstructorParameter(object p0, object p1) { return SR.Format(SR.ExpressionTypeDoesNotMatchConstructorParameter, p0, p1); } internal static string IncorrectNumberOfMethodCallArguments(object p0) { return SR.Format(SR.IncorrectNumberOfMethodCallArguments, p0); } /// /// A string like "Incorrect number of arguments supplied for lambda invocation" /// internal static string IncorrectNumberOfLambdaArguments { get { return SR.IncorrectNumberOfLambdaArguments; } } /// /// A string like "Incorrect number of arguments for constructor" /// internal static string IncorrectNumberOfConstructorArguments { get { return SR.IncorrectNumberOfConstructorArguments; } } } } #endif