system\activator.cs (13)
25using CultureInfo = System.Globalization.CultureInfo;
59CultureInfo culture)
70CultureInfo culture,
261CultureInfo culture,
286CultureInfo culture,
309CultureInfo culture,
375CultureInfo culture,
406CultureInfo culture,
428CultureInfo culture,
481CultureInfo culture,
506CultureInfo culture,
552CultureInfo culture,
579CultureInfo culture,
system\appdomain.cs (11)
48using CultureInfo = System.Globalization.CultureInfo;
1675CultureInfo culture,
1713CultureInfo culture,
1741CultureInfo culture,
1764CultureInfo culture,
1800CultureInfo culture,
1827CultureInfo culture,
4549CultureInfo culture,
4570CultureInfo culture,
4632CultureInfo culture,
4655CultureInfo culture,
system\convert.cs (23)
689return SByte.Parse(value, CultureInfo.CurrentCulture);
791return Byte.Parse(value, CultureInfo.CurrentCulture);
890return Int16.Parse(value, CultureInfo.CurrentCulture);
1003return UInt16.Parse(value, CultureInfo.CurrentCulture);
1115return Int32.Parse(value, CultureInfo.CurrentCulture);
1231return UInt32.Parse(value, CultureInfo.CurrentCulture);
1323return Int64.Parse(value, CultureInfo.CurrentCulture);
1430return UInt64.Parse(value, CultureInfo.CurrentCulture);
1514return Single.Parse(value, CultureInfo.CurrentCulture);
1603return Double.Parse(value, CultureInfo.CurrentCulture);
1685return Decimal.Parse(value, CultureInfo.CurrentCulture);
1727return DateTime.Parse(value, CultureInfo.CurrentCulture);
1834return value.ToString(CultureInfo.CurrentCulture);
1845return value.ToString(CultureInfo.CurrentCulture);
1855return value.ToString(CultureInfo.CurrentCulture);
1866return value.ToString(CultureInfo.CurrentCulture);
1877return value.ToString(CultureInfo.CurrentCulture);
1888return value.ToString(CultureInfo.CurrentCulture);
1899return value.ToString(CultureInfo.CurrentCulture);
1910return value.ToString(CultureInfo.CurrentCulture);
1921return value.ToString(CultureInfo.CurrentCulture);
1931return value.ToString(CultureInfo.CurrentCulture);
1941return value.ToString(CultureInfo.CurrentCulture);
system\diagnostics\eventing\eventsource.cs (23)
2722commandArgs.Arguments["EtwSessionKeyword"] = (commandArgs.perEventSourceSessionId + SessionMask.SHIFT_SESSION_TO_KEYWORD).ToString(CultureInfo.InvariantCulture);
3511string msg = manifest.GetLocalizedMessage(eventKey, CultureInfo.CurrentUICulture, etwFormat: false);
4031WriteStringToListener(listener, string.Format(CultureInfo.InvariantCulture, "Session {0}: {1} = {2}", perEventSourceSessionId, t.Item1, t.Item2), m);
4037WriteStringToListener(listener, string.Format(CultureInfo.InvariantCulture, "Session {0}: Activity Sampling support: {1}",
6089ManifestError(Environment.GetResourceString("EventSource_KeywordNeedPowerOfTwo", "0x" + value.ToString("x", CultureInfo.CurrentCulture), name), true);
6093ManifestError(Environment.GetResourceString("EventSource_IllegalKeywordsValue", name, "0x" + value.ToString("x", CultureInfo.CurrentCulture)));
6096ManifestError(Environment.GetResourceString("EventSource_KeywordCollision", name, prevName, "0x" + value.ToString("x", CultureInfo.CurrentCulture)));
6438sb.Append(" <map value=\"0x").Append(hexValue.ToString("x", CultureInfo.InvariantCulture)).Append("\"");
6470sb.Append(" mask=\"0x").Append(keyword.ToString("x", CultureInfo.InvariantCulture)).Append("\"/>").AppendLine();
6499List<CultureInfo> cultures = null;
6506cultures = new List<CultureInfo>();
6507cultures.Add(CultureInfo.CurrentUICulture);
6522foreach (var ci in cultures)
6553string localizedString = resources.GetString(key, CultureInfo.InvariantCulture);
6570internal string GetLocalizedMessage(string key, CultureInfo ci, bool etwFormat)
6599private static List<CultureInfo> GetSupportedCultures(ResourceManager resources)
6601var cultures = new List<CultureInfo>();
6603foreach (CultureInfo ci in CultureInfo.GetCultures(CultureTypes.SpecificCultures /*| CultureTypes.NeutralCultures*/))
6609if (!cultures.Contains(CultureInfo.CurrentUICulture))
6610cultures.Insert(0, CultureInfo.CurrentUICulture);
6643eventMessage = resources.GetString("event_" + eventName, CultureInfo.InvariantCulture);
6714ManifestError(Environment.GetResourceString("EventSource_UndefinedKeyword", "0x" + bit.ToString("x", CultureInfo.CurrentCulture), eventName), true);
system\enum.cs (16)
222result = (UInt64)Convert.ToInt64(value, CultureInfo.InvariantCulture);
231result = Convert.ToUInt64(value, CultureInfo.InvariantCulture);
402temp = Convert.ChangeType(value, underlyingType, CultureInfo.InvariantCulture);
954return Convert.ToBoolean(GetValue(), CultureInfo.CurrentCulture);
960return Convert.ToChar(GetValue(), CultureInfo.CurrentCulture);
966return Convert.ToSByte(GetValue(), CultureInfo.CurrentCulture);
972return Convert.ToByte(GetValue(), CultureInfo.CurrentCulture);
978return Convert.ToInt16(GetValue(), CultureInfo.CurrentCulture);
984return Convert.ToUInt16(GetValue(), CultureInfo.CurrentCulture);
990return Convert.ToInt32(GetValue(), CultureInfo.CurrentCulture);
996return Convert.ToUInt32(GetValue(), CultureInfo.CurrentCulture);
1002return Convert.ToInt64(GetValue(), CultureInfo.CurrentCulture);
1008return Convert.ToUInt64(GetValue(), CultureInfo.CurrentCulture);
1014return Convert.ToSingle(GetValue(), CultureInfo.CurrentCulture);
1020return Convert.ToDouble(GetValue(), CultureInfo.CurrentCulture);
1026return Convert.ToDecimal(GetValue(), CultureInfo.CurrentCulture);
system\globalization\cultureinfo.cs (92)
98[NonSerialized]private CultureInfo m_consoleFallbackCulture;
134private static volatile CultureInfo s_userDefaultCulture;
141private static volatile CultureInfo s_InvariantCultureInfo;
144private static volatile CultureInfo s_userDefaultUICulture;
147private static volatile CultureInfo s_InstalledUICultureInfo;
150private static volatile CultureInfo s_DefaultThreadCurrentUICulture;
151private static volatile CultureInfo s_DefaultThreadCurrentCulture;
168[NonSerialized]private CultureInfo m_parent;
191CultureInfo temp = new CultureInfo("", false);
206static CultureInfo InitUserDefaultCulture()
216return (CultureInfo.InvariantCulture);
219CultureInfo temp = GetCultureByName(strDefault, true);
226static CultureInfo InitUserDefaultUICulture()
236CultureInfo temp = GetCultureByName( strDefault, true);
240return (CultureInfo.InvariantCulture);
250internal static CultureInfo GetCultureInfoForUserPreferredLanguageInAppX()
274CultureInfo toReturn = null;
296internal static bool SetCultureInfoForUserPreferredLanguageInAppX(CultureInfo ci)
358this.m_isInherited = (this.GetType() != typeof(System.Globalization.CultureInfo));
369private static CultureInfo CreateCultureInfoNoThrow(string name, bool useUserOverride)
415this.m_isInherited = (this.GetType() != typeof(System.Globalization.CultureInfo));
427if (obj.GetType().Assembly != typeof(System.Globalization.CultureInfo).Assembly) {
431CultureInfo.CurrentCulture,
471m_isInherited = (this.GetType() != typeof(System.Globalization.CultureInfo));
475if (this.GetType().Assembly == typeof(System.Globalization.CultureInfo).Assembly)
566if (this.GetType() == typeof(System.Globalization.CultureInfo))
594CultureInfo altCulture = GetCultureInfo(textAndCompareCultureName);
601private static CultureInfo GetCultureByName(String name, bool userOverride)
606return userOverride ? new CultureInfo(name) : CultureInfo.GetCultureInfo(name);
624public static CultureInfo CreateSpecificCulture(String name) {
625Contract.Ensures(Contract.Result<CultureInfo>() != null);
627CultureInfo culture;
688internal static bool VerifyCultureName(CultureInfo culture, bool throwException) {
712public static CultureInfo CurrentCulture
715Contract.Ensures(Contract.Result<CultureInfo>() != null);
763internal static CultureInfo UserDefaultCulture {
766Contract.Ensures(Contract.Result<CultureInfo>() != null);
768CultureInfo temp = s_userDefaultCulture;
777s_userDefaultCulture = CultureInfo.InvariantCulture;
788internal static CultureInfo UserDefaultUICulture {
790Contract.Ensures(Contract.Result<CultureInfo>() != null);
792CultureInfo temp = s_userDefaultUICulture;
801s_userDefaultUICulture = CultureInfo.InvariantCulture;
811public static CultureInfo CurrentUICulture {
813Contract.Ensures(Contract.Result<CultureInfo>() != null);
863public static CultureInfo InstalledUICulture {
865Contract.Ensures(Contract.Result<CultureInfo>() != null);
867CultureInfo temp = s_InstalledUICultureInfo;
884public static CultureInfo DefaultThreadCurrentCulture {
902public static CultureInfo DefaultThreadCurrentUICulture {
921CultureInfo.VerifyCultureName(value, true);
957public static CultureInfo InvariantCulture {
960Contract.Ensures(Contract.Result<CultureInfo>() != null);
974public virtual CultureInfo Parent
979Contract.Ensures(Contract.Result<CultureInfo>() != null);
980CultureInfo culture = null;
1002Interlocked.CompareExchange<CultureInfo>(ref m_parent, culture, null);
1048public static CultureInfo[] GetCultures(CultureTypes types) {
1049Contract.Ensures(Contract.Result<CultureInfo[]>() != null);
1316CultureInfo that = value as CultureInfo;
1603public CultureInfo GetConsoleFallbackUICulture()
1605Contract.Ensures(Contract.Result<CultureInfo>() != null);
1607CultureInfo temp = m_consoleFallbackCulture;
1622CultureInfo ci = (CultureInfo)MemberwiseClone();
1659public static CultureInfo ReadOnly(CultureInfo ci) {
1663Contract.Ensures(Contract.Result<CultureInfo>() != null);
1669CultureInfo newInfo = (CultureInfo)(ci.MemberwiseClone());
1725get { return Name == CultureInfo.InvariantCulture.Name; }
1730internal static CultureInfo GetCultureInfoHelper(int lcid, string name, string altName)
1740CultureInfo retval;
1765retval = (CultureInfo)tempNameHT[name + '\xfffd' + altName];
1773retval = (CultureInfo)tempNameHT[name];
1794retval = (CultureInfo) tempLcidHT[lcid];
1887public static CultureInfo GetCultureInfo(int culture)
1896Contract.Ensures(Contract.Result<CultureInfo>() != null);
1898CultureInfo retval = GetCultureInfoHelper(culture, null, null);
1910public static CultureInfo GetCultureInfo(string name)
1917Contract.Ensures(Contract.Result<CultureInfo>() != null);
1920CultureInfo retval = GetCultureInfoHelper(0, name, null);
1932public static CultureInfo GetCultureInfo(string name, string altName)
1944Contract.Ensures(Contract.Result<CultureInfo>() != null);
1947CultureInfo retval = GetCultureInfoHelper(-1, name, altName);
1952CultureInfo.CurrentCulture,
1963public static CultureInfo GetCultureInfoByIetfLanguageTag(string name)
1965Contract.Ensures(Contract.Result<CultureInfo>() != null);
1972String.Format(CultureInfo.CurrentCulture, Environment.GetResourceString("Argument_CultureIetfNotSupported"), name)
1976CultureInfo ci = GetCultureInfo(name);
1983String.Format(CultureInfo.CurrentCulture, Environment.GetResourceString("Argument_CultureIetfNotSupported"), name)
system\globalization\datetimeformat.cs (9)
145internal static readonly DateTimeFormatInfo InvariantFormatInfo = CultureInfo.InvariantCulture.DateTimeFormat;
341CultureInfo.CurrentCulture,
486result.Append(((int)fraction).ToString(fixedNumberFormats[tokenLen - 1], CultureInfo.InvariantCulture));
500result.Append(((int)fraction).ToString(fixedNumberFormats[effectiveDigits - 1], CultureInfo.InvariantCulture));
630result.Append(year.ToString(fmtPattern, CultureInfo.InvariantCulture));
755result.AppendFormat(CultureInfo.InvariantCulture, "{0:0}", offset.Hours);
759result.AppendFormat(CultureInfo.InvariantCulture, "{0:00}", offset.Hours);
762result.AppendFormat(CultureInfo.InvariantCulture, ":{0:00}", offset.Minutes);
800result.AppendFormat(CultureInfo.InvariantCulture, "{0:00}:{1:00}", offset.Hours, offset.Minutes);
system\globalization\hijricalendar.cs (10)
230CultureInfo.CurrentCulture,
289int advance = Int32.Parse(str.ToString(), CultureInfo.InvariantCulture);
349CultureInfo.InvariantCulture,
368CultureInfo.CurrentCulture,
382CultureInfo.CurrentCulture,
505CultureInfo.CurrentCulture,
642CultureInfo.CurrentCulture,
690CultureInfo.CurrentCulture,
723CultureInfo.CurrentCulture,
749CultureInfo.CurrentCulture,
system\reflection\cominterfaces.cs (12)
88Object InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParameters);
94Object InvokeMember(String name,BindingFlags invokeAttr,Binder binder, Object target, Object[] args, CultureInfo culture);
228Assembly GetSatelliteAssembly(CultureInfo culture);
229Assembly GetSatelliteAssembly(CultureInfo culture, Version version);
236Object CreateInstance(String typeName, bool ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes);
322Object Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture);
380Object Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture);
444Object Invoke_2(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture);
462Object Invoke_4(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture);
505void SetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, CultureInfo culture);
562Object GetValue(Object obj,BindingFlags invokeAttr,Binder binder, Object[] index, CultureInfo culture);
564void SetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture);
system\reflection\ConstructorInfo.cs (8)
91public abstract Object Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture);
116Object _ConstructorInfo.Invoke_2(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
126Object _ConstructorInfo.Invoke_4(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
549String.Format(CultureInfo.CurrentUICulture, Environment.GetResourceString("Acc_CreateInterfaceEx"), declaringType));
554String.Format(CultureInfo.CurrentUICulture, Environment.GetResourceString("Acc_CreateAbstEx"), declaringType));
574String.Format(CultureInfo.CurrentUICulture, Environment.GetResourceString("Acc_CreateGenericEx"), declaringType));
598Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
704public override Object Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
system\reflection\customattribute.cs (16)
506ctorArgs += String.Format(CultureInfo.CurrentCulture, i == 0 ? "{0}" : ", {0}", ConstructorArguments[i]);
510namedArgs += String.Format(CultureInfo.CurrentCulture, i == 0 && ctorArgs.Length == 0 ? "{0}" : ", {0}", NamedArguments[i]);
512return String.Format(CultureInfo.CurrentCulture, "[{0}({1}{2})]", Constructor.DeclaringType.FullName, ctorArgs, namedArgs);
644return String.Format(CultureInfo.CurrentCulture, "{0} = {1}", MemberInfo.Name, TypedValue.ToString(ArgumentType != typeof(object)));
804String.Format(CultureInfo.CurrentUICulture, Environment.GetResourceString("Arg_CATypeResolutionFailed"), typeName));
919return String.Format(CultureInfo.CurrentCulture, typed ? "{0}" : "({1}){0}", Value, ArgumentType.FullName);
922return String.Format(CultureInfo.CurrentCulture, typed ? "null" : "({0})null", ArgumentType.Name);
925return String.Format(CultureInfo.CurrentCulture, "\"{0}\"", Value);
928return String.Format(CultureInfo.CurrentCulture, "'{0}'", Value);
931return String.Format(CultureInfo.CurrentCulture, "typeof({0})", ((Type)Value).FullName);
939result = String.Format(CultureInfo.CurrentCulture, @"new {0}[{1}] {{ ", elementType.IsEnum ? elementType.FullName : elementType.Name, array.Count);
942result += String.Format(CultureInfo.CurrentCulture, i == 0 ? "{0}" : ", {0}", array[i].ToString(elementType != typeof(object)));
947return String.Format(CultureInfo.CurrentCulture, typed ? "{0}" : "({1}){0}", Value, ArgumentType.Name);
1791String.Format(CultureInfo.CurrentUICulture, Environment.GetResourceString(
1822String.Format(CultureInfo.CurrentUICulture, Environment.GetResourceString(
2030CultureInfo.CurrentUICulture, Environment.GetResourceString("Format_AttributeUsage"), attributeType));
system\reflection\emit\generictypeparameterbuilder.cs (2)
100string s = String.Format(CultureInfo.InvariantCulture, "[{0}]", szrank); // [,,]
107public override Object InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParameters) { throw new NotSupportedException(); }
system\reflection\emit\xxxontypebuilderinstantiation.cs (4)
80public override Object Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
177public override Object Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
190public override Object Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
289public override void SetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, CultureInfo culture) { throw new InvalidOperationException(); }
system\reflection\fieldinfo.cs (7)
48CultureInfo.CurrentCulture, Environment.GetResourceString("Argument_FieldDeclaringTypeGeneric"),
134public abstract void SetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, CultureInfo culture);
533String.Format(CultureInfo.CurrentUICulture, Environment.GetResourceString("Arg_FieldDeclTarget"),
554internal void InternalSetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, CultureInfo culture, ref StackCrawlMark stackMark)
611internal void UnsafeSetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, CultureInfo culture)
761public override void SetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, CultureInfo culture)
933public override void SetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, CultureInfo culture)
system\reflection\methodinfo.cs (3)
710public override Object Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
745internal object UnsafeInvoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
773private object[] InvokeArgumentsCheck(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
system\reflection\module.cs (4)
750String.Format(CultureInfo.CurrentUICulture, Environment.GetResourceString("Argument_InvalidToken", tk, this)));
914String.Format(CultureInfo.CurrentUICulture, Environment.GetResourceString("Argument_ResolveString"), metadataToken, ToString()));
918String.Format(CultureInfo.CurrentUICulture, Environment.GetResourceString("Argument_InvalidToken", tk, this)));
924String.Format(CultureInfo.CurrentUICulture, Environment.GetResourceString("Argument_ResolveString"), metadataToken, ToString()));
system\reflection\propertyinfo.cs (4)
84public abstract void SetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture);
114public abstract Object GetValue(Object obj, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture);
624public override Object GetValue(Object obj, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture)
647public override void SetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture)
system\resources\manifestbasedresourcegroveler.cs (16)
62public ResourceSet GrovelForResourceSet(CultureInfo culture, Dictionary<String, ResourceSet> localResourceSets, bool tryParents, bool createIfNotExists, ref StackCrawlMark stackMark)
72CultureInfo lookForCulture = UltimateFallbackFixup(culture);
181public bool HasNeutralResources(CultureInfo culture, String defaultResName)
194private CultureInfo UltimateFallbackFixup(CultureInfo lookForCulture)
197CultureInfo returnCulture = lookForCulture;
211returnCulture = CultureInfo.InvariantCulture;
223internal static CultureInfo GetNeutralResourcesLanguage(Assembly a, ref UltimateResourceFallbackLocation fallbackLocation)
254return CultureInfo.InvariantCulture;
259CultureInfo c = CultureInfo.GetCultureInfo(cultureName);
270return CultureInfo.InvariantCulture;
474CompareInfo comparer = CultureInfo.InvariantCulture.CompareInfo;
538private RuntimeAssembly GetSatelliteAssembly(CultureInfo lookForCulture, ref StackCrawlMark stackMark)
570Contract.Assert(false, "[This assert catches satellite assembly build/deployment problems - report this message to your build lab & loc engineer]" + Environment.NewLine + "GetSatelliteAssembly failed for culture " + lookForCulture.Name + " and version " + (_mediator.SatelliteContractVersion == null ? _mediator.MainAssembly.GetVersion().ToString() : _mediator.SatelliteContractVersion.ToString()) + " of assembly " + _mediator.MainAssembly.GetSimpleName() + " with error code 0x" + hr.ToString("X", CultureInfo.InvariantCulture) + Environment.NewLine + "Exception: " + fle);
656publicKeyTok.Append(token[i].ToString("x", CultureInfo.InvariantCulture));
system\resources\resourcemanager.cs (34)
59public virtual CultureInfo GlobalResourceContextBestFitCultureInfo {
65public virtual bool SetGlobalResourceContextDefaultCulture(CultureInfo ci) { return false; }
196private CultureInfo _neutralResourcesCulture; // For perf optimizations.
339CultureInfo culture = CultureInfo.InvariantCulture;
520CultureInfo culture = CultureInfo.InvariantCulture;
633protected virtual String GetResourceFileName(CultureInfo culture) {
639CultureInfo.VerifyCultureName(culture.Name, true);
649internal ResourceSet GetFirstResourceSet(CultureInfo culture)
654culture = CultureInfo.InvariantCulture;
700public virtual ResourceSet GetResourceSet(CultureInfo culture, bool createIfNotExists, bool tryParents) {
747protected virtual ResourceSet InternalGetResourceSet(CultureInfo culture, bool createIfNotExists, bool tryParents)
762private ResourceSet InternalGetResourceSet(CultureInfo requestedCulture, bool createIfNotExists, bool tryParents, ref StackCrawlMark stackMark)
766CultureInfo foundCulture = null;
780foreach (CultureInfo currentCultureInfo in mgr)
827foreach (CultureInfo updateCultureInfo in mgr)
921protected static CultureInfo GetNeutralResourcesLanguage(Assembly a)
926CultureInfo culture = ManifestBasedResourceGroveler.GetNeutralResourcesLanguage(a, ref ignoringUsefulData);
1242return GetString(name, (CultureInfo)null);
1249public virtual String GetString(String name, CultureInfo culture) {
1262if(Object.ReferenceEquals(culture, CultureInfo.CurrentUICulture))
1314foreach (CultureInfo currentCultureInfo in mgr) {
1355return GetObject(name, (CultureInfo)null, true);
1361public virtual Object GetObject(String name, CultureInfo culture) {
1365private Object GetObject(String name, CultureInfo culture, bool wrapUnmanagedMemStream)
1377if(Object.ReferenceEquals(culture, CultureInfo.CurrentUICulture))
1416foreach (CultureInfo currentCultureInfo in mgr) {
1459return GetStream(name, (CultureInfo)null);
1463public UnmanagedMemoryStream GetStream(String name, CultureInfo culture) {
1475private bool TryLookingForSatellite(CultureInfo lookForCulture)
1641internal CultureInfo NeutralResourcesCulture
1647internal String GetResourceFileName(CultureInfo culture)
1696internal bool TryLookingForSatellite(CultureInfo lookForCulture)
system\resources\resourcereader.cs (5)
325BCLDebug.Log("RESMGRFILEFORMAT", "FindPosForResource for "+name+" hash: "+hash.ToString("x", CultureInfo.InvariantCulture));
556BCLDebug.Log("RESMGRFILEFORMAT", "LoadString("+pos.ToString("x", CultureInfo.InvariantCulture)+" returned "+(s==null ? "[a null string]" : s));
610BCLDebug.Log("RESMGRFILEFORMAT", "LoadObject type: "+type.Name+" pos: 0x"+_store.BaseStream.Position.ToString("x", CultureInfo.InvariantCulture));
682BCLDebug.Log("RESMGRFILEFORMAT", "LoadObjectV2 type: "+typeCode+" pos: 0x"+_store.BaseStream.Position.ToString("x", CultureInfo.InvariantCulture));
1072BCLDebug.Log("RESMGRFILEFORMAT", String.Format(CultureInfo.InvariantCulture, "ReadResources: _nameOffset = 0x{0:x} _dataOffset = 0x{1:x}", _nameSectionOffset, _dataSectionOffset));
system\rttype.cs (14)
2050CultureInfo.CurrentCulture, Environment.GetResourceString("Argument_ResolveMethodHandle"),
2078CultureInfo.CurrentCulture, Environment.GetResourceString("Argument_ResolveMethodHandle"),
2100CultureInfo.CurrentCulture, Environment.GetResourceString("Argument_ResolveMethodHandle"),
2170CultureInfo.CurrentCulture, Environment.GetResourceString("Argument_ResolveFieldHandle"),
2263i.ToString(CultureInfo.CurrentCulture), genericArgument.ToString(), definition.ToString(), genericParameter.ToString()), e);
2342name = name.ToLower(CultureInfo.InvariantCulture);
2402Contract.Requires(name == null || (bindingFlags & BindingFlags.IgnoreCase) == 0 || (name.ToLower(CultureInfo.InvariantCulture).Equals(name)));
4363internal unsafe Object CheckValue(Object value, Binder binder, CultureInfo culture, BindingFlags invokeAttr)
4443throw new ArgumentException(String.Format(CultureInfo.CurrentUICulture, Environment.GetResourceString("Arg_ObjObjEx"), value.GetType(), this));
4450private Object TryChangeType(Object value, Binder binder, CultureInfo culture, bool needsSpecialCast)
4485throw new ArgumentException(String.Format(CultureInfo.CurrentUICulture, Environment.GetResourceString("Arg_ObjObjEx"), value.GetType(), this));
4514Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
5180BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, ref StackCrawlMark stackMark)
5316throw new NotSupportedException(String.Format(CultureInfo.CurrentCulture,
system\runtime\remoting\configuration.cs (21)
231CultureInfo.CurrentCulture, Environment.GetResourceString("Remoting_Config_AppNameSet"),
373CultureInfo.CurrentCulture, Environment.GetResourceString(
425CultureInfo.CurrentCulture, Environment.GetResourceString(
497CultureInfo.CurrentCulture, Environment.GetResourceString("Remoting_Config_InvalidChannelType"),
528CultureInfo.CurrentCulture, Environment.GetResourceString("Remoting_Config_ChannelMissingCtor"),
602CultureInfo.CurrentCulture, Environment.GetResourceString("Remoting_Config_InvalidSinkProviderType"),
614CultureInfo.CurrentCulture, Environment.GetResourceString("Remoting_Config_InvalidSinkProviderType"),
628CultureInfo.CurrentCulture, Environment.GetResourceString("Remoting_Config_SinkProviderNotFormatter"),
651CultureInfo.CurrentCulture, Environment.GetResourceString("Remoting_Config_SinkProviderMissingCtor"),
940return typeName + ", " + assemblyName.ToLower(CultureInfo.InvariantCulture);
1135CultureInfo.CurrentCulture, Environment.GetResourceString(
1298CultureInfo.CurrentCulture, Environment.GetResourceString(
1380CultureInfo.CurrentCulture, Environment.GetResourceString(
1389CultureInfo.CurrentCulture, Environment.GetResourceString(
1418CultureInfo.CurrentCulture, Environment.GetResourceString(
1427CultureInfo.CurrentCulture, Environment.GetResourceString(
1470CultureInfo.CurrentCulture, Environment.GetResourceString(
1475String key = entry.ObjectUri.ToLower(CultureInfo.InvariantCulture);
1501String uriLower = URI.ToLower(CultureInfo.InvariantCulture);
1519String uriLower = URI.ToLower(CultureInfo.InvariantCulture);
1633CultureInfo.CurrentCulture, Environment.GetResourceString(
system\runtime\remoting\message.cs (19)
522CultureInfo.CurrentCulture, Environment.GetResourceString(
556CultureInfo.CurrentCulture, Environment.GetResourceString("Remoting_Message_MissingArgValue"),
572CultureInfo.CurrentCulture, Environment.GetResourceString("Remoting_Message_MissingArgValue"),
605ret = Convert.ChangeType(value, pt, CultureInfo.InvariantCulture);
634CultureInfo.CurrentCulture, Environment.GetResourceString(
672ret = Double.Parse(strValue, CultureInfo.InvariantCulture);
681ret = Single.Parse(strValue, CultureInfo.InvariantCulture);
761CultureInfo.CurrentCulture, Environment.GetResourceString(
768ret = Convert.ChangeType(value, pt, CultureInfo.InvariantCulture);
775ret = Convert.ChangeType(value, pt, CultureInfo.InvariantCulture); //Should this just throw an exception
778ret = Convert.ChangeType(value, pt, CultureInfo.InvariantCulture);
806CultureInfo.CurrentCulture, Environment.GetResourceString(
3119CultureInfo.CurrentCulture, Environment.GetResourceString(
3275CultureInfo.CurrentCulture, Environment.GetResourceString(
3428CultureInfo.CurrentCulture, Environment.GetResourceString(
3439CultureInfo.CurrentCulture, Environment.GetResourceString(
3496position = Int32.Parse(memberName.Substring(7), CultureInfo.InvariantCulture);
4142CultureInfo.CurrentCulture, Environment.GetResourceString(
4472position = Int32.Parse(memberName.Substring(7), CultureInfo.InvariantCulture);
system\runtime\remoting\remotingconfigparser.cs (17)
704CultureInfo.CurrentCulture, Environment.GetResourceString("Remoting_Config_NodeMustBeUnique"),
714CultureInfo.CurrentCulture, Environment.GetResourceString("Remoting_Config_UnknownValue"),
730CultureInfo.CurrentCulture, Environment.GetResourceString("Remoting_Config_RequiredXmlAttribute"),
740CultureInfo.CurrentCulture, Environment.GetResourceString("Remoting_Config_MissingTypeAttribute"),
750CultureInfo.CurrentCulture, Environment.GetResourceString("Remoting_Config_MissingXmlTypeAttribute"),
760CultureInfo.CurrentCulture, Environment.GetResourceString("Remoting_Config_InvalidTimeFormat"),
772CultureInfo.CurrentCulture, Environment.GetResourceString("Remoting_Config_NonTemplateIdAttribute"),
783CultureInfo.CurrentCulture, Environment.GetResourceString("Remoting_Config_TemplateCannotReferenceTemplate"),
794CultureInfo.CurrentCulture, Environment.GetResourceString("Remoting_Config_UnableToResolveTemplate"),
806CultureInfo.CurrentCulture, Environment.GetResourceString("Remoting_Config_VersionPresent"),
821Convert.ToBoolean((String)entry.Value, CultureInfo.InvariantCulture);
983configData.UrlObjRefMode = Convert.ToBoolean(entry.Value, CultureInfo.InvariantCulture);
1382String lowercaseKey = ((String)entry.Key).ToLower(CultureInfo.InvariantCulture);
1439id = ((String)entry.Value).ToLower(CultureInfo.InvariantCulture);
1483delayLoad = Convert.ToBoolean((String)entry.Value, CultureInfo.InvariantCulture);
1824time = time.ToLower(CultureInfo.InvariantCulture);
1832int value = Int32.Parse(time.Substring(0, time.Length - metricLength), CultureInfo.InvariantCulture);
system\runtime\remoting\remotingservices.cs (11)
25using CultureInfo = System.Globalization.CultureInfo;
215CultureInfo.CurrentCulture, Environment.GetResourceString(
254CultureInfo.CurrentCulture, Environment.GetResourceString(
282CultureInfo.CurrentCulture, Environment.GetResourceString(
1003CultureInfo.CurrentCulture, Environment.GetResourceString(
1186CultureInfo.CurrentCulture, Environment.GetResourceString(
1257CultureInfo.CurrentCulture, Environment.GetResourceString(
1390CultureInfo.CurrentCulture, Environment.GetResourceString(
1461CultureInfo.CurrentCulture, Environment.GetResourceString(
1713CultureInfo.CurrentCulture, Environment.GetResourceString(
1890CultureInfo.CurrentCulture, Environment.GetResourceString(
system\runtime\remoting\soapinteroptypes.cs (49)
195return value.ToString("yyyy-MM-dd'T'HH:mm:ss.fffffffzzz", CultureInfo.InvariantCulture);
211dt = DateTime.ParseExact(time, formats, CultureInfo.InvariantCulture,DateTimeStyles.None);
219CultureInfo.CurrentCulture, Environment.GetResourceString(
375(Int64.Parse(year, CultureInfo.InvariantCulture)*360+Int64.Parse(month, CultureInfo.InvariantCulture)*30+Int64.Parse(day, CultureInfo.InvariantCulture))*TimeSpan.TicksPerDay+
376Int64.Parse(hour, CultureInfo.InvariantCulture)*TimeSpan.TicksPerHour+
377Int64.Parse(minute, CultureInfo.InvariantCulture)*TimeSpan.TicksPerMinute+
378Convert.ToInt64(Double.Parse(second+"."+fraction, CultureInfo.InvariantCulture)*(Double)TimeSpan.TicksPerSecond)
386CultureInfo.CurrentCulture, Environment.GetResourceString(
456return _value.ToString("HH:mm:ss.fffffffzzz", CultureInfo.InvariantCulture);
465SoapTime dt = new SoapTime(DateTime.ParseExact(time, formats, CultureInfo.InvariantCulture,DateTimeStyles.None));
539return _value.ToString("'-'yyyy-MM-dd", CultureInfo.InvariantCulture);
541return _value.ToString("yyyy-MM-dd", CultureInfo.InvariantCulture);
550return new SoapDate(DateTime.ParseExact(value, formats, CultureInfo.InvariantCulture,DateTimeStyles.None), sign);
623return _value.ToString("'-'yyyy-MM", CultureInfo.InvariantCulture);
625return _value.ToString("yyyy-MM", CultureInfo.InvariantCulture);
634return new SoapYearMonth(DateTime.ParseExact(value, formats, CultureInfo.InvariantCulture,DateTimeStyles.None), sign);
707return _value.ToString("'-'yyyy", CultureInfo.InvariantCulture);
709return _value.ToString("yyyy", CultureInfo.InvariantCulture);
718return new SoapYear(DateTime.ParseExact(value, formats, CultureInfo.InvariantCulture,DateTimeStyles.None), sign);
769return _value.ToString("'--'MM'-'dd", CultureInfo.InvariantCulture);
775return new SoapMonthDay(DateTime.ParseExact(value, formats, CultureInfo.InvariantCulture,DateTimeStyles.None));
826return _value.ToString("---dd", CultureInfo.InvariantCulture);
832return new SoapDay(DateTime.ParseExact(value, formats, CultureInfo.InvariantCulture,DateTimeStyles.None));
883return _value.ToString("--MM--", CultureInfo.InvariantCulture);
889return new SoapMonth(DateTime.ParseExact(value, formats, CultureInfo.InvariantCulture,DateTimeStyles.None));
936String s = _value[i].ToString("X", CultureInfo.InvariantCulture);
959CultureInfo.CurrentCulture, Environment.GetResourceString(
978b = Byte.Parse(s, NumberStyles.HexNumber, CultureInfo.InvariantCulture);
1050CultureInfo.CurrentCulture, Environment.GetResourceString(
1097return _value.ToString(CultureInfo.InvariantCulture);
1103return new SoapInteger(Decimal.Parse(value, NumberStyles.Integer, CultureInfo.InvariantCulture));
1139CultureInfo.CurrentCulture, Environment.GetResourceString(
1152CultureInfo.CurrentCulture, Environment.GetResourceString(
1160return _value.ToString(CultureInfo.InvariantCulture);
1166return new SoapPositiveInteger(Decimal.Parse(value, NumberStyles.Integer, CultureInfo.InvariantCulture));
1201CultureInfo.CurrentCulture, Environment.GetResourceString(
1214CultureInfo.CurrentCulture, Environment.GetResourceString(
1222return _value.ToString(CultureInfo.InvariantCulture);
1228return new SoapNonPositiveInteger(Decimal.Parse(value, NumberStyles.Integer, CultureInfo.InvariantCulture));
1263CultureInfo.CurrentCulture, Environment.GetResourceString(
1276CultureInfo.CurrentCulture, Environment.GetResourceString(
1284return _value.ToString(CultureInfo.InvariantCulture);
1290return new SoapNonNegativeInteger(Decimal.Parse(value, NumberStyles.Integer, CultureInfo.InvariantCulture));
1325CultureInfo.CurrentCulture, Environment.GetResourceString(
1338CultureInfo.CurrentCulture, Environment.GetResourceString(
1346return _value.ToString(CultureInfo.InvariantCulture);
1352return new SoapNegativeInteger(Decimal.Parse(value, NumberStyles.Integer, CultureInfo.InvariantCulture));
system\runtime\serialization\formatter.cs (14)
142WriteBoolean(Convert.ToBoolean(data, CultureInfo.InvariantCulture), memberName);
144WriteChar(Convert.ToChar(data, CultureInfo.InvariantCulture), memberName);
146WriteSByte(Convert.ToSByte(data, CultureInfo.InvariantCulture), memberName);
148WriteByte(Convert.ToByte(data, CultureInfo.InvariantCulture), memberName);
150WriteInt16(Convert.ToInt16(data, CultureInfo.InvariantCulture), memberName);
152WriteInt32(Convert.ToInt32(data, CultureInfo.InvariantCulture), memberName);
154WriteInt64(Convert.ToInt64(data, CultureInfo.InvariantCulture), memberName);
156WriteSingle(Convert.ToSingle(data, CultureInfo.InvariantCulture), memberName);
158WriteDouble(Convert.ToDouble(data, CultureInfo.InvariantCulture), memberName);
160WriteDateTime(Convert.ToDateTime(data, CultureInfo.InvariantCulture), memberName);
162WriteDecimal(Convert.ToDecimal(data, CultureInfo.InvariantCulture), memberName);
164WriteUInt16(Convert.ToUInt16(data, CultureInfo.InvariantCulture), memberName);
166WriteUInt32(Convert.ToUInt32(data, CultureInfo.InvariantCulture), memberName);
168WriteUInt64(Convert.ToUInt64(data, CultureInfo.InvariantCulture), memberName);
system\runtime\serialization\formatterconverter.cs (17)
33return System.Convert.ChangeType(value, type, CultureInfo.InvariantCulture);
41return System.Convert.ChangeType(value, typeCode, CultureInfo.InvariantCulture);
49return System.Convert.ToBoolean(value, CultureInfo.InvariantCulture);
57return System.Convert.ToChar(value, CultureInfo.InvariantCulture);
66return System.Convert.ToSByte(value, CultureInfo.InvariantCulture);
74return System.Convert.ToByte(value, CultureInfo.InvariantCulture);
82return System.Convert.ToInt16(value, CultureInfo.InvariantCulture);
91return System.Convert.ToUInt16(value, CultureInfo.InvariantCulture);
99return System.Convert.ToInt32(value, CultureInfo.InvariantCulture);
108return System.Convert.ToUInt32(value, CultureInfo.InvariantCulture);
116return System.Convert.ToInt64(value, CultureInfo.InvariantCulture);
125return System.Convert.ToUInt64(value, CultureInfo.InvariantCulture);
133return System.Convert.ToSingle(value, CultureInfo.InvariantCulture);
141return System.Convert.ToDouble(value, CultureInfo.InvariantCulture);
149return System.Convert.ToDecimal(value, CultureInfo.InvariantCulture);
157return System.Convert.ToDateTime(value, CultureInfo.InvariantCulture);
165return System.Convert.ToString(value, CultureInfo.InvariantCulture);
system\runtime\serialization\formatters\binary\binaryformatterwriter.cs (14)
100WriteString(value.ToString(CultureInfo.InvariantCulture));
723WriteBoolean(Convert.ToBoolean(value, CultureInfo.InvariantCulture));
726WriteByte(Convert.ToByte(value, CultureInfo.InvariantCulture));
729WriteChar(Convert.ToChar(value, CultureInfo.InvariantCulture));
732WriteDouble(Convert.ToDouble(value, CultureInfo.InvariantCulture));
735WriteInt16(Convert.ToInt16(value, CultureInfo.InvariantCulture));
738WriteInt32(Convert.ToInt32(value, CultureInfo.InvariantCulture));
741WriteInt64(Convert.ToInt64(value, CultureInfo.InvariantCulture));
744WriteSByte(Convert.ToSByte(value, CultureInfo.InvariantCulture));
747WriteSingle(Convert.ToSingle(value, CultureInfo.InvariantCulture));
750WriteUInt16(Convert.ToUInt16(value, CultureInfo.InvariantCulture));
753WriteUInt32(Convert.ToUInt32(value, CultureInfo.InvariantCulture));
756WriteUInt64(Convert.ToUInt64(value, CultureInfo.InvariantCulture));
759WriteDecimal(Convert.ToDecimal(value, CultureInfo.InvariantCulture));
system\runtime\serialization\formatters\soapfault.cs (4)
60if (String.Compare(name, "faultCode", true, CultureInfo.InvariantCulture) == 0)
68else if (String.Compare(name, "faultString", true, CultureInfo.InvariantCulture) == 0)
70else if (String.Compare(name, "faultActor", true, CultureInfo.InvariantCulture) == 0)
72else if (String.Compare(name, "detail", true, CultureInfo.InvariantCulture) == 0)
system\security\accesscontrol\ace.cs (4)
856string.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "ArgumentOutOfRange_ArrayLength" ), 0, MaxOpaqueLength ));
862string.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "ArgumentOutOfRange_ArrayLengthMultiple" ), 4 ));
1303string.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "ArgumentOutOfRange_ArrayLength" ), 0, MaxOpaqueLengthInternal ));
1309string.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "ArgumentOutOfRange_ArrayLengthMultiple" ), 4 ));
system\security\accesscontrol\privilege.cs (5)
30using CultureInfo = System.Globalization.CultureInfo;
139Contract.Assert( false, string.Format( CultureInfo.InvariantCulture, "LookupPrivilegeValue() failed with unrecognized error code {0}", error ));
314Contract.Assert( false, string.Format( CultureInfo.InvariantCulture, "WindowsIdentity.GetCurrentThreadToken() failed with unrecognized error code {0}", error ));
579Contract.Assert( false, string.Format( CultureInfo.InvariantCulture, "AdjustTokenPrivileges() failed with unrecognized error code {0}", error ));
669Contract.Assert( false, string.Format( CultureInfo.InvariantCulture, "AdjustTokenPrivileges() failed with unrecognized error code {0}", error ));
system\security\framesecuritydescriptor.cs (4)
332throw new SecurityException(String.Format(CultureInfo.InvariantCulture, Environment.GetResourceString("Security_Generic"), demand.GetType().AssemblyQualifiedName), null, permSet, SecurityRuntime.GetMethodInfo(rmh), demand, demand);
347throw new SecurityException(String.Format(CultureInfo.InvariantCulture, Environment.GetResourceString("Security_Generic"), demand.GetType().AssemblyQualifiedName), null, permSet, SecurityRuntime.GetMethodInfo(rmh), demand, demand);
360throw new SecurityException(String.Format(CultureInfo.InvariantCulture, Environment.GetResourceString("Security_Generic"), demand.GetType().AssemblyQualifiedName), permSet, null, SecurityRuntime.GetMethodInfo(rmh), demand, demand);
372throw new SecurityException(String.Format(CultureInfo.InvariantCulture, Environment.GetResourceString("Security_Generic"), demand.GetType().AssemblyQualifiedName), permSet, null, SecurityRuntime.GetMethodInfo(rmh), demand, demand);
system\security\principal\sid.cs (6)
424Contract.Assert( false, string.Format( CultureInfo.InvariantCulture, "Win32.CreateSidFromString returned unrecognized error {0}", Error ));
526Contract.Assert( false, string.Format( CultureInfo.InvariantCulture, "Win32.GetWindowsAccountDomainSid returned unrecognized error {0}", ErrorCode) );
549Contract.Assert( false, string.Format( CultureInfo.InvariantCulture, "Win32.CreateWellKnownSid returned unrecognized error {0}", Error ));
714get { return ToString().ToUpper(CultureInfo.InvariantCulture); }
757Contract.Assert( false, string.Format( CultureInfo.InvariantCulture, "Win32.GetWindowsAccountDomainSid returned unrecognized error {0}", Error) );
998Contract.Assert( false, string.Format( CultureInfo.InvariantCulture, "Win32Native.LsaLookupSids returned {0}", win32ErrorCode));
system\security\principal\windowsidentity.cs (12)
1345Claim claim = new Claim(claimType, groupSid.Value, ClaimValueTypes.String, m_issuerName, m_issuerName, this, ClaimTypes.WindowsSubAuthority, Convert.ToString(groupSid.IdentifierAuthority, CultureInfo.InvariantCulture));
1352Claim claim = new Claim(claimType, groupSid.Value, ClaimValueTypes.String, m_issuerName, m_issuerName, this, ClaimTypes.WindowsSubAuthority, Convert.ToString(groupSid.IdentifierAuthority, CultureInfo.InvariantCulture));
1403instanceClaims.Add(new Claim(ClaimTypes.PrimaryGroupSid, groupSid.Value, ClaimValueTypes.String, m_issuerName, m_issuerName, this, ClaimTypes.WindowsSubAuthority, Convert.ToString(groupSid.IdentifierAuthority, CultureInfo.InvariantCulture)));
1407instanceClaims.Add(new Claim(ClaimTypes.GroupSid, groupSid.Value, ClaimValueTypes.String, m_issuerName, m_issuerName, this, ClaimTypes.WindowsSubAuthority, Convert.ToString(groupSid.IdentifierAuthority, CultureInfo.InvariantCulture)));
1414instanceClaims.Add(new Claim(ClaimTypes.DenyOnlyPrimaryGroupSid, groupSid.Value, ClaimValueTypes.String, m_issuerName, m_issuerName, this, ClaimTypes.WindowsSubAuthority, Convert.ToString(groupSid.IdentifierAuthority, CultureInfo.InvariantCulture)));
1418instanceClaims.Add(new Claim(ClaimTypes.DenyOnlySid, groupSid.Value, ClaimValueTypes.String, m_issuerName, m_issuerName, this, ClaimTypes.WindowsSubAuthority, Convert.ToString(groupSid.IdentifierAuthority, CultureInfo.InvariantCulture)));
1452instanceClaims.Add(new Claim(ClaimTypes.PrimarySid, sid.Value, ClaimValueTypes.String, m_issuerName, m_issuerName, this, ClaimTypes.WindowsSubAuthority, Convert.ToString(sid.IdentifierAuthority, CultureInfo.InvariantCulture)));
1456instanceClaims.Add(new Claim(ClaimTypes.DenyOnlyPrimarySid, sid.Value, ClaimValueTypes.String, m_issuerName, m_issuerName, this, ClaimTypes.WindowsSubAuthority, Convert.ToString(sid.IdentifierAuthority, CultureInfo.InvariantCulture)));
1510instanceClaims.Add(new Claim(windowsClaim.Name, Convert.ToString(intValues[item], CultureInfo.InvariantCulture), ClaimValueTypes.Integer64, m_issuerName, m_issuerName, this, propertyValue, string.Empty));
1521instanceClaims.Add( new Claim(windowsClaim.Name, Convert.ToString((UInt64)uintValues[item], CultureInfo.InvariantCulture), ClaimValueTypes.UInteger64, m_issuerName, m_issuerName, this, propertyValue, string.Empty));
1532((UInt64)boolValues[item] == 0 ? Convert.ToString(false, CultureInfo.InvariantCulture) : Convert.ToString(true, CultureInfo.InvariantCulture)),
system\security\securityelement.cs (9)
117throw new ArgumentException( String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "Argument_InvalidElementTag" ), tag ) );
130throw new ArgumentException( String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "Argument_InvalidElementTag" ), tag ) );
133throw new ArgumentException( String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "Argument_InvalidElementText" ), text ) );
156throw new ArgumentException( String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "Argument_InvalidElementTag" ), value ) );
205throw new ArgumentException( String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "Argument_InvalidElementName" ), (String)enumerator.Current ) );
208throw new ArgumentException( String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "Argument_InvalidElementValue" ), (String)enumerator.Value ) );
235throw new ArgumentException( String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "Argument_InvalidElementTag" ), value ) );
325throw new ArgumentException( String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "Argument_InvalidElementName" ), name ) );
328throw new ArgumentException( String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "Argument_InvalidElementValue" ), value ) );
system\security\securitymanager.cs (5)
217throw new ArgumentException( String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "Policy_BadXml" ), "configuration" ) );
221throw new ArgumentException( String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "Policy_BadXml" ), "mscorlib" ) );
225throw new ArgumentException( String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "Policy_BadXml" ), "security" ) );
229throw new ArgumentException( String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "Policy_BadXml" ), "policy" ) );
235throw new ArgumentException( String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "Policy_BadXml" ), "PolicyLevel" ) );
system\string.cs (59)
603return (CultureInfo.CurrentCulture.CompareInfo.Compare(this, value, CompareOptions.None) == 0);
606return (CultureInfo.CurrentCulture.CompareInfo.Compare(this, value, CompareOptions.IgnoreCase) == 0);
609return (CultureInfo.InvariantCulture.CompareInfo.Compare(this, value, CompareOptions.None) == 0);
612return (CultureInfo.InvariantCulture.CompareInfo.Compare(this, value, CompareOptions.IgnoreCase) == 0);
670return (CultureInfo.CurrentCulture.CompareInfo.Compare(a, b, CompareOptions.None) == 0);
673return (CultureInfo.CurrentCulture.CompareInfo.Compare(a, b, CompareOptions.IgnoreCase) == 0);
676return (CultureInfo.InvariantCulture.CompareInfo.Compare(a, b, CompareOptions.None) == 0);
679return (CultureInfo.InvariantCulture.CompareInfo.Compare(a, b, CompareOptions.IgnoreCase) == 0);
1776return CultureInfo.CurrentCulture.CompareInfo.Compare(strA, strB, CompareOptions.None);
1789return CultureInfo.CurrentCulture.CompareInfo.Compare(strA, strB, CompareOptions.IgnoreCase);
1791return CultureInfo.CurrentCulture.CompareInfo.Compare(strA, strB, CompareOptions.None);
1823return CultureInfo.CurrentCulture.CompareInfo.Compare(strA, strB, CompareOptions.None);
1826return CultureInfo.CurrentCulture.CompareInfo.Compare(strA, strB, CompareOptions.IgnoreCase);
1829return CultureInfo.InvariantCulture.CompareInfo.Compare(strA, strB, CompareOptions.None);
1832return CultureInfo.InvariantCulture.CompareInfo.Compare(strA, strB, CompareOptions.IgnoreCase);
1862public static int Compare(String strA, String strB, CultureInfo culture, CompareOptions options) {
1880public static int Compare(String strA, String strB, bool ignoreCase, CultureInfo culture) {
1912return CultureInfo.CurrentCulture.CompareInfo.Compare(strA, indexA, lengthA, strB, indexB, lengthB, CompareOptions.None);
1938return CultureInfo.CurrentCulture.CompareInfo.Compare(strA, indexA, lengthA, strB, indexB, lengthB, CompareOptions.IgnoreCase);
1940return CultureInfo.CurrentCulture.CompareInfo.Compare(strA, indexA, lengthA, strB, indexB, lengthB, CompareOptions.None);
1949public static int Compare(String strA, int indexA, String strB, int indexB, int length, bool ignoreCase, CultureInfo culture) {
1983public static int Compare(String strA, int indexA, String strB, int indexB, int length, CultureInfo culture, CompareOptions options) {
2071return CultureInfo.CurrentCulture.CompareInfo.Compare(strA, indexA, lengthA, strB, indexB, lengthB, CompareOptions.None);
2074return CultureInfo.CurrentCulture.CompareInfo.Compare(strA, indexA, lengthA, strB, indexB, lengthB, CompareOptions.IgnoreCase);
2077return CultureInfo.InvariantCulture.CompareInfo.Compare(strA, indexA, lengthA, strB, indexB, lengthB, CompareOptions.None);
2080return CultureInfo.InvariantCulture.CompareInfo.Compare(strA, indexA, lengthA, strB, indexB, lengthB, CompareOptions.IgnoreCase);
2123return CultureInfo.CurrentCulture.CompareInfo.Compare(this, strB, 0);
2209return CultureInfo.CurrentCulture.CompareInfo.IsSuffix(this, value, CompareOptions.None);
2212return CultureInfo.CurrentCulture.CompareInfo.IsSuffix(this, value, CompareOptions.IgnoreCase);
2215return CultureInfo.InvariantCulture.CompareInfo.IsSuffix(this, value, CompareOptions.None);
2218return CultureInfo.InvariantCulture.CompareInfo.IsSuffix(this, value, CompareOptions.IgnoreCase);
2232public Boolean EndsWith(String value, Boolean ignoreCase, CultureInfo culture) {
2242CultureInfo referenceCulture;
2244referenceCulture = CultureInfo.CurrentCulture;
2364return CultureInfo.CurrentCulture.CompareInfo.IndexOf(this, value, startIndex, count, CompareOptions.None);
2367return CultureInfo.CurrentCulture.CompareInfo.IndexOf(this, value, startIndex, count, CompareOptions.IgnoreCase);
2370return CultureInfo.InvariantCulture.CompareInfo.IndexOf(this, value, startIndex, count, CompareOptions.None);
2373return CultureInfo.InvariantCulture.CompareInfo.IndexOf(this, value, startIndex, count, CompareOptions.IgnoreCase);
2376return CultureInfo.InvariantCulture.CompareInfo.IndexOf(this, value, startIndex, count, CompareOptions.Ordinal);
2380return CultureInfo.InvariantCulture.CompareInfo.IndexOf(this, value, startIndex, count, CompareOptions.IgnoreCase);
2504return CultureInfo.CurrentCulture.CompareInfo.LastIndexOf(this, value, startIndex, count, CompareOptions.None);
2507return CultureInfo.CurrentCulture.CompareInfo.LastIndexOf(this, value, startIndex, count, CompareOptions.IgnoreCase);
2510return CultureInfo.InvariantCulture.CompareInfo.LastIndexOf(this, value, startIndex, count, CompareOptions.None);
2513return CultureInfo.InvariantCulture.CompareInfo.LastIndexOf(this, value, startIndex, count, CompareOptions.IgnoreCase);
2515return CultureInfo.InvariantCulture.CompareInfo.LastIndexOf(this, value, startIndex, count, CompareOptions.Ordinal);
2519return CultureInfo.InvariantCulture.CompareInfo.LastIndexOf(this, value, startIndex, count, CompareOptions.IgnoreCase);
2589return CultureInfo.CurrentCulture.CompareInfo.IsPrefix(this, value, CompareOptions.None);
2592return CultureInfo.CurrentCulture.CompareInfo.IsPrefix(this, value, CompareOptions.IgnoreCase);
2595return CultureInfo.InvariantCulture.CompareInfo.IsPrefix(this, value, CompareOptions.None);
2598return CultureInfo.InvariantCulture.CompareInfo.IsPrefix(this, value, CompareOptions.IgnoreCase);
2619public Boolean StartsWith(String value, Boolean ignoreCase, CultureInfo culture) {
2629CultureInfo referenceCulture;
2631referenceCulture = CultureInfo.CurrentCulture;
2643return this.ToLower(CultureInfo.CurrentCulture);
2648public String ToLower(CultureInfo culture) {
2662return this.ToLower(CultureInfo.InvariantCulture);
2670return this.ToUpper(CultureInfo.CurrentCulture);
2676public String ToUpper(CultureInfo culture) {
2691return this.ToUpper(CultureInfo.InvariantCulture);
system\text\stringbuilder.cs (22)
915return Append(value.ToString(CultureInfo.CurrentCulture));
922return Append(value.ToString(CultureInfo.CurrentCulture));
940return Append(value.ToString(CultureInfo.CurrentCulture));
947return Append(value.ToString(CultureInfo.CurrentCulture));
954return Append(value.ToString(CultureInfo.CurrentCulture));
961return Append(value.ToString(CultureInfo.CurrentCulture));
968return Append(value.ToString(CultureInfo.CurrentCulture));
973return Append(value.ToString(CultureInfo.CurrentCulture));
981return Append(value.ToString(CultureInfo.CurrentCulture));
989return Append(value.ToString(CultureInfo.CurrentCulture));
997return Append(value.ToString(CultureInfo.CurrentCulture));
1072return Insert(index, value.ToString(CultureInfo.CurrentCulture), 1);
1082return Insert(index, value.ToString(CultureInfo.CurrentCulture), 1);
1092return Insert(index, value.ToString(CultureInfo.CurrentCulture), 1);
1178return Insert(index, value.ToString(CultureInfo.CurrentCulture), 1);
1188return Insert(index, value.ToString(CultureInfo.CurrentCulture), 1);
1198return Insert(index, value.ToString(CultureInfo.CurrentCulture), 1);
1208return Insert(index, value.ToString(CultureInfo.CurrentCulture), 1);
1213return Insert(index, value.ToString(CultureInfo.CurrentCulture), 1);
1223return Insert(index, value.ToString(CultureInfo.CurrentCulture), 1);
1233return Insert(index, value.ToString(CultureInfo.CurrentCulture), 1);
1243return Insert(index, value.ToString(CultureInfo.CurrentCulture), 1);
system\timezoneinfo.cs (18)
903return m_id.ToUpper(CultureInfo.InvariantCulture).GetHashCode();
2311String.Format(CultureInfo.InvariantCulture, "{0}\\{1}\\Dynamic DST",
2353Byte[] regValue = dynamicKey.GetValue(first.ToString(CultureInfo.InvariantCulture), null, RegistryValueOptions.None) as Byte[];
2389regValue = dynamicKey.GetValue(i.ToString(CultureInfo.InvariantCulture), null, RegistryValueOptions.None) as Byte[];
2405regValue = dynamicKey.GetValue(last.ToString(CultureInfo.InvariantCulture), null, RegistryValueOptions.None) as Byte[];
2488String.Format(CultureInfo.InvariantCulture, "{0}\\{1}",
2604if (!Int32.TryParse(resources[1], NumberStyles.Integer, CultureInfo.InvariantCulture, out resourceId)) {
2773String.Format(CultureInfo.InvariantCulture, "{0}\\{1}",
3572zone.BaseUtcOffset.TotalMinutes.ToString(CultureInfo.InvariantCulture)));
3594serializedText.Append(SerializeSubstitute(rule.DaylightDelta.TotalMinutes.ToString(CultureInfo.InvariantCulture)));
3602serializedText.Append(SerializeSubstitute(rule.BaseUtcOffsetDelta.TotalMinutes.ToString(CultureInfo.InvariantCulture)));
3685serializedText.Append(fixedDate.ToString(CultureInfo.InvariantCulture));
3691serializedText.Append(SerializeSubstitute(time.Month.ToString(CultureInfo.InvariantCulture)));
3693serializedText.Append(SerializeSubstitute(time.Day.ToString(CultureInfo.InvariantCulture)));
3699serializedText.Append(SerializeSubstitute(time.Month.ToString(CultureInfo.InvariantCulture)));
3701serializedText.Append(SerializeSubstitute(time.Week.ToString(CultureInfo.InvariantCulture)));
3703serializedText.Append(SerializeSubstitute(((int)time.DayOfWeek).ToString(CultureInfo.InvariantCulture)));
3918if (!Int32.TryParse(token, NumberStyles.AllowLeadingSign /* "[sign]digits" */, CultureInfo.InvariantCulture, out value)) {
Core\CSharp\MS\Internal\IListConverters.cs (14)
57public override object ConvertFrom(ITypeDescriptorContext td, CultureInfo ci, object value)
77public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
89internal abstract object ConvertFromCore(ITypeDescriptorContext td, CultureInfo ci, string value);
94internal abstract object ConvertToCore(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType);
106internal sealed override object ConvertFromCore(ITypeDescriptorContext td, CultureInfo ci, string value)
120internal override object ConvertToCore(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
151internal override object ConvertFromCore(ITypeDescriptorContext td, CultureInfo ci, string value)
162internal override object ConvertToCore(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
192internal override object ConvertFromCore(ITypeDescriptorContext td, CultureInfo ci, string value)
203internal override object ConvertToCore(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
233internal override object ConvertFromCore(ITypeDescriptorContext td, CultureInfo ci, string value)
245internal override object ConvertToCore(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
278internal override object ConvertFromCore(ITypeDescriptorContext td, CultureInfo ci, string value)
283internal override object ConvertToCore(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Core\CSharp\MS\Internal\Shaping\TypefaceMap.cs (23)
49private IDictionary<CultureInfo, IntMap> _intMaps = new Dictionary<CultureInfo, IntMap>();
88CultureInfo digitCulture,
104CultureInfo culture = textRunProperties.CultureInfo;
246CultureInfo culture,
252CultureInfo digitCulture = ((MS.Internal.Text.TextInterface.ItemProps)itemSpan.element).DigitCulture;
323CultureInfo culture,
324CultureInfo digitCulture,
381CultureInfo culture,
382CultureInfo digitCulture,
436CultureInfo.InvariantCulture,
499CultureInfo culture,
500CultureInfo digitCulture,
679CultureInfo culture,
680CultureInfo digitCulture,
727CultureInfo culture,
728CultureInfo digitCulture,
780CultureInfo culture,
781CultureInfo digitCulture,
868CultureInfo culture,
869CultureInfo digitCulture,
992CultureInfo culture,
993CultureInfo digitCulture,
Core\CSharp\MS\Internal\TextFormatting\NumberSubstitution.cs (23)
23internal CultureInfo DigitCulture
53internal static NumberSubstitutionMethod GetResolvedSubstitutionMethod(TextRunProperties properties, CultureInfo digitCulture, out bool ignoreUserOverride)
61CultureInfo numberCulture = GetNumberCulture(properties, out method, out ignoreUserOverride);
103CultureInfo numberCulture = GetNumberCulture(properties, out method, out ignoreUserOverride);
116private static CultureInfo GetNumberCulture(TextRunProperties properties, out NumberSubstitutionMethod method, out bool ignoreUserOverride)
135return CultureInfo.CurrentCulture;
144private CultureInfo GetDigitCulture(CultureInfo numberCulture, NumberSubstitutionMethod method, out bool contextual)
170CultureInfo digitCulture;
209private static bool HasLatinDigits(CultureInfo culture)
221private static bool IsArabic(CultureInfo culture)
226private static bool IsFarsi(CultureInfo culture)
237private CultureInfo GetTraditionalCulture(CultureInfo numberCulture)
262CultureInfo digitCulture = null;
480private CultureInfo CreateTraditionalCulture(CultureInfo numberCulture, int firstDigit, bool arabic)
487CultureInfo digitCulture = (CultureInfo)numberCulture.Clone();
533private CultureInfo _lastTraditionalCulture;
538private CultureInfo _lastNumberCulture;
540private CultureInfo _digitCulture;
554internal DigitMap(CultureInfo digitCulture)
Core\CSharp\System\Windows\Media\FormattedText.cs (11)
54CultureInfo culture,
84CultureInfo culture,
118CultureInfo culture,
150CultureInfo culture,
184CultureInfo culture,
209CultureInfo culture,
221private void InitFormattedText(string textToFormat, CultureInfo culture, FlowDirection flowDirection, Typeface typeface,
290private static void ValidateCulture(CultureInfo culture)
519public void SetCulture(CultureInfo culture)
530public void SetCulture(CultureInfo culture, int startIndex, int count)
1912CultureInfo culture = null;
Core\CSharp\System\Windows\Media\GlyphTypeface.cs (18)
427public IDictionary<CultureInfo,string> FamilyNames
460public IDictionary<CultureInfo, string> FaceNames
490public IDictionary<CultureInfo, string> Win32FamilyNames
517IDictionary<CultureInfo, string> adjustedFaceNames = _font.FaceNames;
520foreach (KeyValuePair<CultureInfo, string> pair in adjustedFaceNames)
537public IDictionary<CultureInfo, string> Win32FaceNames
557public IDictionary<CultureInfo, string> VersionStrings
576public IDictionary<CultureInfo, string> Copyrights
595public IDictionary<CultureInfo, string> ManufacturerNames
616public IDictionary<CultureInfo, string> Trademarks
635public IDictionary<CultureInfo, string> DesignerNames
655public IDictionary<CultureInfo, string> Descriptions
676public IDictionary<CultureInfo, string> VendorUrls
695public IDictionary<CultureInfo, string> DesignerUrls
716public IDictionary<CultureInfo, string> LicenseDescriptions
736public IDictionary<CultureInfo, string> SampleTexts
1736CultureInfo cultureInfo,
2003private IDictionary<CultureInfo, string> GetFontInfo(MS.Internal.Text.TextInterface.InformationalStringID informationalStringID)
src\Framework\MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (16)
228double height = Convert.ToDouble(node.Value, CultureInfo.InvariantCulture);
243double width = Convert.ToDouble(node.Value, CultureInfo.InvariantCulture);
258bool expanded = Convert.ToBoolean(node.Value, CultureInfo.InvariantCulture);
273((IAnnotationComponent)snc).ZOrder = Convert.ToInt32(node.Value, CultureInfo.InvariantCulture);
286double left = Convert.ToDouble(node.Value, CultureInfo.InvariantCulture);
306double top = Convert.ToDouble(node.Value, CultureInfo.InvariantCulture);
317snc.XOffset = Convert.ToDouble(node.Value, CultureInfo.InvariantCulture);
326snc.YOffset = Convert.ToDouble(node.Value, CultureInfo.InvariantCulture);
816sncAnnotation.UpdateAttribute(root, XmlToken.IsExpanded, expanded.ToString(CultureInfo.InvariantCulture));
824sncAnnotation.UpdateAttribute(root, XmlToken.Height, height.ToString(CultureInfo.InvariantCulture));
832sncAnnotation.UpdateAttribute(root, XmlToken.Width, width.ToString(CultureInfo.InvariantCulture));
849sncAnnotation.UpdateAttribute(root, XmlToken.Left, left.ToString(CultureInfo.InvariantCulture));
855sncAnnotation.UpdateAttribute(root, XmlToken.Top, snc.PositionTransform.Y.ToString(CultureInfo.InvariantCulture));
861sncAnnotation.UpdateAttribute(root, XmlToken.XOffset, snc.XOffset.ToString(CultureInfo.InvariantCulture));
867sncAnnotation.UpdateAttribute(root, XmlToken.YOffset, snc.YOffset.ToString(CultureInfo.InvariantCulture));
873sncAnnotation.UpdateAttribute(root, XmlToken.ZOrder, ((IAnnotationComponent)snc).ZOrder.ToString(CultureInfo.InvariantCulture));
src\Framework\MS\Internal\Data\DefaultValueConverter.cs (18)
202internal static object TryParse(object o, Type targetType, CultureInfo culture)
257protected object ConvertFrom(object o, Type destinationType, DependencyObject targetElement, CultureInfo culture)
262protected object ConvertTo(object o, Type destinationType, DependencyObject targetElement, CultureInfo culture)
282private object ConvertHelper(object o, Type destinationType, DependencyObject targetElement, CultureInfo culture, bool isForward)
405public object Convert(object o, Type type, object parameter, CultureInfo culture)
410public object ConvertBack(object o, Type type, object parameter, CultureInfo culture)
440public object Convert(object o, Type type, object parameter, CultureInfo culture)
445public object ConvertBack(object o, Type type, object parameter, CultureInfo culture)
463public object Convert(object o, Type type, object parameter, CultureInfo culture)
468public object ConvertBack(object o, Type type, object parameter, CultureInfo culture)
577public object Convert(object o, Type type, object parameter, CultureInfo culture)
583public object ConvertBack(object o, Type type, object parameter, CultureInfo culture)
624public object Convert(object o, Type type, object parameter, CultureInfo culture)
641public object ConvertBack(object o, Type type, object parameter, CultureInfo culture)
667public object Convert(object o, Type type, object parameter, CultureInfo culture)
680public object ConvertBack(object o, Type type, object parameter, CultureInfo culture)
710public object Convert(object o, Type type, object parameter, CultureInfo culture)
715public object ConvertBack(object o, Type type, object parameter, CultureInfo culture)
src\Framework\MS\Internal\LayoutDump.cs (30)
49StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture);
109StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture);
345writer.WriteAttributeString("Count", count.ToString(CultureInfo.InvariantCulture));
369writer.WriteAttributeString("Count", uiElements.Count.ToString(CultureInfo.InvariantCulture));
386writer.WriteAttributeString("Left", point.X.ToString("F", CultureInfo.InvariantCulture));
387writer.WriteAttributeString("Top", point.Y.ToString("F", CultureInfo.InvariantCulture));
397writer.WriteAttributeString("Width", size.Width.ToString ("F", CultureInfo.InvariantCulture));
398writer.WriteAttributeString("Height", size.Height.ToString("F", CultureInfo.InvariantCulture));
408writer.WriteAttributeString("Left", rect.Left.ToString ("F", CultureInfo.InvariantCulture));
409writer.WriteAttributeString("Top", rect.Top.ToString ("F", CultureInfo.InvariantCulture));
410writer.WriteAttributeString("Width", rect.Width.ToString ("F", CultureInfo.InvariantCulture));
411writer.WriteAttributeString("Height", rect.Height.ToString("F", CultureInfo.InvariantCulture));
499writer.WriteAttributeString("BaselineOffset", ((double)text.GetValue(TextBlock.BaselineOffsetProperty)).ToString("F", CultureInfo.InvariantCulture));
588writer.WriteAttributeString("Count", flowDocumentPage.FormattedLinesCount.ToString(CultureInfo.InvariantCulture));
608writer.WriteAttributeString("Start", cpStart.ToString(CultureInfo.InvariantCulture));
609writer.WriteAttributeString("Length", (cpEnd - cpStart).ToString(CultureInfo.InvariantCulture));
622writer.WriteAttributeString("Start", cpStart.ToString(CultureInfo.InvariantCulture));
623writer.WriteAttributeString("Length", (cpEnd - cpStart).ToString(CultureInfo.InvariantCulture));
633writer.WriteAttributeString("Start", cpStart.ToString(CultureInfo.InvariantCulture));
634writer.WriteAttributeString("Length", (cpEnd - cpStart).ToString(CultureInfo.InvariantCulture));
637writer.WriteAttributeString("HiddenLength", (cpEnd - cpContentEnd).ToString(CultureInfo.InvariantCulture));
641writer.WriteAttributeString("EllipsesLength", (cpEnd - cpEllipses).ToString(CultureInfo.InvariantCulture));
655writer.WriteAttributeString("Count", lines.Count.ToString(CultureInfo.InvariantCulture));
696writer.WriteAttributeString("Count", paragraphs.Count.ToString(CultureInfo.InvariantCulture));
883writer.WriteAttributeString("Count", columns.Count.ToString(CultureInfo.InvariantCulture));
941writer.WriteAttributeString("Count", count.ToString(CultureInfo.InvariantCulture));
973writer.WriteAttributeString("ColumnIndex", columnIndex.ToString(CultureInfo.InvariantCulture));
981writer.WriteAttributeString("RowIndex", rowIndex.ToString(CultureInfo.InvariantCulture));
984writer.WriteAttributeString("ColumnSpan", cell.ColumnSpan.ToString(CultureInfo.InvariantCulture));
985writer.WriteAttributeString("RowSpan", cell.RowSpan.ToString(CultureInfo.InvariantCulture));
src\Framework\System\Windows\Automation\Peers\ScrollViewerAutomationPeer.cs (2)
159throw new ArgumentOutOfRangeException("horizontalPercent", SR.Get(SRID.ScrollViewer_OutOfRange, "horizontalPercent", horizontalPercent.ToString(CultureInfo.InvariantCulture), "0", "100"));
163throw new ArgumentOutOfRangeException("verticalPercent", SR.Get(SRID.ScrollViewer_OutOfRange, "verticalPercent", verticalPercent.ToString(CultureInfo.InvariantCulture), "0", "100"));
src\Framework\System\Windows\Controls\DataGridClipboardHelper.cs (5)
32FormatPlainText(cellValue.ToString(), csv, new StringWriter(sb, CultureInfo.CurrentCulture), ref escapeApplied);
61FormatPlainTextAsHtml(cellValue.ToString(), new StringWriter(sb, CultureInfo.CurrentCulture));
92string prefix = string.Format(CultureInfo.InvariantCulture, DATAGRIDVIEW_htmlPrefix, bytecountEndOfHtml.ToString("00000000", CultureInfo.InvariantCulture), bytecountEndOfFragment.ToString("00000000", CultureInfo.InvariantCulture)) + DATAGRIDVIEW_htmlStartFragment;
src\Framework\System\Windows\Controls\StickyNote.cs (4)
1951public object Convert(object o, Type type, object parameter, CultureInfo culture)
1967public object ConvertBack(object o, Type type, object parameter, CultureInfo culture)
1977public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
1995public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (8)
11878if (Int32.TryParse(a[1], NumberStyles.Integer, CultureInfo.InvariantCulture, out flushDepth))
11887if (Int32.TryParse(a[2], NumberStyles.Integer, CultureInfo.InvariantCulture, out luThreshold))
12129return String.Format(CultureInfo.InvariantCulture, s_format[length], args);
12657return String.Format(CultureInfo.InvariantCulture, "{0} {1} {2} {3} {4}",
12820return String.Format(CultureInfo.InvariantCulture, "{0} ds: {1} ar: {2} in: {3}",
12894return String.Format(CultureInfo.InvariantCulture, "{0}", g.IndexFromContainer(container, returnLocalIndex:true));
12903return String.Format(CultureInfo.InvariantCulture, "{0}", localIndex);
12907return String.Format(CultureInfo.InvariantCulture, "{0}.{1}",
src\Framework\System\Windows\Documents\Speller.cs (9)
209CultureInfo culture = GetCurrentCultureAndLanguage(error.Start, out language);
414System.Diagnostics.Trace.Write(string.Format(CultureInfo.InvariantCulture, "Unloading dictionary failed. Original Uri:{0}, file Uri:{1}, exception:{2}", uri.ToString(), info.PathUri.ToString(), e.ToString()));
858CultureInfo culture = GetCurrentCultureAndLanguage(start, out language);
1520private static bool CanSpellCheck(CultureInfo culture)
1547private void SetCulture(CultureInfo culture)
1594private CultureInfo GetCurrentCultureAndLanguage(ITextPointer position, out XmlLanguage language)
1596CultureInfo cultureInfo;
1715System.Diagnostics.Trace.Write(string.Format(CultureInfo.InvariantCulture, "Failure to delete temporary file with custom dictionary data. file Uri:{0},exception:{1}", tempLocationUri.ToString(), e.ToString()));
2187private readonly CultureInfo _defaultCulture;
src\Framework\System\Windows\Markup\BamlRecords.cs (15)
986return string.Format(CultureInfo.InvariantCulture, "{0}", RecordType);
991string typeName = typeId.ToString(CultureInfo.InvariantCulture);
1965return string.Format(CultureInfo.InvariantCulture,
2049return string.Format(CultureInfo.InvariantCulture,
2123return string.Format(CultureInfo.InvariantCulture,
2388return string.Format(CultureInfo.InvariantCulture,
2531return string.Format(CultureInfo.InvariantCulture,
3479return string.Format(CultureInfo.InvariantCulture,
3879return string.Format(CultureInfo.InvariantCulture,
3956return string.Format(CultureInfo.InvariantCulture,
4036return string.Format(CultureInfo.InvariantCulture,
5185return string.Format(CultureInfo.InvariantCulture,
5298return string.Format(CultureInfo.InvariantCulture,
5462return string.Format(CultureInfo.InvariantCulture,
5528return string.Format(CultureInfo.InvariantCulture,
src\Framework\System\Windows\Navigation\JournalEntryListConverter.cs (4)
38public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
48public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
121public object Convert(object[] values, Type targetType, object parameter, System.Globalization.CultureInfo culture)
143public object[] ConvertBack(object value, Type[] targetTypes, object parameter, System.Globalization.CultureInfo culture)
src\Framework\System\Windows\Standard\Verify.cs (5)
145throw new InvalidOperationException(string.Format(CultureInfo.InvariantCulture, "The property {0} cannot be null at this time.", name));
155throw new InvalidOperationException(string.Format(CultureInfo.InvariantCulture, "The property {0} must be null at this time.", name));
249throw new ArgumentException(string.Format(CultureInfo.InvariantCulture, "The integer value must be bounded with [{0}, {1})", lowerBoundInclusive, upperBoundExclusive), parameterName);
284throw new ArgumentException(string.Format(CultureInfo.InvariantCulture, "No file exists at \"{0}\"", filePath), parameterName);
308throw new ArgumentException(string.Format(CultureInfo.InvariantCulture, "The parameter must implement interface {0}.", interfaceType.ToString()), parameterName);
compmod\microsoft\csharp\csharpcodeprovider.cs (21)
546ce.Line = int.Parse(m.Groups[4].Value, CultureInfo.InvariantCulture);
547ce.Column = int.Parse(m.Groups[5].Value, CultureInfo.InvariantCulture);
1195Output.Write(((SByte)e.Value).ToString(CultureInfo.InvariantCulture));
1200Output.Write(((UInt16)e.Value).ToString(CultureInfo.InvariantCulture));
1203Output.Write(((UInt32)e.Value).ToString(CultureInfo.InvariantCulture));
1207Output.Write(((UInt64)e.Value).ToString(CultureInfo.InvariantCulture));
1232Output.Write(((byte)e.Value).ToString(CultureInfo.InvariantCulture));
1235Output.Write(((Int16)e.Value).ToString(CultureInfo.InvariantCulture));
1238Output.Write(((Int32)e.Value).ToString(CultureInfo.InvariantCulture));
1241Output.Write(((Int64)e.Value).ToString(CultureInfo.InvariantCulture));
1311Output.Write(((int)value).ToString("X4", CultureInfo.InvariantCulture));
1314b.Append(((int)value).ToString("X4", CultureInfo.InvariantCulture));
2016Output.Write(s.ToString(CultureInfo.InvariantCulture));
2032Output.Write(d.ToString("R", CultureInfo.InvariantCulture));
2039Output.Write(d.ToString(CultureInfo.InvariantCulture));
2984Output.Write(checksumPragma.ChecksumAlgorithmId.ToString("B", CultureInfo.InvariantCulture));
2988Output.Write(b.ToString("X2", CultureInfo.InvariantCulture));
3201string lowerCaseString = s.ToLower( CultureInfo.InvariantCulture).Trim();
3411&& -1 != CultureInfo.InvariantCulture.CompareInfo.IndexOf(options.CompilerOptions,"/debug:pdbonly", CompareOptions.IgnoreCase))
4148public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value) {
4169public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) {
compmod\system\componentmodel\MaskedTextProvider.cs (13)
98CultureInfo.InvariantCulture,
139private CultureInfo culture;
190public MaskedTextProvider( string mask, CultureInfo culture )
201public MaskedTextProvider(string mask, CultureInfo culture, bool restrictToAscii)
221public MaskedTextProvider(string mask, CultureInfo culture, char passwordChar, bool allowPromptAsInput)
235public MaskedTextProvider( string mask, CultureInfo culture, bool allowPromptAsInput, char promptChar, char passwordChar, bool restrictToAscii )
252culture = CultureInfo.CurrentCulture;
267foreach (CultureInfo tempCulture in CultureInfo.GetCultures(CultureTypes.SpecificCultures))
279this.culture = CultureInfo.InvariantCulture;
289this.culture = CultureInfo.ReadOnly(this.culture);
554public CultureInfo Culture
882throw new IndexOutOfRangeException(index.ToString(CultureInfo.CurrentCulture));
compmod\system\componentmodel\TypeConverter.cs (14)
100return ConvertFrom(null, CultureInfo.CurrentCulture, value);
106public virtual object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value) {
119return ConvertFromString(null, CultureInfo.InvariantCulture, text);
126return ConvertFromString(context, CultureInfo.InvariantCulture, text);
140return ConvertFrom(context, CultureInfo.CurrentCulture, text);
146public object ConvertFromString(ITypeDescriptorContext context, CultureInfo culture, string text) {
163public virtual object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) {
175if(culture != null && culture != CultureInfo.CurrentCulture) {
192return ConvertToString(null, CultureInfo.InvariantCulture, value);
200return ConvertToString(context, CultureInfo.InvariantCulture, value);
208return (string)ConvertTo(null, CultureInfo.CurrentCulture, value, typeof(string));
215return (string)ConvertTo(context, CultureInfo.CurrentCulture, value, typeof(string));
221public string ConvertToString(ITypeDescriptorContext context, CultureInfo culture, object value) {
416ConvertFrom(context, CultureInfo.InvariantCulture, value);
compmod\system\componentmodel\TypeDescriptor.cs (5)
1909name = ci.ToString(CultureInfo.InvariantCulture);
1912suffix = string.Format(CultureInfo.InvariantCulture, "_{0}", name);
3335Debug.WriteLineIf(TraceDescriptor.Enabled, string.Format(CultureInfo.InvariantCulture, "TypeDescriptor : {0}", string.Format(CultureInfo.InvariantCulture, message, args)));
3683return string.Compare(((MemberDescriptor)left).Name, ((MemberDescriptor)right).Name, false, CultureInfo.InvariantCulture);
net\System\Net\_AutoWebProxyScriptHelper.cs (2)
168public override object Invoke(object target, BindingFlags bindingAttr, Binder binder, object[] args, CultureInfo culture) {
237object IReflect.InvokeMember(string name, BindingFlags bindingAttr, Binder binder, object target, object[] args, ParameterModifier[] modifiers, CultureInfo culture, string[] namedParameters) {
net\System\Net\_SSPIWrapper.cs (6)
134if (Logging.On) Logging.PrintError(Logging.Web, SR.GetString(SR.net_log_operation_failed_with_error, "AcquireDefaultCredential()", String.Format(CultureInfo.CurrentCulture, "0X{0:X}", errorCode)));
174if (Logging.On) Logging.PrintError(Logging.Web, SR.GetString(SR.net_log_operation_failed_with_error, "AcquireCredentialsHandle()", String.Format(CultureInfo.CurrentCulture, "0X{0:X}", errorCode)));
192if (Logging.On) Logging.PrintError(Logging.Web, SR.GetString(SR.net_log_operation_failed_with_error, "AcquireCredentialsHandle()", String.Format(CultureInfo.CurrentCulture, "0X{0:X}", errorCode)));
218if (Logging.On) Logging.PrintError(Logging.Web, SR.GetString(SR.net_log_operation_failed_with_error, "AcquireCredentialsHandle()", String.Format(CultureInfo.CurrentCulture, "0X{0:X}", errorCode)));
484Logging.PrintError(Logging.Web, SR.GetString(SR.net_log_operation_failed_with_error, op, String.Format(CultureInfo.CurrentCulture, "0X{0:X}", errorCode)));
977return "Capabilities:" + String.Format(CultureInfo.InvariantCulture, "0x{0:x}", Capabilities)
net\System\Net\Cache\_Rfc2616CacheValidators.cs (12)
501if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_now_time, DateTime.UtcNow.ToString("r", CultureInfo.InvariantCulture)));
514if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_age1_date_header, ((int)age.TotalSeconds).ToString(NumberFormatInfo.InvariantInfo), ctx.CacheDate.ToString("r", CultureInfo.InvariantCulture)));
526Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_age1_last_synchronized_age_header, ((int)age.TotalSeconds).ToString(NumberFormatInfo.InvariantInfo), ctx.CacheEntry.LastSynchronizedUtc.ToString("r", CultureInfo.InvariantCulture), ((int)ctx.CacheAge.TotalSeconds).ToString(NumberFormatInfo.InvariantInfo)));
528Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_age1_last_synchronized, ((int)age.TotalSeconds).ToString(NumberFormatInfo.InvariantInfo), ctx.CacheEntry.LastSynchronizedUtc.ToString("r", CultureInfo.InvariantCulture)));
605if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_max_age_expires_date, ((int)((expiresDate - date).TotalSeconds)).ToString(NumberFormatInfo.InvariantInfo), expiresDate.ToString("r", CultureInfo.InvariantCulture)));
616if(Logging.On)Logging.PrintWarning(Logging.RequestCache, SR.GetString(SR.net_log_cache_max_age_absolute, expiresDate.ToString("r", CultureInfo.InvariantCulture)));
649if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_no_max_age_use_10_percent, maxAgeSeconds.ToString(NumberFormatInfo.InvariantInfo), lastModifiedDate.ToString("r", CultureInfo.InvariantCulture)));
899if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_policy_cache_sync_date, ctx.Policy.InternalCacheSyncDateUtc.ToString("r", CultureInfo.CurrentCulture), ctx.CacheEntry.LastSynchronizedUtc.ToString(CultureInfo.CurrentCulture)));
1605str = ctx.CacheEntry.LastModifiedUtc.ToString("r", CultureInfo.InvariantCulture);
1667str = ctx.CacheEntry.LastModifiedUtc.ToString("r", CultureInfo.InvariantCulture);
1874ranges = ranges.ToLower(CultureInfo.InvariantCulture);
net\System\Net\Cache\FtpRequestCacheValidator.cs (14)
79string method = Request.Method.ToUpper(CultureInfo.InvariantCulture);
138if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_now_time, nowDate.ToString("r", CultureInfo.InvariantCulture)));
144if(Logging.On)Logging.PrintWarning(Logging.RequestCache, SR.GetString(SR.net_log_cache_max_age_absolute, CacheEntry.ExpiresUtc.ToString("r", CultureInfo.InvariantCulture)));
156if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_age1, ((int)age.TotalSeconds).ToString(NumberFormatInfo.InvariantInfo), CacheEntry.LastSynchronizedUtc.ToString("r", CultureInfo.InvariantCulture)));
166if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_no_max_age_use_10_percent, maxAgeSeconds.ToString(NumberFormatInfo.InvariantInfo), CacheEntry.LastModifiedUtc.ToString("r", CultureInfo.InvariantCulture)));
284if(Logging.On) Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_response_last_modified, resp.LastModified.ToUniversalTime().ToString("r", CultureInfo.InvariantCulture), resp.ContentLength));
285if(Logging.On) Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_cache_last_modified, CacheEntry.LastModifiedUtc.ToString("r", CultureInfo.InvariantCulture), CacheEntry.StreamSize));
290if(Logging.On) Logging.PrintError(Logging.RequestCache, SR.GetString(SR.net_log_cache_partial_and_non_zero_content_offset, CacheStreamOffset.ToString(CultureInfo.InvariantCulture)));
351if(Logging.On) Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_ftp_response_status, ((int)resp.StatusCode).ToString(CultureInfo.InvariantCulture), resp.StatusCode.ToString()));
441if(Logging.On)Logging.PrintWarning(Logging.RequestCache, SR.GetString(SR.net_log_cache_update_not_supported_for_ftp_restart, ((FtpWebRequest)Request).ContentOffset.ToString(CultureInfo.InvariantCulture)));
444if(Logging.On)Logging.PrintWarning(Logging.RequestCache, SR.GetString(SR.net_log_cache_removed_entry_because_ftp_restart_response_changed, CacheEntry.LastModifiedUtc.ToString("r", CultureInfo.InvariantCulture), resp.LastModified.ToUniversalTime().ToString("r", CultureInfo.InvariantCulture)));
476if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_last_synchronized, CacheEntry.LastSynchronizedUtc.ToString("r", CultureInfo.InvariantCulture)));
490if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_updating_last_synchronized, CacheEntry.LastSynchronizedUtc.ToString("r", CultureInfo.InvariantCulture)));
net\System\Net\mail\MailAddress.cs (5)
159return String.Format(CultureInfo.InvariantCulture, "{0}@{1}", userName, host);
165return String.Format(CultureInfo.InvariantCulture, "{0}@{1}",
171return String.Format(CultureInfo.InvariantCulture, "<{0}>", Address);
177return String.Format(CultureInfo.InvariantCulture, "<{0}>", GetAddress(allowUnicode));
227encodedAddress = String.Format(CultureInfo.InvariantCulture, "\"{0}\"", this.displayName);
net\System\Net\WebSockets\WebSocketBase.cs (10)
85parameters = string.Format(CultureInfo.InvariantCulture,
313inputParameter = string.Format(CultureInfo.InvariantCulture,
524inputParameter = string.Format(CultureInfo.InvariantCulture,
769inputParameter = string.Format(CultureInfo.InvariantCulture,
1188string.Format(CultureInfo.InvariantCulture,
1231string.Format(CultureInfo.InvariantCulture,
1473string.Format(CultureInfo.InvariantCulture,
1523string parameters = string.Format(CultureInfo.InvariantCulture,
1849string assertMessage = string.Format(CultureInfo.InvariantCulture,
1935string.Format(CultureInfo.InvariantCulture, "Invalid ReceiveState '{0}'.", originalReceiveState));
security\system\security\permissions\typedescriptorpermission.cs (5)
123throw new ArgumentException(String.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Argument_WrongType), this.GetType().FullName));
141throw new ArgumentException(String.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Argument_WrongType), this.GetType().FullName));
161throw new ArgumentException(String.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Argument_WrongType), this.GetType().FullName));
173throw new ArgumentException(String.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Arg_EnumIllegalVal), (int)type));
219throw new ArgumentException(String.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Arg_EnumIllegalVal), (int)flags));
services\monitoring\system\diagnosticts\FileVersionInfo.cs (13)
310s = s.ToUpper(CultureInfo.InvariantCulture);
384companyName = GetFileVersionString(memIntPtr, string.Format(CultureInfo.InvariantCulture, template, codepage, "CompanyName"));
385fileDescription = GetFileVersionString(memIntPtr, string.Format(CultureInfo.InvariantCulture, template, codepage, "FileDescription"));
386fileVersion = GetFileVersionString(memIntPtr, string.Format(CultureInfo.InvariantCulture, template, codepage, "FileVersion"));
387internalName = GetFileVersionString(memIntPtr, string.Format(CultureInfo.InvariantCulture, template, codepage, "InternalName"));
388legalCopyright = GetFileVersionString(memIntPtr, string.Format(CultureInfo.InvariantCulture, template, codepage, "LegalCopyright"));
389originalFilename = GetFileVersionString(memIntPtr, string.Format(CultureInfo.InvariantCulture, template, codepage, "OriginalFilename"));
390productName = GetFileVersionString(memIntPtr, string.Format(CultureInfo.InvariantCulture, template, codepage, "ProductName"));
391productVersion = GetFileVersionString(memIntPtr, string.Format(CultureInfo.InvariantCulture, template, codepage, "ProductVersion"));
392comments = GetFileVersionString(memIntPtr, string.Format(CultureInfo.InvariantCulture, template, codepage, "Comments"));
393legalTrademarks = GetFileVersionString(memIntPtr, string.Format(CultureInfo.InvariantCulture, template, codepage, "LegalTrademarks"));
394privateBuild = GetFileVersionString(memIntPtr, string.Format(CultureInfo.InvariantCulture, template, codepage, "PrivateBuild"));
395specialBuild = GetFileVersionString(memIntPtr, string.Format(CultureInfo.InvariantCulture, template, codepage, "SpecialBuild"));
services\monitoring\system\diagnosticts\Process.cs (6)
306throw new InvalidOperationException(SR.GetString(SR.ProcessHasExited, processId.ToString(CultureInfo.CurrentCulture)));
1514throw new ArgumentException(SR.GetString(SR.MissingProccess, processId.ToString(CultureInfo.CurrentCulture)));
1652Debug.WriteLineIf(processTracing.TraceVerbose, "GetProcessHandle(access = 0x" + access.ToString("X8", CultureInfo.InvariantCulture) + ", throwIfExited = " + throwIfExited + ")");
1669throw new InvalidOperationException(SR.GetString(SR.ProcessHasExited, processId.ToString(CultureInfo.CurrentCulture)));
1703throw new InvalidOperationException(SR.GetString(SR.ProcessHasExited, processId.ToString(CultureInfo.CurrentCulture)));
2412return String.Format(CultureInfo.CurrentCulture, "{0} ({1})", base.ToString(), processName);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\EditingContext.cs (12)
59string.Format(CultureInfo.CurrentCulture, Resources.Error_NullImplementation, "CreateContextItemManager")));
80string.Format(CultureInfo.CurrentCulture, Resources.Error_NullImplementation, "CreateServiceManager")));
238string.Format(CultureInfo.CurrentCulture,
272CultureInfo.CurrentCulture,
303string.Format(CultureInfo.CurrentCulture,
365string.Format(CultureInfo.CurrentCulture,
408string.Format(CultureInfo.CurrentCulture,
540throw FxTrace.Exception.AsError(new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Resources.Error_RecursionResolvingService, serviceType.FullName)));
558string.Format(CultureInfo.CurrentCulture,
567string.Format(CultureInfo.CurrentCulture,
689string.Format(CultureInfo.CurrentCulture,
708CultureInfo.CurrentCulture,
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Automation\CategoryListAutomationPeer.cs (1)
90CultureInfo.CurrentCulture,
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\EditModeSwitchButtonKeyboardFix.cs (1)
147CultureInfo.CurrentCulture,
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\SubPropertyEditor.cs (1)
193CultureInfo.CurrentCulture,
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyValueDialogHost.cs (1)
110CultureInfo.CurrentCulture,
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Resources\PropertyInspectorResources.cs (1)
46CultureInfo.CurrentCulture,
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Selection\CategoryEditorSelectionStop.cs (1)
76CultureInfo.CurrentCulture,
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Selection\PropertySelectionStop.cs (1)
74CultureInfo.CurrentCulture,
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (4)
1084public override object InvokeMember(string name, BindingFlags invokeAttr, Binder binder, object target, object[] args, ParameterModifier[] modifiers, System.Globalization.CultureInfo culture, string[] namedParameters) { return _baseReflectionType.InvokeMember(name, invokeAttr, binder, target, args, modifiers, culture, namedParameters); }
1822public override object GetValue(object obj, BindingFlags invokeAttr, Binder binder, object[] index, CultureInfo culture) { return _info.GetValue(obj, invokeAttr, binder, index, culture); }
1824public override void SetValue(object obj, object value, BindingFlags invokeAttr, Binder binder, object[] index, CultureInfo culture) { _info.SetValue(obj, value, invokeAttr, binder, index, culture); }
1954public override object Invoke(object obj, BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture) { return _info.Invoke(obj, invokeAttr, binder, parameters, culture); }
System.Activities.Presentation\System\Activities\Presentation\Converters\ModelPropertyEntryToModelItemConverter.cs (4)
23public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
47public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
131public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
136public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
System.Activities.Presentation\System\Activities\Presentation\DesignObjectWrapper.cs (4)
322PropertyName = string.Format(CultureInfo.InvariantCulture, "{0}{1}", localPropertyName, ValidationErrorSuffix),
605string.Format(CultureInfo.InvariantCulture, "{0}{1}", this.descriptorData.PropertyName, DesignObjectWrapper.ValidationErrorSuffix) :
823public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
837public object[] ConvertBack(object value, Type[] targetType, object parameter, CultureInfo culture)
System.Activities.Presentation\System\Activities\Presentation\DragDropHelper.cs (9)
49ModelItemDataFormat = string.Format(CultureInfo.InvariantCulture, "ModelItemFormat_{0}", postfix);
50CompositeViewFormat = string.Format(CultureInfo.InvariantCulture, "CompositeViewFormat_{0}", postfix);
51DragAnchorPointFormat = string.Format(CultureInfo.InvariantCulture, "DragAnchorFormat_{0}", postfix);
52ModelItemsDataFormat = string.Format(CultureInfo.InvariantCulture, "ModelItemsFormat_{0}", postfix);
53MovedViewElementsFormat = string.Format(CultureInfo.InvariantCulture, "MovedViewElementsFormat_{0}", postfix);
216throw FxTrace.Exception.ArgumentNull(string.Format(CultureInfo.InvariantCulture, "allowedItemTypes[{0}]", i));
378new ArgumentException(string.Format(CultureInfo.CurrentCulture, SR.Error_ItemNotOnView, index)));
427droppedObject = templateFactoryInterface2.InvokeMember("Create", BindingFlags.InvokeMethod, null, droppedObject, new object[] { dropTarget, dataObject }, CultureInfo.InvariantCulture);
453ErrorReporting.ShowErrorMessage(string.Format(CultureInfo.CurrentUICulture, SR.CannotCreateInstance, TypeNameHelper.GetDisplayName(type, false)), details);
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorPointsToArrowTransformConverter.cs (4)
21public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
23RotateTransform rotateTransform = new RotateTransform(0, double.Parse(parameter.ToString(), CultureInfo.InvariantCulture), double.Parse(parameter.ToString(), CultureInfo.InvariantCulture));
32public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
System.Activities.Presentation\System\Activities\Presentation\MiniMap\MiniMapControl.xaml.cs (1)
509System.Diagnostics.Debug.WriteLine(string.Format(CultureInfo.InvariantCulture, "{0} ScrollViewer: EWidth {1}, EHeight {2}, AWidth {3}, AHeight {4}, ViewPortW {5} ViewPortH {6}", prefix, mapSource.ExtentWidth, mapSource.ExtentHeight, mapSource.ActualWidth, mapSource.ActualHeight, mapSource.ViewportWidth, mapSource.ViewportHeight));
System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemExtensions.cs (6)
206throw FxTrace.Exception.AsError(new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, SR.PropertyDoesntExistFormatString, path[i])));
257throw FxTrace.Exception.AsError(new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, SR.PropertyDoesntExistFormatString, path[i])));
310sb.Insert(0, "[" + ((ModelItemCollection)modelItem.Parent).IndexOf(modelItem).ToString(CultureInfo.InvariantCulture) + "]");
404int index = Int32.Parse(indexString, CultureInfo.InvariantCulture);
497return (0 == string.Compare(value, 0, nameDefaultPrefix, 0, nameDefaultPrefix.Length, CultureInfo.CurrentCulture, CompareOptions.None));
512return string.Format(CultureInfo.CurrentCulture, "{0}{1}", nameDefaultPrefix, id);
System.Activities.Presentation\System\Activities\Presentation\View\ArgumentDesigner.xaml.cs (7)
477identifierName.ErrorMessage = string.Format(CultureInfo.CurrentUICulture, SR.DuplicateIdentifier, newName);
482duplicateIdentifier.ErrorMessage = string.Format(CultureInfo.CurrentUICulture, SR.DuplicateIdentifier, duplicateIdentifier.IdentifierName);
1099throw FxTrace.Exception.AsError(new NotSupportedException(string.Format(CultureInfo.CurrentCulture, "{0} argument direction is not supported", this.GetArgumentDirection())));
1101value = this.Editor.ArgumentToExpressionConverter.ConvertBack(value, typeof(Argument), direction, CultureInfo.CurrentCulture);
1120result = this.Editor.ArgumentToExpressionConverter.Convert(value, typeof(object), null, CultureInfo.CurrentCulture);
1295errors.Add(string.Format(CultureInfo.CurrentUICulture, SR.InvalidXamlMemberName, name));
1306errors.Add(string.Format(CultureInfo.CurrentUICulture, SR.DuplicateArgumentName, name));
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (42)
652string.Format(CultureInfo.InvariantCulture, "{0} ) DesignerView.OnWorkflowElementGotKeyboardFocus(FocusedViewElement {1}, raisedBy {2})",
1504this.baseConverter.Convert(100.0, typeof(string), null, CultureInfo.InvariantCulture), typeof(double), null, CultureInfo.InvariantCulture);
1509this.baseConverter.Convert(25.0, typeof(string), null, CultureInfo.InvariantCulture),
1510this.baseConverter.Convert(50.0, typeof(string), null, CultureInfo.InvariantCulture),
1511this.baseConverter.Convert(100.0, typeof(string), null, CultureInfo.InvariantCulture),
1512this.baseConverter.Convert(200.0, typeof(string), null, CultureInfo.InvariantCulture),
1513this.baseConverter.Convert(400.0, typeof(string), null, CultureInfo.InvariantCulture)
1534this.baseConverter.Convert(25.0, typeof(string), null, CultureInfo.InvariantCulture), typeof(double), null, CultureInfo.InvariantCulture),
1536this.baseConverter.Convert(37.5, typeof(string), null, CultureInfo.InvariantCulture), typeof(double), null, CultureInfo.InvariantCulture),
1538this.baseConverter.Convert(50.0, typeof(string), null, CultureInfo.InvariantCulture), typeof(double), null, CultureInfo.InvariantCulture),
1540this.baseConverter.Convert(75.0, typeof(string), null, CultureInfo.InvariantCulture), typeof(double), null, CultureInfo.InvariantCulture),
1542this.baseConverter.Convert(100.0, typeof(string), null, CultureInfo.InvariantCulture), typeof(double), null, CultureInfo.InvariantCulture),
1544this.baseConverter.Convert(150.0, typeof(string), null, CultureInfo.InvariantCulture), typeof(double), null, CultureInfo.InvariantCulture),
1546this.baseConverter.Convert(200.0, typeof(string), null, CultureInfo.InvariantCulture), typeof(double), null, CultureInfo.InvariantCulture),
1548this.baseConverter.Convert(300.0, typeof(string), null, CultureInfo.InvariantCulture), typeof(double), null, CultureInfo.InvariantCulture),
1550this.baseConverter.Convert(400.0, typeof(string), null, CultureInfo.InvariantCulture), typeof(double), null, CultureInfo.InvariantCulture),
1556string text = this.Convert(this.view.zoomSlider.Value, typeof(string), null, CultureInfo.InvariantCulture) as string;
1636public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
1656public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
1697public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
1702double valueAsDouble = System.Convert.ToDouble(value, CultureInfo.CurrentCulture);
1706result = string.Format(CultureInfo.CurrentCulture, "{0}%", valueAsDouble.ToString("F0", CultureInfo.CurrentCulture));
1710result = string.Format(CultureInfo.CurrentCulture, "{0}%", valueAsDouble.ToString("F2", CultureInfo.CurrentCulture));
1716public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
1722result = System.Convert.ToDouble(valueAsString, CultureInfo.CurrentCulture);
1766public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
1778string key = string.Format(CultureInfo.InvariantCulture, "Operation{0}{1}Icon", iconName, menuItem.IsEnabled ? string.Empty : "Disabled");
1789public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
1825public object Convert(object[] values, Type targetType, object parameter, System.Globalization.CultureInfo culture)
1832public object[] ConvertBack(object value, Type[] targetTypes, object parameter, System.Globalization.CultureInfo culture)
System.Activities.Presentation\System\Activities\Presentation\View\ExpressionTextBox.xaml.cs (8)
404this.UnsupportedEditorMessage = string.Format(CultureInfo.CurrentUICulture, SR.NonRegisteredExpressionEditor, editorName);
418throw FxTrace.Exception.AsError(new ArgumentException(string.Format(CultureInfo.CurrentUICulture, SR.InvalidExpressionEditorName,
645throw FxTrace.Exception.AsError(new ArgumentException(string.Format(CultureInfo.CurrentUICulture, SR.InvalidExpressionEditorType,
650throw FxTrace.Exception.AsError(new ArgumentException(string.Format(CultureInfo.CurrentUICulture, SR.ExpressionActivityEditorRequiresDefaultConstructor,
814public override ValidationResult Validate(object value, CultureInfo cultureInfo)
824errorMessage = string.Format(CultureInfo.CurrentUICulture, SR.ExpressionTypeDonnotMatch,
829errorMessage = string.Format(CultureInfo.CurrentUICulture, SR.ExpressionTypeDonnotMatch,
835errorMessage = string.Format(CultureInfo.CurrentUICulture, SR.ExpressionTypeDonnotMatch,
System.Activities.Presentation\System\Activities\Presentation\View\ExtensionSurface.cs (4)
221Fx.Assert(string.Format(CultureInfo.InvariantCulture, "PlacementTarget must be set in RelativeMode on ExtensionSurface '{0}'", this.Name));
231Fx.Assert(string.Format(CultureInfo.CurrentCulture, "ExtensionWindowPlacement.Mode {0} specified in ExtensionWindow '{1}' is not supported for ExtensionSurface", mode, window.Name));
279Fx.Assert(string.Format(CultureInfo.CurrentCulture, "ExtensionWindowPlacement.Position = '{0}' is not supported", alignment));
383System.Diagnostics.Debug.WriteLine(string.Format(CultureInfo.InvariantCulture, "ArrangeOverride Size({0},{1})", arrangeSize.Width, arrangeSize.Height));
System.Activities.Presentation\System\Activities\Presentation\View\TypePresenter.xaml.cs (4)
747public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
753public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
874public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
894public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
System.Activities.Presentation\System\Activities\Presentation\View\TypeToStringValueConverter.cs (4)
14public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
20Fx.Assert(value is Type, string.Format(CultureInfo.InvariantCulture, "TypeToStringValueConverter cannot convert from type {0} to string", value.GetType().FullName));
37public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
49stringValue = string.Format(CultureInfo.InvariantCulture, "System.{0}", stringValue);
System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (11)
165identifierName.ErrorMessage = string.Format(CultureInfo.CurrentUICulture, SR.DuplicateIdentifier, newName);
170duplicateIdentifier.ErrorMessage = string.Format(CultureInfo.CurrentUICulture, SR.DuplicateIdentifier, duplicateIdentifier.IdentifierName);
931name = string.Format(CultureInfo.CurrentUICulture, "{0}{1}", namePrefix, countStartValue++);
1297return ScopeToTooltipConverter.BuildToolTip(s, converter, CultureInfo.CurrentCulture);
1418errors.Add(string.Format(CultureInfo.CurrentUICulture, SR.DuplicateVariableName, newName));
1442errors.Add(string.Format(CultureInfo.CurrentUICulture, SR.DuplicateVariableName, currentName));
1462public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
1474public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
1484internal static string BuildToolTip(ModelItem entry, IMultiValueConverter displayNameConverter, CultureInfo culture)
1521public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
1526public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditor.xaml.cs (11)
930Trace.WriteLine(string.Format(CultureInfo.CurrentUICulture, "{0}\r\n{1}", err.Message, err.StackTrace));
988Trace.WriteLine(string.Format(CultureInfo.CurrentUICulture, "{0}\r\n{1}", err.Message, err.StackTrace));
1080newExpressionText = string.Format(CultureInfo.InvariantCulture, formatString, serializableExpression.ConvertToString(context.ParserContext));
2054public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
2101public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
2112public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
2122public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
2134public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
2144public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
2156public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
2174public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
System.Activities.Presentation\System\Activities\Presentation\WorkflowViewElement.cs (10)
347CultureInfo.InvariantCulture,
349this.GetType().Name, activeContainer == null ? "<null>" : activeContainer.GetHashCode().ToString(CultureInfo.InvariantCulture)));
450CultureInfo.InvariantCulture,
482CultureInfo.InvariantCulture,
500CultureInfo.InvariantCulture,
546string.Format(CultureInfo.InvariantCulture, "{0} ) WorkflowViewElement.OnGotFocusEvent ({1}, selection: {2}, becomesSelection {3}, raisedBy {4})",
641string.Format(CultureInfo.InvariantCulture, "{0} ) WorkflowViewElement.OnMouseDown ({1}, shouldSetFocus {2}, mouseCaptured {3}, raisedBy {4})",
649string.Format(CultureInfo.InvariantCulture, "{0} ) WorkflowViewElement.OnMouseDown.SetFocus ({1})",
812CultureInfo.InvariantCulture,
813string.Format(CultureInfo.CurrentUICulture, "{0} ) WorkflowViewElement.OnMouseUp ({1}, mouseCaptured {2})",
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\EditingContext.cs (12)
59string.Format(CultureInfo.CurrentCulture, Resources.Error_NullImplementation, "CreateContextItemManager")));
80string.Format(CultureInfo.CurrentCulture, Resources.Error_NullImplementation, "CreateServiceManager")));
238string.Format(CultureInfo.CurrentCulture,
272CultureInfo.CurrentCulture,
303string.Format(CultureInfo.CurrentCulture,
365string.Format(CultureInfo.CurrentCulture,
408string.Format(CultureInfo.CurrentCulture,
540throw FxTrace.Exception.AsError(new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Resources.Error_RecursionResolvingService, serviceType.FullName)));
558string.Format(CultureInfo.CurrentCulture,
567string.Format(CultureInfo.CurrentCulture,
689string.Format(CultureInfo.CurrentCulture,
708CultureInfo.CurrentCulture,
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\Metadata\AttributeDataCache.cs (1)
195CultureInfo.CurrentCulture,
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Automation\CategoryListAutomationPeer.cs (1)
90CultureInfo.CurrentCulture,
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\EditModeSwitchButtonKeyboardFix.cs (1)
147CultureInfo.CurrentCulture,
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\SubPropertyEditor.cs (1)
193CultureInfo.CurrentCulture,
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyValueDialogHost.cs (1)
110CultureInfo.CurrentCulture,
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Resources\PropertyInspectorResources.cs (1)
46CultureInfo.CurrentCulture,
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Selection\CategoryEditorSelectionStop.cs (1)
76CultureInfo.CurrentCulture,
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Selection\PropertySelectionStop.cs (1)
74CultureInfo.CurrentCulture,
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (4)
1084public override object InvokeMember(string name, BindingFlags invokeAttr, Binder binder, object target, object[] args, ParameterModifier[] modifiers, System.Globalization.CultureInfo culture, string[] namedParameters) { return _baseReflectionType.InvokeMember(name, invokeAttr, binder, target, args, modifiers, culture, namedParameters); }
1822public override object GetValue(object obj, BindingFlags invokeAttr, Binder binder, object[] index, CultureInfo culture) { return _info.GetValue(obj, invokeAttr, binder, index, culture); }
1824public override void SetValue(object obj, object value, BindingFlags invokeAttr, Binder binder, object[] index, CultureInfo culture) { _info.SetValue(obj, value, invokeAttr, binder, index, culture); }
1954public override object Invoke(object obj, BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture) { return _info.Invoke(obj, invokeAttr, binder, parameters, culture); }
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\CategoryEditor.cs (1)
76CultureInfo.CurrentCulture,
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\PropertyValueEditor.cs (1)
77CultureInfo.CurrentCulture,
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Converters\ModelPropertyEntryToModelItemConverter.cs (4)
23public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
47public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
131public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
136public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\DesignObjectWrapper.cs (4)
322PropertyName = string.Format(CultureInfo.InvariantCulture, "{0}{1}", localPropertyName, ValidationErrorSuffix),
605string.Format(CultureInfo.InvariantCulture, "{0}{1}", this.descriptorData.PropertyName, DesignObjectWrapper.ValidationErrorSuffix) :
823public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
837public object[] ConvertBack(object value, Type[] targetType, object parameter, CultureInfo culture)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\DragDropHelper.cs (9)
49ModelItemDataFormat = string.Format(CultureInfo.InvariantCulture, "ModelItemFormat_{0}", postfix);
50CompositeViewFormat = string.Format(CultureInfo.InvariantCulture, "CompositeViewFormat_{0}", postfix);
51DragAnchorPointFormat = string.Format(CultureInfo.InvariantCulture, "DragAnchorFormat_{0}", postfix);
52ModelItemsDataFormat = string.Format(CultureInfo.InvariantCulture, "ModelItemsFormat_{0}", postfix);
53MovedViewElementsFormat = string.Format(CultureInfo.InvariantCulture, "MovedViewElementsFormat_{0}", postfix);
216throw FxTrace.Exception.ArgumentNull(string.Format(CultureInfo.InvariantCulture, "allowedItemTypes[{0}]", i));
378new ArgumentException(string.Format(CultureInfo.CurrentCulture, SR.Error_ItemNotOnView, index)));
427droppedObject = templateFactoryInterface2.InvokeMember("Create", BindingFlags.InvokeMethod, null, droppedObject, new object[] { dropTarget, dataObject }, CultureInfo.InvariantCulture);
453ErrorReporting.ShowErrorMessage(string.Format(CultureInfo.CurrentUICulture, SR.CannotCreateInstance, TypeNameHelper.GetDisplayName(type, false)), details);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorPointsToArrowTransformConverter.cs (4)
21public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
23RotateTransform rotateTransform = new RotateTransform(0, double.Parse(parameter.ToString(), CultureInfo.InvariantCulture), double.Parse(parameter.ToString(), CultureInfo.InvariantCulture));
32public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\MiniMap\MiniMapControl.xaml.cs (1)
509System.Diagnostics.Debug.WriteLine(string.Format(CultureInfo.InvariantCulture, "{0} ScrollViewer: EWidth {1}, EHeight {2}, AWidth {3}, AHeight {4}, ViewPortW {5} ViewPortH {6}", prefix, mapSource.ExtentWidth, mapSource.ExtentHeight, mapSource.ActualWidth, mapSource.ActualHeight, mapSource.ViewportWidth, mapSource.ViewportHeight));
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemExtensions.cs (6)
206throw FxTrace.Exception.AsError(new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, SR.PropertyDoesntExistFormatString, path[i])));
257throw FxTrace.Exception.AsError(new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, SR.PropertyDoesntExistFormatString, path[i])));
310sb.Insert(0, "[" + ((ModelItemCollection)modelItem.Parent).IndexOf(modelItem).ToString(CultureInfo.InvariantCulture) + "]");
404int index = Int32.Parse(indexString, CultureInfo.InvariantCulture);
497return (0 == string.Compare(value, 0, nameDefaultPrefix, 0, nameDefaultPrefix.Length, CultureInfo.CurrentCulture, CompareOptions.None));
512return string.Format(CultureInfo.CurrentCulture, "{0}{1}", nameDefaultPrefix, id);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ArgumentDesigner.xaml.cs (7)
477identifierName.ErrorMessage = string.Format(CultureInfo.CurrentUICulture, SR.DuplicateIdentifier, newName);
482duplicateIdentifier.ErrorMessage = string.Format(CultureInfo.CurrentUICulture, SR.DuplicateIdentifier, duplicateIdentifier.IdentifierName);
1099throw FxTrace.Exception.AsError(new NotSupportedException(string.Format(CultureInfo.CurrentCulture, "{0} argument direction is not supported", this.GetArgumentDirection())));
1101value = this.Editor.ArgumentToExpressionConverter.ConvertBack(value, typeof(Argument), direction, CultureInfo.CurrentCulture);
1120result = this.Editor.ArgumentToExpressionConverter.Convert(value, typeof(object), null, CultureInfo.CurrentCulture);
1295errors.Add(string.Format(CultureInfo.CurrentUICulture, SR.InvalidXamlMemberName, name));
1306errors.Add(string.Format(CultureInfo.CurrentUICulture, SR.DuplicateArgumentName, name));
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (42)
652string.Format(CultureInfo.InvariantCulture, "{0} ) DesignerView.OnWorkflowElementGotKeyboardFocus(FocusedViewElement {1}, raisedBy {2})",
1504this.baseConverter.Convert(100.0, typeof(string), null, CultureInfo.InvariantCulture), typeof(double), null, CultureInfo.InvariantCulture);
1509this.baseConverter.Convert(25.0, typeof(string), null, CultureInfo.InvariantCulture),
1510this.baseConverter.Convert(50.0, typeof(string), null, CultureInfo.InvariantCulture),
1511this.baseConverter.Convert(100.0, typeof(string), null, CultureInfo.InvariantCulture),
1512this.baseConverter.Convert(200.0, typeof(string), null, CultureInfo.InvariantCulture),
1513this.baseConverter.Convert(400.0, typeof(string), null, CultureInfo.InvariantCulture)
1534this.baseConverter.Convert(25.0, typeof(string), null, CultureInfo.InvariantCulture), typeof(double), null, CultureInfo.InvariantCulture),
1536this.baseConverter.Convert(37.5, typeof(string), null, CultureInfo.InvariantCulture), typeof(double), null, CultureInfo.InvariantCulture),
1538this.baseConverter.Convert(50.0, typeof(string), null, CultureInfo.InvariantCulture), typeof(double), null, CultureInfo.InvariantCulture),
1540this.baseConverter.Convert(75.0, typeof(string), null, CultureInfo.InvariantCulture), typeof(double), null, CultureInfo.InvariantCulture),
1542this.baseConverter.Convert(100.0, typeof(string), null, CultureInfo.InvariantCulture), typeof(double), null, CultureInfo.InvariantCulture),
1544this.baseConverter.Convert(150.0, typeof(string), null, CultureInfo.InvariantCulture), typeof(double), null, CultureInfo.InvariantCulture),
1546this.baseConverter.Convert(200.0, typeof(string), null, CultureInfo.InvariantCulture), typeof(double), null, CultureInfo.InvariantCulture),
1548this.baseConverter.Convert(300.0, typeof(string), null, CultureInfo.InvariantCulture), typeof(double), null, CultureInfo.InvariantCulture),
1550this.baseConverter.Convert(400.0, typeof(string), null, CultureInfo.InvariantCulture), typeof(double), null, CultureInfo.InvariantCulture),
1556string text = this.Convert(this.view.zoomSlider.Value, typeof(string), null, CultureInfo.InvariantCulture) as string;
1636public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
1656public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
1697public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
1702double valueAsDouble = System.Convert.ToDouble(value, CultureInfo.CurrentCulture);
1706result = string.Format(CultureInfo.CurrentCulture, "{0}%", valueAsDouble.ToString("F0", CultureInfo.CurrentCulture));
1710result = string.Format(CultureInfo.CurrentCulture, "{0}%", valueAsDouble.ToString("F2", CultureInfo.CurrentCulture));
1716public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
1722result = System.Convert.ToDouble(valueAsString, CultureInfo.CurrentCulture);
1766public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
1778string key = string.Format(CultureInfo.InvariantCulture, "Operation{0}{1}Icon", iconName, menuItem.IsEnabled ? string.Empty : "Disabled");
1789public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
1825public object Convert(object[] values, Type targetType, object parameter, System.Globalization.CultureInfo culture)
1832public object[] ConvertBack(object value, Type[] targetTypes, object parameter, System.Globalization.CultureInfo culture)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ExpressionTextBox.xaml.cs (8)
404this.UnsupportedEditorMessage = string.Format(CultureInfo.CurrentUICulture, SR.NonRegisteredExpressionEditor, editorName);
418throw FxTrace.Exception.AsError(new ArgumentException(string.Format(CultureInfo.CurrentUICulture, SR.InvalidExpressionEditorName,
645throw FxTrace.Exception.AsError(new ArgumentException(string.Format(CultureInfo.CurrentUICulture, SR.InvalidExpressionEditorType,
650throw FxTrace.Exception.AsError(new ArgumentException(string.Format(CultureInfo.CurrentUICulture, SR.ExpressionActivityEditorRequiresDefaultConstructor,
814public override ValidationResult Validate(object value, CultureInfo cultureInfo)
824errorMessage = string.Format(CultureInfo.CurrentUICulture, SR.ExpressionTypeDonnotMatch,
829errorMessage = string.Format(CultureInfo.CurrentUICulture, SR.ExpressionTypeDonnotMatch,
835errorMessage = string.Format(CultureInfo.CurrentUICulture, SR.ExpressionTypeDonnotMatch,
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ExtensionSurface.cs (4)
221Fx.Assert(string.Format(CultureInfo.InvariantCulture, "PlacementTarget must be set in RelativeMode on ExtensionSurface '{0}'", this.Name));
231Fx.Assert(string.Format(CultureInfo.CurrentCulture, "ExtensionWindowPlacement.Mode {0} specified in ExtensionWindow '{1}' is not supported for ExtensionSurface", mode, window.Name));
279Fx.Assert(string.Format(CultureInfo.CurrentCulture, "ExtensionWindowPlacement.Position = '{0}' is not supported", alignment));
383System.Diagnostics.Debug.WriteLine(string.Format(CultureInfo.InvariantCulture, "ArrangeOverride Size({0},{1})", arrangeSize.Width, arrangeSize.Height));
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TypePresenter.xaml.cs (4)
747public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
753public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
874public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
894public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TypeToStringValueConverter.cs (4)
14public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
20Fx.Assert(value is Type, string.Format(CultureInfo.InvariantCulture, "TypeToStringValueConverter cannot convert from type {0} to string", value.GetType().FullName));
37public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
49stringValue = string.Format(CultureInfo.InvariantCulture, "System.{0}", stringValue);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (11)
165identifierName.ErrorMessage = string.Format(CultureInfo.CurrentUICulture, SR.DuplicateIdentifier, newName);
170duplicateIdentifier.ErrorMessage = string.Format(CultureInfo.CurrentUICulture, SR.DuplicateIdentifier, duplicateIdentifier.IdentifierName);
931name = string.Format(CultureInfo.CurrentUICulture, "{0}{1}", namePrefix, countStartValue++);
1297return ScopeToTooltipConverter.BuildToolTip(s, converter, CultureInfo.CurrentCulture);
1418errors.Add(string.Format(CultureInfo.CurrentUICulture, SR.DuplicateVariableName, newName));
1442errors.Add(string.Format(CultureInfo.CurrentUICulture, SR.DuplicateVariableName, currentName));
1462public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
1474public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
1484internal static string BuildToolTip(ModelItem entry, IMultiValueConverter displayNameConverter, CultureInfo culture)
1521public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
1526public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditor.xaml.cs (11)
930Trace.WriteLine(string.Format(CultureInfo.CurrentUICulture, "{0}\r\n{1}", err.Message, err.StackTrace));
988Trace.WriteLine(string.Format(CultureInfo.CurrentUICulture, "{0}\r\n{1}", err.Message, err.StackTrace));
1080newExpressionText = string.Format(CultureInfo.InvariantCulture, formatString, serializableExpression.ConvertToString(context.ParserContext));
2054public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
2101public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
2112public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
2122public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
2134public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
2144public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
2156public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
2174public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowViewElement.cs (10)
347CultureInfo.InvariantCulture,
349this.GetType().Name, activeContainer == null ? "<null>" : activeContainer.GetHashCode().ToString(CultureInfo.InvariantCulture)));
450CultureInfo.InvariantCulture,
482CultureInfo.InvariantCulture,
500CultureInfo.InvariantCulture,
546string.Format(CultureInfo.InvariantCulture, "{0} ) WorkflowViewElement.OnGotFocusEvent ({1}, selection: {2}, becomesSelection {3}, raisedBy {4})",
641string.Format(CultureInfo.InvariantCulture, "{0} ) WorkflowViewElement.OnMouseDown ({1}, shouldSetFocus {2}, mouseCaptured {3}, raisedBy {4})",
649string.Format(CultureInfo.InvariantCulture, "{0} ) WorkflowViewElement.OnMouseDown.SetFocus ({1})",
812CultureInfo.InvariantCulture,
813string.Format(CultureInfo.CurrentUICulture, "{0} ) WorkflowViewElement.OnMouseUp ({1}, mouseCaptured {2})",
fx\src\data\Microsoft\SqlServer\Server\SmiMetaData.cs (13)
139System.Globalization.CultureInfo.CurrentCulture.LCID,
153System.Globalization.CultureInfo.CurrentCulture.LCID,
167System.Globalization.CultureInfo.CurrentCulture.LCID,
181System.Globalization.CultureInfo.CurrentCulture.LCID,
195System.Globalization.CultureInfo.CurrentCulture.LCID,
209System.Globalization.CultureInfo.CurrentCulture.LCID,
760fields = String.Format(CultureInfo.InvariantCulture,
768properties = String.Format(CultureInfo.InvariantCulture,
773return String.Format(CultureInfo.InvariantCulture, "\n\t"
966return String.Format(CultureInfo.InvariantCulture,
1138return String.Format(CultureInfo.InvariantCulture, "{0}"
1416return String.Format(CultureInfo.InvariantCulture, "{0}"
1697return String.Format(CultureInfo.InvariantCulture, "{0}"
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (4)
1124return t.InvokeMember("Null", BindingFlags.Public | BindingFlags.GetProperty | BindingFlags.Static, null, null, new Object[]{}, CultureInfo.InvariantCulture);
1129Debug.Assert(index >= 0 && index < __dbTypeToStorageType.Length, string.Format(CultureInfo.InvariantCulture, "Unexpected dbType value: {0}", dbType));
2382result = t.InvokeMember("Null", BindingFlags.Public | BindingFlags.GetProperty | BindingFlags.Static, null, null, new Object[]{}, CultureInfo.InvariantCulture);
2467throw SQL.MoneyOverflow(decimalValue.ToString(CultureInfo.InvariantCulture));
fx\src\data\System\Data\Common\AdapterUtil.cs (40)
184IndexOutOfRangeException e = new IndexOutOfRangeException(value.ToString(CultureInfo.InvariantCulture));
409return ADP.ArgumentOutOfRange(Res.GetString(Res.ADP_InvalidEnumerationValue, type.Name, value.ToString(System.Globalization.CultureInfo.InvariantCulture)), type.Name);
941return IndexOutOfRange(Res.GetString(Res.ADP_CollectionIndexInt32, index.ToString(CultureInfo.InvariantCulture), collection.Name, count.ToString(CultureInfo.InvariantCulture)));
1203return InvalidOperation(Res.GetString(Res.ADP_NonSeqByteAccess, badIndex.ToString(CultureInfo.InvariantCulture), currIndex.ToString(CultureInfo.InvariantCulture), method));
1219return IndexOutOfRange(Res.GetString(Res.SQL_ExceedsMaxDataLength, specifiedLength.ToString(CultureInfo.InvariantCulture), maxLength.ToString(CultureInfo.InvariantCulture)));
1247return InvalidOperation(Res.GetString(Res.ADP_NonSequentialColumnAccess, badCol.ToString(CultureInfo.InvariantCulture), currCol.ToString(CultureInfo.InvariantCulture)));
1261return Argument(Res.GetString(Res.ADP_InvalidMaxRecords, max.ToString(CultureInfo.InvariantCulture)), parameter);
1264return Argument(Res.GetString(Res.ADP_InvalidStartRecord, start.ToString(CultureInfo.InvariantCulture)), parameter);
1318DBConcurrencyException exception = new DBConcurrencyException(Res.GetString(resource, affected.ToString(CultureInfo.InvariantCulture), expected.ToString(CultureInfo.InvariantCulture)), null, dataRows);
1354return Argument(Res.GetString(Res.ADP_UpdateMismatchRowTable, i.ToString(CultureInfo.InvariantCulture)));
1370return Argument(Res.GetString(Res.ADP_InvalidCommandTimeout, value.ToString(CultureInfo.InvariantCulture)), ADP.CommandTimeout);
1376return InvalidOperation(Res.GetString(Res.ADP_UninitializedParameterSize, index.ToString(CultureInfo.InvariantCulture), dataType.Name));
1498return ArgumentOutOfRange(Res.GetString(Res.ADP_InvalidSourceBufferIndex, maxLen.ToString(CultureInfo.InvariantCulture), srcOffset.ToString(CultureInfo.InvariantCulture)), parameterName);
1501return ArgumentOutOfRange(Res.GetString(Res.ADP_InvalidDestinationBufferIndex, maxLen.ToString(CultureInfo.InvariantCulture), dstOffset.ToString(CultureInfo.InvariantCulture)), parameterName);
1504return IndexOutOfRange(Res.GetString(Res.SQL_InvalidBufferSizeOrIndex, numBytes.ToString(CultureInfo.InvariantCulture), bufferIndex.ToString(CultureInfo.InvariantCulture)));
1507return IndexOutOfRange(Res.GetString(Res.SQL_InvalidDataLength, length.ToString(CultureInfo.InvariantCulture)));
1573return Argument(Res.GetString(Res.ADP_UnknownDataTypeCode, ((int) typeCode).ToString(CultureInfo.InvariantCulture), dataType.FullName));
1576return Argument(Res.GetString(Res.ADP_InvalidOffsetValue, value.ToString(CultureInfo.InvariantCulture)));
1579return Argument(Res.GetString(Res.ADP_InvalidSizeValue, value.ToString(CultureInfo.InvariantCulture)));
1864return (0 == CultureInfo.InvariantCulture.CompareInfo.Compare(strvalue, strconst, CompareOptions.IgnoreCase));
2009CultureInfo invariant = CultureInfo.InvariantCulture;
2051decimalSeparator = CultureInfo.CurrentCulture.NumberFormat.NumberDecimalSeparator;
2241major = Int32.Parse(parts[0], NumberStyles.None, CultureInfo.InvariantCulture);
2242minor = Int32.Parse(parts[1], NumberStyles.None, CultureInfo.InvariantCulture);
2243build = Int32.Parse(parts[2], NumberStyles.None, CultureInfo.InvariantCulture);
2244Int32.Parse(parts[3], NumberStyles.None, CultureInfo.InvariantCulture);
2402columnName = columnName.ToLower(CultureInfo.InvariantCulture);
2422columnName = columnName.ToLower(CultureInfo.InvariantCulture);
2432string uniqueName = columnName + uniqueIndex.ToString(CultureInfo.InvariantCulture);
2433string lowerName = uniqueName.ToLower(CultureInfo.InvariantCulture); // MDAC 66978
2471return CultureInfo.CurrentCulture.CompareInfo.Compare(strA, strB, ADP.compareOptions);
fx\src\data\System\Data\Common\DBSchemaRow.cs (16)
62return Convert.ToString(value, CultureInfo.InvariantCulture);
89return Convert.ToInt32(value, CultureInfo.InvariantCulture);
104return Convert.ToString(value, CultureInfo.InvariantCulture);
120return Convert.ToString(value, CultureInfo.InvariantCulture);
137return Convert.ToString(value, CultureInfo.InvariantCulture);
153return Convert.ToString(value, CultureInfo.InvariantCulture);
169return Convert.ToString(value, CultureInfo.InvariantCulture);
185return Convert.ToBoolean(value, CultureInfo.InvariantCulture);
201return Convert.ToBoolean(value, CultureInfo.InvariantCulture);
217return Convert.ToBoolean(value, CultureInfo.InvariantCulture);
233return Convert.ToBoolean(value, CultureInfo.InvariantCulture);
266return Convert.ToBoolean(value, CultureInfo.InvariantCulture);
298return Convert.ToBoolean(value, CultureInfo.InvariantCulture);
314return Convert.ToBoolean(value, CultureInfo.InvariantCulture);
330return Convert.ToBoolean(value, CultureInfo.InvariantCulture);
362return Convert.ToBoolean(value, CultureInfo.InvariantCulture);
fx\src\data\System\Data\DataException.cs (15)
437return _IndexOutOfRange(Res.GetString(Res.DataColumns_OutOfRange, (index).ToString(CultureInfo.InvariantCulture)));
496return _ArgumentOutOfRange(name, Res.GetString(Res.DataColumn_OrdinalExceedMaximun, (ordinal).ToString(CultureInfo.InvariantCulture)));
543return _IndexOutOfRange(Res.GetString(Res.DataConstraint_OutOfRange, (index).ToString(CultureInfo.InvariantCulture)));
701return _Argument(Res.GetString(Res.DataColumn_CannotSetMaxLength, column.ColumnName, value.ToString(CultureInfo.InvariantCulture)));
830return _IndexOutOfRange(Res.GetString(Res.DataView_GetElementIndex, (index).ToString(CultureInfo.InvariantCulture)));
870return _InvalidConstraint(Res.GetString(Res.DataKey_TooManyColumns, (cols).ToString(CultureInfo.InvariantCulture)));
1029return _IndexOutOfRange(Res.GetString(Res.DataRow_OutOfRange, (index).ToString(CultureInfo.InvariantCulture)));
1032return _IndexOutOfRange(Res.GetString(Res.DataRow_RowInsertOutOfRange, (index).ToString(CultureInfo.InvariantCulture)));
1036return _IndexOutOfRange(Res.GetString(Res.DataRow_RowInsertTwice, (index).ToString(CultureInfo.InvariantCulture), tableName));
1098return _Argument(Res.GetString(Res.DataIndex_KeyLength, (length).ToString(CultureInfo.InvariantCulture), (keyLength).ToString(CultureInfo.InvariantCulture)));
1210return _IndexOutOfRange(Res.GetString(Res.DataTable_OutOfRange, (index).ToString(CultureInfo.InvariantCulture)));
1254return _Argument(Res.GetString(Res.Range_Argument, (min).ToString(CultureInfo.InvariantCulture), (max).ToString(CultureInfo.InvariantCulture)));
1263string xchar = "0x" + ((UInt16)charValue).ToString("X", CultureInfo.InvariantCulture);
fx\src\data\System\Data\DataTable.cs (19)
82private CultureInfo _culture;
188_culture = CultureInfo.CurrentCulture;
212bool isSingleTable = context.Context != null ? Convert.ToBoolean(context.Context, CultureInfo.InvariantCulture) : true;
229bool isSingleTable = context.Context != null ? Convert.ToBoolean(context.Context, CultureInfo.InvariantCulture) : true;
348IFormatProvider formatProvider = CultureInfo.InvariantCulture;
400CultureInfo culture = new CultureInfo(lcid);
422IFormatProvider formatProvider = CultureInfo.InvariantCulture;
535info.AddValue(String.Format(CultureInfo.InvariantCulture, "DataTable_{0}.Constraints", serIndex), constraintList);
545ArrayList constraintList = (ArrayList) info.GetValue(String.Format(CultureInfo.InvariantCulture, "DataTable_{0}.Constraints", serIndex), typeof(ArrayList));
608info.AddValue(String.Format(CultureInfo.InvariantCulture, "DataTable_{0}.DataColumn_{1}.Expression", serIndex, i), Columns[i].Expression);
616string expr = info.GetString(String.Format(CultureInfo.InvariantCulture, "DataTable_{0}.DataColumn_{1}.Expression", serIndex, i));
689IFormatProvider formatProvider = CultureInfo.InvariantCulture;
709IFormatProvider formatProvider = CultureInfo.InvariantCulture;
1277CultureInfo culture = Locale;
1279culture = CultureInfo.InvariantCulture;
1309public CultureInfo Locale {
1329CultureInfo oldLocale = _culture;
1371internal bool SetLocaleValue(CultureInfo culture, bool userSet, bool resetIndexes) {
1667CultureInfo currentLocale = this.Locale;
fx\src\data\System\Data\Filter\FilterException.cs (4)
162return _Syntax(Res.GetString(Res.Expr_UnknownToken, token, position.ToString(CultureInfo.InvariantCulture)));
166return _Syntax(Res.GetString(Res.Expr_UnknownToken1, tokExpected.ToString(), tokCurr.ToString(), position.ToString(CultureInfo.InvariantCulture)));
210return _Eval(Res.GetString(Res.Expr_ArgumentType, function, arg.ToString(CultureInfo.InvariantCulture), type.ToString()));
214return _Eval(Res.GetString(Res.Expr_ArgumentTypeInteger, function, arg.ToString(CultureInfo.InvariantCulture)));
fx\src\data\System\Data\OleDb\OLEDB_Util.cs (16)
32builder.Append(Res.GetString(Res.OleDb_CommandParameterBadAccessor,index.ToString(CultureInfo.InvariantCulture), ""));
37builder.Append(Res.GetString(Res.OleDb_CommandParameterCantConvertValue,index.ToString(CultureInfo.InvariantCulture), ""));
42builder.Append(Res.GetString(Res.OleDb_CommandParameterSignMismatch,index.ToString(CultureInfo.InvariantCulture), ""));
47builder.Append(Res.GetString(Res.OleDb_CommandParameterDataOverflow,index.ToString(CultureInfo.InvariantCulture), ""));
56builder.Append(Res.GetString(Res.OleDb_CommandParameterUnavailable,index.ToString(CultureInfo.InvariantCulture), ""));
77builder.Append(Res.GetString(Res.OleDb_CommandParameterDefault,index.ToString(CultureInfo.InvariantCulture), ""));
82builder.Append(Res.GetString(Res.OleDb_CommandParameterError, index.ToString(CultureInfo.InvariantCulture), status.ToString()));
92return ADP.InvalidOperation(Res.GetString(Res.OleDb_UninitializedParameters, index.ToString(CultureInfo.InvariantCulture), dbtype.ToString()));
95return ADP.DataAdapter(Res.GetString(Res.OleDb_BadStatus_ParamAcc, index.ToString(CultureInfo.InvariantCulture), status.ToString()));
148builder.Append(Res.GetString(Res.OleDb_PropertyStatusUnknown, ((int) status).ToString(CultureInfo.InvariantCulture)));
244return ADP.DataAdapter(Res.GetString(Res.OleDb_GVtUnknown, wType.ToString("X4", CultureInfo.InvariantCulture), wType.ToString(CultureInfo.InvariantCulture)));
247return ADP.DataAdapter(Res.GetString(Res.OleDb_SVtUnknown, wType.ToString("X4", CultureInfo.InvariantCulture), wType.ToString(CultureInfo.InvariantCulture)));
252return ADP.DataAdapter(Res.GetString(Res.OleDb_BadStatusRowAccessor, i.ToString(CultureInfo.InvariantCulture), rowStatus.ToString()));
642builder.Append(((int)hr).ToString("X8", CultureInfo.InvariantCulture));
fx\src\data\System\Data\OleDb\OleDbCommandBuilder.cs (8)
70return "p" + parameterOrdinal.ToString(System.Globalization.CultureInfo.InvariantCulture);
215parameter.ParameterName = Convert.ToString(dataRow[parameterName, DataRowVersion.Default], CultureInfo.InvariantCulture).TrimStart(new char[] { '@', ' ', ':'});
218short direction = Convert.ToInt16(dataRow[parameterDirection, DataRowVersion.Default], CultureInfo.InvariantCulture);
223short wType = Convert.ToInt16(dataRow[dataType, DataRowVersion.Default], CultureInfo.InvariantCulture);
227parameter.Size = Convert.ToInt32(dataRow[maxLen, DataRowVersion.Default], CultureInfo.InvariantCulture);
235parameter.PrecisionInternal = (Byte) Convert.ToInt16(dataRow[numericPrecision], CultureInfo.InvariantCulture);
239parameter.ScaleInternal = (Byte) Convert.ToInt16(dataRow[numericScale], CultureInfo.InvariantCulture);
247string backendtypename = ((string) value).ToLower(CultureInfo.InvariantCulture);
fx\src\data\System\Data\Sql\SqlMetaData.cs (19)
446m_lLocale = System.Globalization.CultureInfo.CurrentCulture.LCID;
467throw ADP.Argument(Res.GetString(Res.ADP_InvalidDataLength2, maxLength.ToString(CultureInfo.InvariantCulture)), "maxLength");
468lLocale = System.Globalization.CultureInfo.CurrentCulture.LCID;
472throw ADP.Argument(Res.GetString(Res.ADP_InvalidDataLength2, maxLength.ToString(CultureInfo.InvariantCulture)), "maxLength");
473lLocale = System.Globalization.CultureInfo.CurrentCulture.LCID;
477throw ADP.Argument(Res.GetString(Res.ADP_InvalidDataLength2, maxLength.ToString(CultureInfo.InvariantCulture)), "maxLength");
478lLocale = System.Globalization.CultureInfo.CurrentCulture.LCID;
482throw ADP.Argument(Res.GetString(Res.ADP_InvalidDataLength2, maxLength.ToString(CultureInfo.InvariantCulture)), "maxLength");
483lLocale = System.Globalization.CultureInfo.CurrentCulture.LCID;
488throw ADP.Argument(Res.GetString(Res.ADP_InvalidDataLength2, maxLength.ToString(CultureInfo.InvariantCulture)), "maxLength");
489lLocale = System.Globalization.CultureInfo.CurrentCulture.LCID;
493throw ADP.Argument(Res.GetString(Res.ADP_InvalidDataLength2, maxLength.ToString(CultureInfo.InvariantCulture)), "maxLength");
497throw ADP.Argument(Res.GetString(Res.ADP_InvalidDataLength2, maxLength.ToString(CultureInfo.InvariantCulture)), "maxLength");
502throw ADP.Argument(Res.GetString(Res.ADP_InvalidDataLength2, maxLength.ToString(CultureInfo.InvariantCulture)), "maxLength");
536throw ADP.Argument(Res.GetString(Res.ADP_InvalidDataLength2, maxLength.ToString(CultureInfo.InvariantCulture)), "maxLength");
541throw ADP.Argument(Res.GetString(Res.ADP_InvalidDataLength2, maxLength.ToString(CultureInfo.InvariantCulture)), "maxLength");
546throw ADP.Argument(Res.GetString(Res.ADP_InvalidDataLength2, maxLength.ToString(CultureInfo.InvariantCulture)), "maxLength");
551throw ADP.Argument(Res.GetString(Res.ADP_InvalidDataLength2, maxLength.ToString(CultureInfo.InvariantCulture)), "maxLength");
557throw ADP.Argument(Res.GetString(Res.ADP_InvalidDataLength2, maxLength.ToString(CultureInfo.InvariantCulture)), "maxLength");
fx\src\data\System\Data\SqlClient\SqlUtil.cs (15)
381return ADP.ArgumentOutOfRange(Res.GetString(Res.SQL_NotSupportedEnumerationValue, type.Name, value.ToString(System.Globalization.CultureInfo.InvariantCulture)), type.Name);
451return ADP.Argument(Res.GetString(Res.SQL_PrecisionValueOutOfRange, precision.ToString(CultureInfo.InvariantCulture)));
454return ADP.Argument(Res.GetString(Res.SQL_ScaleValueOutOfRange, scale.ToString(CultureInfo.InvariantCulture)));
457return ADP.Argument(Res.GetString(Res.SQL_TimeScaleValueOutOfRange, scale.ToString(CultureInfo.InvariantCulture)));
509return ADP.InvalidOperation(Res.GetString(Res.SQL_ParsingErrorWithState, ((int)state).ToString(CultureInfo.InvariantCulture)));
512return ADP.InvalidOperation(Res.GetString(Res.SQL_ParsingErrorWithState, ((int)state).ToString(CultureInfo.InvariantCulture)), innerException);
515return ADP.InvalidOperation(Res.GetString(Res.SQL_ParsingErrorValue, ((int)state).ToString(CultureInfo.InvariantCulture), value));
518return ADP.InvalidOperation(Res.GetString(Res.SQL_ParsingErrorOffset, ((int)state).ToString(CultureInfo.InvariantCulture), offset));
521return ADP.InvalidOperation(Res.GetString(Res.SQL_ParsingErrorFeatureId, ((int)state).ToString(CultureInfo.InvariantCulture), featureId));
524return ADP.InvalidOperation(Res.GetString(Res.SQL_ParsingErrorToken, ((int)state).ToString(CultureInfo.InvariantCulture), token));
527return ADP.InvalidOperation(Res.GetString(Res.SQL_ParsingErrorLength, ((int)state).ToString(CultureInfo.InvariantCulture), length));
530return ADP.InvalidOperation(Res.GetString(Res.SQL_ParsingErrorStatus, ((int)state).ToString(CultureInfo.InvariantCulture), status));
533return ADP.InvalidOperation(Res.GetString(Res.SQL_ParsingErrorAuthLibraryType, ((int)state).ToString(CultureInfo.InvariantCulture), libraryType));
797return ADP.Argument(Res.GetString(Res.SQL_BulkLoadInvalidTimeout, timeout.ToString(CultureInfo.InvariantCulture)));
1665return ADP.InvalidOperation(Res.GetString(Res.OleDb_CommandParameterError, index.ToString(CultureInfo.InvariantCulture), "SqlParameter.Size"));
fx\src\data\System\Data\SqlClient\TdsParser.cs (22)
2300Debug.Assert(false, "Unhandled token: " + token.ToString(CultureInfo.InvariantCulture));
2410_defaultCodePage = Int32.Parse(stringCodePage, NumberStyles.Integer, CultureInfo.InvariantCulture);
2425Int32 packetSize = Int32.Parse(env.newValue, NumberStyles.Integer, CultureInfo.InvariantCulture);
2447_defaultLCID = Int32.Parse(env.newValue, NumberStyles.Integer, CultureInfo.InvariantCulture);
3152Bid.Trace("<sc.TdsParser.TryProcessFedAuthInfo> CountOfInfoIDs = %ls\n", optionsCount.ToString(CultureInfo.InvariantCulture));
3188Bid.Trace("<sc.TdsParser.TryProcessFedAuthInfo> FedAuthInfoOpt: ID=%d, DataLen=%ls, Offset=%ls\n", id, dataLen.ToString(CultureInfo.InvariantCulture), dataOffset.ToString(CultureInfo.InvariantCulture));
3699codePage = CultureInfo.GetCultureInfo(cultureId).TextInfo.ANSICodePage;
3719CultureInfo ci = null;
4722Debug.Assert(md != null, "_SqlMetaData should not be null for column " + i.ToString(CultureInfo.InvariantCulture));
5029Debug.Assert(false, "Unknown tds type for SqlString!" + type.ToString(CultureInfo.InvariantCulture));
5634Debug.Assert(false, "Unknown SqlType!" + tdsType.ToString(CultureInfo.InvariantCulture));
5803Debug.Assert(false, "Unknown tds type in SqlVariant!" + type.ToString(CultureInfo.InvariantCulture));
6174throw SQL.MoneyOverflow(decimalValue.ToString(CultureInfo.InvariantCulture));
6199throw SQL.MoneyOverflow(value.ToString(CultureInfo.InvariantCulture));
6238throw SQL.MoneyOverflow(value.ToString(CultureInfo.InvariantCulture));
10014Debug.Assert(type.FixedLength == 8, "invalid length for SqlIntN type: " + type.FixedLength.ToString(CultureInfo.InvariantCulture));
10576Debug.Assert(type.FixedLength == 8, "invalid length for SqlIntN type: " + type.FixedLength.ToString(CultureInfo.InvariantCulture));
10659throw SQL.SmallDateTimeOverflow(MetaType.ToDateTime(dt.days, dt.time, 4).ToString(CultureInfo.InvariantCulture));
10800Debug.Assert(type.FixedLength == 8, "invalid length for SqlIntN type: " + type.FixedLength.ToString(CultureInfo.InvariantCulture));
10846throw SQL.SmallDateTimeOverflow(MetaType.ToDateTime(dt.days, dt.time, 4).ToString(CultureInfo.InvariantCulture));
10974Debug.Assert(type.FixedLength == 8, "invalid length for SqlIntN type: " + type.FixedLength.ToString(CultureInfo.InvariantCulture));
fx\src\data\System\Data\xmlsaver.cs (21)
78s = (String) Convert.ToString(entry.Key, CultureInfo.InvariantCulture);
85v = (string)BigIntegerStorage.ConvertFromBigInteger((System.Numerics.BigInteger)entry.Value, typeof(string), CultureInfo.InvariantCulture);
88v = (String) Convert.ToString(entry.Value, CultureInfo.InvariantCulture);
138type != typeof(CultureInfo) &&
617el.SetAttribute(Keywords.MINOCCURS, top[i].MinOccurs.ToString(CultureInfo.InvariantCulture));
623el.SetAttribute(Keywords.MAXOCCURS, top[i].MaxOccurs.ToString(CultureInfo.InvariantCulture));
706rootSchema.SetAttribute(Keywords.MSD_FRAGMENTCOUNT, Keywords.MSDNS, namespaces.Count.ToString(CultureInfo.InvariantCulture));
877if (dataSet.ShouldSerializeLocale() || !dataSet.Locale.Equals(CultureInfo.CurrentCulture)) {
893if (dt.ShouldSerializeLocale() || !dt.Locale.Equals(CultureInfo.CurrentCulture)) {
1038string prefix = Keywords.APP+Convert.ToString(++prefixCount, CultureInfo.InvariantCulture);
1161root.SetAttribute("AutoIncrementSeed", Keywords.MSDNS, col.AutoIncrementSeed.ToString(CultureInfo.InvariantCulture));
1164root.SetAttribute("AutoIncrementStep", Keywords.MSDNS, col.AutoIncrementStep.ToString(CultureInfo.InvariantCulture));
1301root.SetAttribute(Keywords.MINOCCURS, minOccurs.ToString(CultureInfo.InvariantCulture));
1304root.SetAttribute(Keywords.MSD_ORDINAL,Keywords.MSDNS, col.Ordinal.ToString(CultureInfo.InvariantCulture));
1518root.SetAttribute(Keywords.MSD_CASESENSITIVE, Keywords.MSDNS, table.CaseSensitive.ToString(CultureInfo.InvariantCulture));
1611sc.SetAttribute(Keywords.MSD_ORDINAL, Keywords.MSDNS, colTxt.Ordinal.ToString(CultureInfo.InvariantCulture));
2114_xmlw.WriteAttributeString( Keywords.DFF, Keywords.DIFFID, Keywords.DFFNS, row.Table.TableName+row.rowID.ToString(CultureInfo.InvariantCulture));
2135_xmlw.WriteAttributeString( Keywords.DFF, Keywords.DIFFID, Keywords.DFFNS, row.Table.TableName+row.rowID.ToString(CultureInfo.InvariantCulture));
2166string rowIDString = table.TableName+row.rowID.ToString(CultureInfo.InvariantCulture);
2171parentId = parentRow.Table.TableName+parentRow.rowID.ToString(CultureInfo.InvariantCulture);
2545_xmlw.WriteAttributeString( Keywords.DFF, Keywords.DIFFID, Keywords.DFFNS, row.Table.TableName+row.rowID.ToString(CultureInfo.InvariantCulture));
System\Data\Common\EntitySql\AST\Literal.cs (18)
267if (!UInt32.TryParse(numberPart, NumberStyles.Integer, CultureInfo.InvariantCulture, out value))
278if (!Int64.TryParse(numberPart, NumberStyles.Integer, CultureInfo.InvariantCulture, out value))
290if (!UInt64.TryParse(numberPart, NumberStyles.Integer, CultureInfo.InvariantCulture, out value))
301if (!Single.TryParse(numberPart, NumberStyles.Float, CultureInfo.InvariantCulture, out value))
312if (!Decimal.TryParse(numberPart, NumberStyles.AllowLeadingSign | NumberStyles.AllowDecimalPoint, CultureInfo.InvariantCulture, out value))
323if (!Double.TryParse(numberPart, NumberStyles.Float, CultureInfo.InvariantCulture, out value))
349if (!Double.TryParse(numericString, NumberStyles.Float, CultureInfo.InvariantCulture, out value))
359if (Int32.TryParse(numericString, NumberStyles.Integer, CultureInfo.InvariantCulture, out int32Value))
365if (!Int64.TryParse(numericString, NumberStyles.Integer, CultureInfo.InvariantCulture, out int64Value))
552int offsetHours = Int32.Parse(datetimeParts[datetimeParts.Length - 2], NumberStyles.Integer, CultureInfo.InvariantCulture);
553int offsetMinutes = Int32.Parse(datetimeParts[datetimeParts.Length - 1], NumberStyles.Integer, CultureInfo.InvariantCulture);
600hour = Int32.Parse(datetimeParts[timePartStartIndex], NumberStyles.Integer, CultureInfo.InvariantCulture);
605minute = Int32.Parse(datetimeParts[++timePartStartIndex], NumberStyles.Integer, CultureInfo.InvariantCulture);
615second = Int32.Parse(datetimeParts[timePartStartIndex], NumberStyles.Integer, CultureInfo.InvariantCulture);
625ticks = Int32.Parse(ticksString, NumberStyles.Integer, CultureInfo.InvariantCulture);
633year = Int32.Parse(datetimeParts[0], NumberStyles.Integer, CultureInfo.InvariantCulture);
638month = Int32.Parse(datetimeParts[1], NumberStyles.Integer, CultureInfo.InvariantCulture);
643day = Int32.Parse(datetimeParts[2], NumberStyles.Integer, CultureInfo.InvariantCulture);
System\Data\Common\EntityUtil.cs (20)
438return IndexOutOfRange(System.Data.Entity.Strings.ADP_InvalidBufferSizeOrIndex(numBytes.ToString(CultureInfo.InvariantCulture), bufferIndex.ToString(CultureInfo.InvariantCulture)));
441return IndexOutOfRange(System.Data.Entity.Strings.ADP_InvalidDataLength(length.ToString(CultureInfo.InvariantCulture)));
444return ArgumentOutOfRange(System.Data.Entity.Strings.ADP_InvalidDestinationBufferIndex(maxLen.ToString(CultureInfo.InvariantCulture), dstOffset.ToString(CultureInfo.InvariantCulture)), parameterName);
447return ArgumentOutOfRange(System.Data.Entity.Strings.ADP_InvalidSourceBufferIndex(maxLen.ToString(CultureInfo.InvariantCulture), srcOffset.ToString(CultureInfo.InvariantCulture)), parameterName);
456return InvalidOperation(System.Data.Entity.Strings.ADP_NonSequentialChunkAccess(badIndex.ToString(CultureInfo.InvariantCulture), currIndex.ToString(CultureInfo.InvariantCulture), method));
459return InvalidOperation(System.Data.Entity.Strings.ADP_NonSequentialColumnAccess(badCol.ToString(CultureInfo.InvariantCulture), currCol.ToString(CultureInfo.InvariantCulture)));
532return Metadata(String.Format(CultureInfo.CurrentCulture, EntityRes.GetString(EntityRes.InvalidSchemaEncountered), errors));
601return Argument(System.Data.Entity.Strings.InvalidEDMVersion(edmVersion.ToString(CultureInfo.CurrentCulture)));
1408return Argument(System.Data.Entity.Strings.ADP_InvalidSizeValue(value.ToString(CultureInfo.InvariantCulture)));
1578return Argument(System.Data.Entity.Strings.ADP_UnknownDataTypeCode(((int) typeCode).ToString(CultureInfo.InvariantCulture), dataType.FullName));
1679result = cardinality.Value.ToString(CultureInfo.CurrentCulture);
1709return new IndexOutOfRangeException(System.Data.Entity.Strings.EntityParameterCollectionInvalidIndex(index.ToString(CultureInfo.InvariantCulture), count.ToString(CultureInfo.InvariantCulture)));
1827return EntityUtil.ArgumentOutOfRange(System.Data.Entity.Strings.ADP_InvalidEnumerationValue(type.Name, value.ToString(System.Globalization.CultureInfo.InvariantCulture)), type.Name);
2037return CultureInfo.CurrentCulture.CompareInfo.Compare(strA, strB, EntityUtil.StringCompareOptions);
System\Data\EntityModel\SchemaObjectModel\ScalarType.cs (11)
131if (!Byte.TryParse(text, System.Globalization.NumberStyles.Integer, System.Globalization.CultureInfo.InvariantCulture, out temp))
143if (!SByte.TryParse(text, System.Globalization.NumberStyles.Integer, System.Globalization.CultureInfo.InvariantCulture, out temp))
155if (!Int16.TryParse(text, System.Globalization.NumberStyles.Integer, System.Globalization.CultureInfo.InvariantCulture, out temp))
167if (!Int32.TryParse(text, System.Globalization.NumberStyles.Integer, System.Globalization.CultureInfo.InvariantCulture, out temp))
179if (!Int64.TryParse(text, System.Globalization.NumberStyles.Integer, System.Globalization.CultureInfo.InvariantCulture, out temp))
191if (!Double.TryParse(text, System.Globalization.NumberStyles.Float, System.Globalization.CultureInfo.InvariantCulture, out temp))
203if (!Decimal.TryParse(text, System.Globalization.NumberStyles.Float, System.Globalization.CultureInfo.InvariantCulture, out temp))
215if (!DateTime.TryParseExact(text, DateTimeFormat, CultureInfo.InvariantCulture, DateTimeStyles.AssumeUniversal | DateTimeStyles.AdjustToUniversal, out temp))
235if (!DateTime.TryParseExact(text, TimeFormat, CultureInfo.InvariantCulture, DateTimeStyles.AssumeUniversal | DateTimeStyles.AdjustToUniversal | DateTimeStyles.NoCurrentDateDefault, out temp))
307bytes[iByte] = byte.Parse(text.Substring(index, inc), System.Globalization.NumberStyles.HexNumber, System.Globalization.CultureInfo.InvariantCulture);
315if (!Single.TryParse(text, System.Globalization.NumberStyles.Float, System.Globalization.CultureInfo.InvariantCulture, out temp))
System\Data\Mapping\BaseMetadataMappingVisitor.cs (5)
53Debug.Fail(string.Format(CultureInfo.InvariantCulture, "Found type '{0}', did we add a new type?", entitySetBase.BuiltInTypeKind));
206Debug.Fail(String.Format(CultureInfo.InvariantCulture, "Found type '{0}', did we add a new type?", relationshipType.BuiltInTypeKind));
247Debug.Fail(String.Format(CultureInfo.InvariantCulture, "Found type '{0}', did we add a new type?", edmType.BuiltInTypeKind));
326Debug.Fail(String.Format(CultureInfo.InvariantCulture, "Found type '{0}', did we add a new type?", entityTypeBase.BuiltInTypeKind));
385Debug.Fail(String.Format(CultureInfo.InvariantCulture, "Found type '{0}', did we add a new type?", storagePropertyMapping.GetType()));
System\Data\Objects\Internal\EntityProxyFactory.cs (4)
69AssemblyName assemblyName = new AssemblyName(String.Format(CultureInfo.InvariantCulture, "EntityFrameworkDynamicProxies-{0}", assembly.FullName));
461Debug.Assert(property != null, String.Format(CultureInfo.CurrentCulture, "Expected property {0} to be defined on proxy type {1}", member.Name, proxyType.FullName));
464Debug.Assert(interceptorField != null, String.Format(CultureInfo.CurrentCulture, "Expected interceptor field for property {0} to be defined on proxy type {1}", member.Name, proxyType.FullName));
715string proxyTypeName = String.Format(CultureInfo.InvariantCulture, ProxyTypeNameFormat, baseName, _ospaceEntityType.HashedDescription);
System\Data\Query\InternalTrees\ColumnMap.cs (16)
227return String.Format(CultureInfo.InvariantCulture, "S({0},{1})", this.CommandId, this.ColumnPos);
274sb.AppendFormat(CultureInfo.InvariantCulture, "{0}{1}", separator, c);
425sb.AppendFormat(CultureInfo.InvariantCulture, "P{{TypeId={0}, ", this.TypeDiscriminator);
428sb.AppendFormat(CultureInfo.InvariantCulture, "{0}({1},{2})", separator, kv.Key, kv.Value);
512sb.AppendFormat(CultureInfo.InvariantCulture, "P{{TypeId=<{0}>, ", StringUtil.ToCommaSeparatedString(this.TypeDiscriminators));
515sb.AppendFormat(CultureInfo.InvariantCulture, "{0}(<{1}>,{2})", separator, kv.Key, kv.Value);
578string str = String.Format(CultureInfo.InvariantCulture, "C{0}", base.ToString());
641string str = String.Format(CultureInfo.InvariantCulture, "E{0}", base.ToString());
877string str = String.Format(CultureInfo.InvariantCulture, "M{{{0}}}", this.Element.ToString());
948sb.AppendFormat(CultureInfo.InvariantCulture, "[(ES={0}) (Keys={", this.EntitySet.Name);
951sb.AppendFormat(CultureInfo.InvariantCulture, "{0}{1}", separator, c);
954sb.AppendFormat(CultureInfo.InvariantCulture, "})]");
1012sb.AppendFormat(CultureInfo.InvariantCulture, "[(Keys={");
1015sb.AppendFormat(CultureInfo.InvariantCulture, "{0}{1}", separator, c);
1018sb.AppendFormat(CultureInfo.InvariantCulture, "})]");
1091return this.IsNamed ? this.Name : String.Format(CultureInfo.InvariantCulture, "{0}", m_var.Id);
System\Data\Query\InternalTrees\Vars.cs (4)
99return String.Format(CultureInfo.InvariantCulture, "{0}", this.Id); ;
527sb.AppendFormat(CultureInfo.InvariantCulture, "{0}{1}", separator, v.Id);
587sb.AppendFormat(CultureInfo.InvariantCulture, "{0}{1}", separator, v.Id);
629sb.AppendFormat(CultureInfo.InvariantCulture, "{0}({1},{2})", separator, v.Id, this[v].Id);
System\Data\Query\PlanCompiler\CTreeGenerator.cs (6)
490string groupVarName = string.Format(CultureInfo.InvariantCulture, "{0}Group", varName);
634PlanCompiler.Assert(retExpr != null, string.Format(CultureInfo.InvariantCulture, "Unresolvable Var used in Command: VarType={0}, Id={1}", Enum.GetName(typeof(VarType), referencedVar.VarType), referencedVar.Id));
647PlanCompiler.Assert(2 == n.Children.Count, string.Format(CultureInfo.InvariantCulture, "Non-Binary {0} encountered", n.Op.GetType().Name));
789PlanCompiler.Assert(resultExpr != null, string.Format(CultureInfo.InvariantCulture, "ArithmeticOp OpType not recognized: {0}", Enum.GetName(typeof(OpType), op.OpType)));
897PlanCompiler.Assert(compExpr != null, string.Format(CultureInfo.InvariantCulture, "ComparisonOp OpType not recognized: {0}", Enum.GetName(typeof(OpType), op.OpType)));
956PlanCompiler.Assert(condExpr != null, string.Format(CultureInfo.InvariantCulture, "ConditionalOp OpType not recognized: {0}", Enum.GetName(typeof(OpType), op.OpType)));
System\Data\SqlClient\SqlGen\SqlGenerator.cs (8)
941result.Append(EscapeSingleQuote(((System.DateTime)e.Value).ToString(this.IsPreKatmai ? "yyyy-MM-dd HH:mm:ss.fff" : "yyyy-MM-dd HH:mm:ss.fffffff", CultureInfo.InvariantCulture), false /* IsUnicode */));
959result.Append(EscapeSingleQuote(((System.DateTimeOffset)e.Value).ToString("yyyy-MM-dd HH:mm:ss.fffffff zzz", CultureInfo.InvariantCulture), false /* IsUnicode */));
964string strDecimal = ((Decimal)e.Value).ToString(CultureInfo.InvariantCulture);
973string decimalType = "decimal(" + precision.ToString(CultureInfo.InvariantCulture) + ")";
982WrapWithCastIfNeeded(true, doubleValue.ToString("R", CultureInfo.InvariantCulture), "float(53)", result);
1010WrapWithCastIfNeeded(true, singleValue.ToString("R", CultureInfo.InvariantCulture), "real", result);
3841typeName = typeName + "(" + maxLength.ToString(CultureInfo.InvariantCulture) + ")";
3850typeName = typeName + "(" + maxLength.ToString(CultureInfo.InvariantCulture) + ")";
System\ServiceModel\Administration\AppDomainInstanceProvider.cs (3)
45return String.Format(CultureInfo.InvariantCulture, AdministrationStrings.AppDomainInfo +
90string initializeData = (string)type.InvokeMember(AdministrationStrings.InitializeData, BindingFlags.GetField | BindingFlags.NonPublic | BindingFlags.Instance, null, traceListener, null, CultureInfo.InvariantCulture);
91string[] supportedAttributes = (string[])type.InvokeMember(AdministrationStrings.GetSupportedAttributes, BindingFlags.InvokeMethod | BindingFlags.NonPublic | BindingFlags.Instance, null, traceListener, null, CultureInfo.InvariantCulture);
System\ServiceModel\Administration\ServiceInstanceProvider.cs (13)
60return String.Format(CultureInfo.InvariantCulture, AdministrationStrings.Service +
167result += String.Format(CultureInfo.InvariantCulture, "Certificate: {0}\n", specificBehavior.ClientCertificate.Certificate);
173result += String.Format(CultureInfo.InvariantCulture, "AllowUntrustedRsaIssuers: {0}\n", specificBehavior.IssuedTokenAuthentication.AllowUntrustedRsaIssuers);
174result += String.Format(CultureInfo.InvariantCulture, "CertificateValidationMode: {0}\n", specificBehavior.IssuedTokenAuthentication.CertificateValidationMode);
175result += String.Format(CultureInfo.InvariantCulture, "RevocationMode: {0}\n", specificBehavior.IssuedTokenAuthentication.RevocationMode);
176result += String.Format(CultureInfo.InvariantCulture, "TrustedStoreLocation: {0}\n", specificBehavior.IssuedTokenAuthentication.TrustedStoreLocation);
181result += String.Format(CultureInfo.InvariantCulture, "Known certificate: {0}\n", certificate.FriendlyName);
184result += String.Format(CultureInfo.InvariantCulture, "AudienceUriMode: {0}\n", specificBehavior.IssuedTokenAuthentication.AudienceUriMode);
191result += String.Format(CultureInfo.InvariantCulture, "Allowed Uri: {0}\n", str);
201result += String.Format(CultureInfo.InvariantCulture, "Certificate: {0}\n", specificBehavior.Peer.Certificate.ToString(true));
211result += String.Format(CultureInfo.InvariantCulture, "ClaimType: {0}\n", claimType);
222instance.SetProperty(AdministrationStrings.UserNameAuthentication, String.Format(CultureInfo.InvariantCulture, "{0}: {1}", AdministrationStrings.ValidationMode, specificBehavior.UserNameAuthentication.UserNamePasswordValidationMode.ToString()));
226instance.SetProperty(AdministrationStrings.WindowsAuthentication, String.Format(CultureInfo.InvariantCulture, "{0}: {1}", AdministrationStrings.AllowAnonymous, specificBehavior.WindowsAuthentication.AllowAnonymousLogons.ToString()));
System\ServiceModel\Channels\BufferedOutputAsyncStream.cs (3)
804Fx.Assert(this.position + count <= this.bytes.Length, string.Format(CultureInfo.InvariantCulture, "Chunk is too big to fit in this buffer. Chunk size={0}, free space={1}", count, this.bytes.Length - this.position));
805Fx.Assert(!this.writePending, string.Format(CultureInfo.InvariantCulture, "The buffer is in use, position={0}", this.position));
814Fx.Assert(!this.writePending, string.Format(CultureInfo.InvariantCulture, "The buffer is in use, position={0}", this.position));
System\ServiceModel\Channels\HttpChannelHelpers.cs (4)
409string statusDescription = string.Format(CultureInfo.InvariantCulture, HttpChannelUtilities.StatusDescriptionStrings.HttpContentTypeMismatch, ContentType, messageEncoder.ContentType);
2523action = string.Format(CultureInfo.InvariantCulture, "\"{0}\"", UrlUtility.UrlPathEncode(action));
2667string value = string.Format(CultureInfo.InvariantCulture, "\"{0}\"", parsedContentType.Parameters["action"]);
2686httpWebRequest.ContentType = string.Format(CultureInfo.InvariantCulture, "{0}; action={1}", httpWebRequest.ContentType, action);
System\ServiceModel\Channels\HttpChannelListener.cs (13)
758AddSpn(serviceNames, string.Format(CultureInfo.InvariantCulture, hostSpnFormat, hostName));
759AddSpn(serviceNames, string.Format(CultureInfo.InvariantCulture, httpSpnFormat, hostName));
766AddSpn(serviceNames, string.Format(CultureInfo.InvariantCulture, hostSpnFormat, dnsSafeHostName));
767AddSpn(serviceNames, string.Format(CultureInfo.InvariantCulture, httpSpnFormat, dnsSafeHostName));
773AddSpn(serviceNames, string.Format(CultureInfo.InvariantCulture, hostSpnFormat, dnsSafeHostName));
774AddSpn(serviceNames, string.Format(CultureInfo.InvariantCulture, httpSpnFormat, dnsSafeHostName));
775AddSpn(serviceNames, string.Format(CultureInfo.InvariantCulture, hostSpnFormat, hostName));
776AddSpn(serviceNames, string.Format(CultureInfo.InvariantCulture, httpSpnFormat, hostName));
783AddSpn(serviceNames, string.Format(CultureInfo.InvariantCulture, hostSpnFormat, hostName));
784AddSpn(serviceNames, string.Format(CultureInfo.InvariantCulture, httpSpnFormat, hostName));
791AddSpn(serviceNames, string.Format(CultureInfo.InvariantCulture, hostSpnFormat, localhost));
792AddSpn(serviceNames, string.Format(CultureInfo.InvariantCulture, httpSpnFormat, localhost));
934new StringTraceRecord(WebSocketHelper.MaxPendingConnectionsString, this.WebSocketSettings.MaxPendingConnections.ToString(System.Globalization.CultureInfo.InvariantCulture)),
System\ServiceModel\Channels\HttpMessageHandlerFactory.cs (4)
65string.Format(CultureInfo.InvariantCulture, "handlers[<<{0}>>]", cnt),
72string.Format(CultureInfo.InvariantCulture, "handlers[<<{0}>>]", cnt),
80string.Format(CultureInfo.InvariantCulture, "handlers[<<{0}>>]", cnt),
302return string.Format(CultureInfo.InvariantCulture, "{0}.{1}", t.FullName, m.Name);
System\ServiceModel\Channels\MsmqDiagnostics.cs (8)
37dictionary["PublicQueues"] = Convert.ToString(publicQueues, CultureInfo.InvariantCulture);
145dictionary["Private"] = Convert.ToString(isPrivate, CultureInfo.InvariantCulture);
179dictionary["Private"] = Convert.ToString(isPrivate, CultureInfo.InvariantCulture);
288new StringTraceRecord("MSMQMessageLookupId", Convert.ToString(lookupId, CultureInfo.InvariantCulture)),
302new StringTraceRecord("MSMQMessageLookupId", Convert.ToString(lookupId, CultureInfo.InvariantCulture)),
439dictionary["NumberOfMessages"] = Convert.ToString(numberOfMessages, CultureInfo.InvariantCulture);
457dictionary["NumberOfMessages"] = Convert.ToString(numberOfMessages, CultureInfo.InvariantCulture);
474dictionary["Acknowledgment"] = Convert.ToString(acknowledgment, CultureInfo.InvariantCulture);
System\ServiceModel\Channels\PnrpPeerResolver.cs (5)
345string peerName = string.Format(CultureInfo.InvariantCulture, "0.{0}", meshId);
399pathBuilder.Append(PathSeparator + String.Format(CultureInfo.InvariantCulture, "{0}", guid.ToString()));
402uriBuilder.Path = String.Format(CultureInfo.InvariantCulture, "{0}", pathBuilder.ToString());
445string peerName = string.Format(CultureInfo.InvariantCulture, "0.{0}", meshName);
647string peerName = string.Format(CultureInfo.InvariantCulture, "0.{0}", meshId);
System\ServiceModel\Channels\SecurityBindingElement.cs (11)
1833sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "{0}:", this.GetType().ToString()));
1834sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "DefaultAlgorithmSuite: {0}", this.defaultAlgorithmSuite.ToString()));
1835sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "IncludeTimestamp: {0}", this.includeTimestamp.ToString()));
1836sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "KeyEntropyMode: {0}", this.keyEntropyMode.ToString()));
1837sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "MessageSecurityVersion: {0}", this.MessageSecurityVersion.ToString()));
1838sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "SecurityHeaderLayout: {0}", this.securityHeaderLayout.ToString()));
1839sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "ProtectTokens: {0}", this.protectTokens.ToString()));
1846sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "OperationSupportingTokenParameters: none"));
1852sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "OperationSupportingTokenParameters[\"{0}\"]:", requestAction));
1858sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "OptionalOperationSupportingTokenParameters: none"));
1864sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "OptionalOperationSupportingTokenParameters[\"{0}\"]:", requestAction));
System\ServiceModel\Configuration\ExtensionsSection.cs (6)
184Fx.Assert(String.Format(CultureInfo.InvariantCulture, "{0} is not a type supported by the ServiceModelExtensionsSection collections.", extensionType.AssemblyQualifiedName));
185DiagnosticUtility.FailFast(String.Format(CultureInfo.InvariantCulture, "{0} is not a type supported by the ServiceModelExtensionsSection collections.", extensionType.AssemblyQualifiedName));
234Fx.Assert(String.Format(CultureInfo.InvariantCulture, "{0} is not a valid ServiceModelExtensionsSection collection name.", collectionName));
235DiagnosticUtility.FailFast(String.Format(CultureInfo.InvariantCulture, "{0} is not a valid ServiceModelExtensionsSection collection name.", collectionName));
288Fx.Assert(String.Format(CultureInfo.InvariantCulture, "{0} is not a valid ServiceModelExtensionsSection collection name.", collectionName));
289DiagnosticUtility.FailFast(String.Format(CultureInfo.InvariantCulture, "{0} is not a valid ServiceModelExtensionsSection collection name.", collectionName));
System\ServiceModel\Configuration\Properties.cs (144)
65properties.Add(new ConfigurationProperty("receiveTimeout", typeof(System.TimeSpan), System.TimeSpan.Parse("00:00:30", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None));
93properties.Add(new ConfigurationProperty("receiveTimeout", typeof(System.TimeSpan), System.TimeSpan.Parse("00:00:30", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None));
680properties.Add(new ConfigurationProperty("idleTimeout", typeof(System.TimeSpan), System.TimeSpan.Parse("00:02:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None));
681properties.Add(new ConfigurationProperty("leaseTimeout", typeof(System.TimeSpan), System.TimeSpan.Parse("00:10:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None));
804properties.Add(new ConfigurationProperty("transactionTimeout", typeof(System.TimeSpan), System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None));
911properties.Add(new ConfigurationProperty("channelInitializationTimeout", typeof(System.TimeSpan), System.TimeSpan.Parse("00:00:30", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00.0000001", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None));
914properties.Add(new ConfigurationProperty("maxOutputDelay", typeof(System.TimeSpan), System.TimeSpan.Parse("00:00:00.2", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None));
940properties.Add(new ConfigurationProperty("closeTimeout", typeof(System.TimeSpan), System.TimeSpan.Parse("00:01:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None));
941properties.Add(new ConfigurationProperty("openTimeout", typeof(System.TimeSpan), System.TimeSpan.Parse("00:01:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None));
942properties.Add(new ConfigurationProperty("receiveTimeout", typeof(System.TimeSpan), System.TimeSpan.Parse("00:10:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None));
943properties.Add(new ConfigurationProperty("sendTimeout", typeof(System.TimeSpan), System.TimeSpan.Parse("00:01:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None));
1227properties.Add(new ConfigurationProperty("closeTimeout", typeof(System.TimeSpan), System.TimeSpan.Parse("00:00:10", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None));
1228properties.Add(new ConfigurationProperty("openTimeout", typeof(System.TimeSpan), System.TimeSpan.Parse("00:01:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None));
1360properties.Add(new ConfigurationProperty("requestInitializationTimeout", typeof(System.TimeSpan), System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None));
1460properties.Add(new ConfigurationProperty("maxIssuedTokenCachingTime", typeof(System.TimeSpan), System.TimeSpan.Parse("10675199.02:48:05.4775807", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None));
1603properties.Add(new ConfigurationProperty("maxClockSkew", typeof(System.TimeSpan), System.TimeSpan.Parse("00:05:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None));
1604properties.Add(new ConfigurationProperty("maxCookieCachingTime", typeof(System.TimeSpan), System.TimeSpan.Parse("10675199.02:48:05.4775807", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None));
1605properties.Add(new ConfigurationProperty("replayWindow", typeof(System.TimeSpan), System.TimeSpan.Parse("00:05:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None));
1606properties.Add(new ConfigurationProperty("sessionKeyRenewalInterval", typeof(System.TimeSpan), System.TimeSpan.Parse("10:00:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None));
1607properties.Add(new ConfigurationProperty("sessionKeyRolloverInterval", typeof(System.TimeSpan), System.TimeSpan.Parse("00:05:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None));
1609properties.Add(new ConfigurationProperty("timestampValidityDuration", typeof(System.TimeSpan), System.TimeSpan.Parse("00:05:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None));
1635properties.Add(new ConfigurationProperty("issuedCookieLifetime", typeof(System.TimeSpan), System.TimeSpan.Parse("10:00:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None));
1638properties.Add(new ConfigurationProperty("maxClockSkew", typeof(System.TimeSpan), System.TimeSpan.Parse("00:05:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None));
1639properties.Add(new ConfigurationProperty("negotiationTimeout", typeof(System.TimeSpan), System.TimeSpan.Parse("00:01:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None));
1640properties.Add(new ConfigurationProperty("replayWindow", typeof(System.TimeSpan), System.TimeSpan.Parse("00:05:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None));
1641properties.Add(new ConfigurationProperty("inactivityTimeout", typeof(System.TimeSpan), System.TimeSpan.Parse("00:02:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None));
1642properties.Add(new ConfigurationProperty("sessionKeyRenewalInterval", typeof(System.TimeSpan), System.TimeSpan.Parse("15:00:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None));
1643properties.Add(new ConfigurationProperty("sessionKeyRolloverInterval", typeof(System.TimeSpan), System.TimeSpan.Parse("00:05:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None));
1647properties.Add(new ConfigurationProperty("timestampValidityDuration", typeof(System.TimeSpan), System.TimeSpan.Parse("00:05:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None));
1812properties.Add(new ConfigurationProperty("retryCycleDelay", typeof(System.TimeSpan), System.TimeSpan.Parse("00:30:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None));
1813properties.Add(new ConfigurationProperty("timeToLive", typeof(System.TimeSpan), System.TimeSpan.Parse("1.00:00:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None));
1816properties.Add(new ConfigurationProperty("validityDuration", typeof(System.TimeSpan), System.TimeSpan.Parse("00:05:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None));
1922properties.Add(new ConfigurationProperty("retryCycleDelay", typeof(System.TimeSpan), System.TimeSpan.Parse("00:30:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None));
1924properties.Add(new ConfigurationProperty("timeToLive", typeof(System.TimeSpan), System.TimeSpan.Parse("1.00:00:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None));
1927properties.Add(new ConfigurationProperty("validityDuration", typeof(System.TimeSpan), System.TimeSpan.Parse("00:05:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None));
2034properties.Add(new ConfigurationProperty("idleTimeout", typeof(System.TimeSpan), System.TimeSpan.Parse("00:02:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None));
2239properties.Add(new ConfigurationProperty("keepAliveInterval", typeof(System.TimeSpan), System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("-00:00:00.0010000", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None));
2702properties.Add(new ConfigurationProperty("closeTimeout", typeof(System.TimeSpan), System.TimeSpan.Parse("00:01:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None));
2703properties.Add(new ConfigurationProperty("openTimeout", typeof(System.TimeSpan), System.TimeSpan.Parse("00:01:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None));
2704properties.Add(new ConfigurationProperty("receiveTimeout", typeof(System.TimeSpan), System.TimeSpan.Parse("00:10:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None));
2705properties.Add(new ConfigurationProperty("sendTimeout", typeof(System.TimeSpan), System.TimeSpan.Parse("00:01:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None));
2887properties.Add(new ConfigurationProperty("inactivityTimeout", typeof(System.TimeSpan), System.TimeSpan.Parse("00:10:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00.0000001", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None));
2935properties.Add(new ConfigurationProperty("acknowledgementInterval", typeof(System.TimeSpan), System.TimeSpan.Parse("00:00:00.2", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00.0000001", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None));
2937properties.Add(new ConfigurationProperty("inactivityTimeout", typeof(System.TimeSpan), System.TimeSpan.Parse("00:10:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00.0000001", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None));
3661properties.Add(new ConfigurationProperty("cachedLogonTokenLifetime", typeof(System.TimeSpan), System.TimeSpan.Parse("00:15:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00.0000001", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None));
4568properties.Add(new ConfigurationProperty("transactionTimeout", typeof(System.TimeSpan), System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None));
4593properties.Add(new ConfigurationProperty("leaseTimeout", typeof(System.TimeSpan), System.TimeSpan.Parse("00:05:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None));
4594properties.Add(new ConfigurationProperty("idleTimeout", typeof(System.TimeSpan), System.TimeSpan.Parse("00:02:00", CultureInfo.InvariantCulture), new System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter(), new System.ServiceModel.Configuration.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None));
System\ServiceModel\Configuration\UnrecognizedPolicyAssertionElement.cs (2)
66WriteComment(String.Format(CultureInfo.InvariantCulture, "<wsdl:binding name='{0}'>", this.wsdlBinding.Name), indent, writer, settings);
77WriteComment(String.Format(CultureInfo.InvariantCulture, "<wsdl:operation name='{0}'>", operation.Name), indent, writer, settings);
System\ServiceModel\Description\ClientClassGenerator.cs (11)
177throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(String.Format(CultureInfo.InvariantCulture, "Invalid client generation constructor table initialization")));
185throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(String.Format(CultureInfo.InvariantCulture, "Invalid client generation constructor table initialization")));
946return string.Format(CultureInfo.InvariantCulture, "{0}Async", syncMethodName);
951return string.Format(CultureInfo.InvariantCulture, "onBegin{0}Delegate", syncMethodName);
956return string.Format(CultureInfo.InvariantCulture, "OnBegin{0}", syncMethodName);
961return string.Format(CultureInfo.InvariantCulture, "onEnd{0}Delegate", syncMethodName);
966return string.Format(CultureInfo.InvariantCulture, "OnEnd{0}", syncMethodName);
971return string.Format(CultureInfo.InvariantCulture, "on{0}CompletedDelegate", syncMethodName);
976return string.Format(CultureInfo.InvariantCulture, "On{0}Completed", syncMethodName);
981return string.Format(CultureInfo.InvariantCulture, "{0}Completed", syncMethodName);
986return string.Format(CultureInfo.InvariantCulture, "{0}CompletedEventArgs", syncMethodName);
System\ServiceModel\Description\WsdlExporter.cs (11)
840return string.Format(CultureInfo.InvariantCulture, "#{0}", key);
874return string.Format(CultureInfo.InvariantCulture, "{0}_policy", wsdlBinding.Name);
879return string.Format(CultureInfo.InvariantCulture, "{0}_{1}_policy",
890return string.Format(CultureInfo.InvariantCulture, "{0}_{1}_Input_policy", wsdlBinding.Name, wsdlOperationBinding.Name);
892return string.Format(CultureInfo.InvariantCulture, "{0}_{1}_output_policy", wsdlBinding.Name, wsdlOperationBinding.Name);
901return string.Format(CultureInfo.InvariantCulture, "{0}_{1}_Fault", wsdlBinding.Name, wsdlOperationBinding.Name);
905return string.Format(CultureInfo.InvariantCulture, "{0}_{1}_{2}_Fault", wsdlBinding.Name, wsdlOperationBinding.Name, wsdlFaultBinding.Name);
975throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(String.Format(CultureInfo.InvariantCulture, "You must pass at least one namespaceScope")));
992prefix = prefixBase + i.ToString(CultureInfo.InvariantCulture);
996prefix = prefixBase + (++i).ToString(CultureInfo.InvariantCulture);
1216endpointIdentifier = String.Format(CultureInfo.InvariantCulture,
System\ServiceModel\Description\WsdlImporter.cs (17)
1072string actionUri = string.Format(CultureInfo.InvariantCulture, "{0}{1}{2}{3}", baseActionUri, portTypeName, delimiter, operationMessageName.EncodedName);
1193XmlName xmlName = new XmlName(string.Format(CultureInfo.InvariantCulture, "{0}_{1}", wsdlPort.Service.Name, wsdlPort.Name), true /*isEncoded*/);
1354string id = string.Format(System.Globalization.CultureInfo.InvariantCulture, "{0}_{1}_BindingAdHocPolicy", wsdlBinding.Name, name);
1355string newPolicyUris = string.Format(System.Globalization.CultureInfo.InvariantCulture, "#{0} {1}", id, policyUris).Trim();
1781string documentPath = string.Format(CultureInfo.InvariantCulture, xPathDocumentFormatString, wsdlNs);
1785itemPath = string.Format(CultureInfo.InvariantCulture, xPathNamedItemSubFormatString, localName, nameValue);
1829rest = string.Format(CultureInfo.InvariantCulture, xPathNamedItemSubFormatString, "port", item.Name);
1837rest = string.Format(CultureInfo.InvariantCulture, xPathNamedItemSubFormatString, "operation", item.Name);
1845rest = string.Format(CultureInfo.InvariantCulture, xPathNamedItemSubFormatString, "operation", item.Name);
1865rest = string.Format(CultureInfo.InvariantCulture, xPathNamedItemSubFormatString, "operation", wsdlOperationBinding.Name);
1867rest += string.Format(CultureInfo.InvariantCulture, xPathItemSubFormatString, messageTag);
1869rest += string.Format(CultureInfo.InvariantCulture, xPathNamedItemSubFormatString, messageTag, messageName);
2437string policyUri = string.Format(CultureInfo.InvariantCulture, "{0}{1}", identifier, policyId);
2446static readonly string wspPolicy = string.Format(CultureInfo.InvariantCulture, "{0}:{1}", MetadataStrings.WSPolicy.Prefix, MetadataStrings.WSPolicy.Elements.Policy);
2447static readonly string xmlId = string.Format(CultureInfo.InvariantCulture, "{0}:{1}", MetadataStrings.Xml.Prefix, MetadataStrings.Xml.Attributes.Id);
2448static readonly string wsuId = string.Format(CultureInfo.InvariantCulture, "{0}:{1}", MetadataStrings.Wsu.Prefix, MetadataStrings.Wsu.Attributes.Id);
2483return string.Format(CultureInfo.InvariantCulture, "{0}/{1}/[@{2}='{3}']", xPath, wspPolicy, idAttrib, key);
System\ServiceModel\Security\SecurityTimestamp.cs (9)
146CultureInfo.InvariantCulture,
165throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.TimeStampHasCreationAheadOfExpiry, this.CreationTimeUtc.ToString(DefaultFormat, CultureInfo.CurrentCulture), this.ExpiryTimeUtc.ToString(DefaultFormat, CultureInfo.CurrentCulture))));
177throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.TimeStampHasExpiryTimeInPast, this.ExpiryTimeUtc.ToString(DefaultFormat, CultureInfo.CurrentCulture), now.ToString(DefaultFormat, CultureInfo.CurrentCulture), allowedClockSkew)));
183throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.TimeStampHasCreationTimeInFuture, this.CreationTimeUtc.ToString(DefaultFormat, CultureInfo.CurrentCulture), now.ToString(DefaultFormat, CultureInfo.CurrentCulture), allowedClockSkew)));
189throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.TimeStampWasCreatedTooLongAgo, this.CreationTimeUtc.ToString(DefaultFormat, CultureInfo.CurrentCulture), now.ToString(DefaultFormat, CultureInfo.CurrentCulture), timeToLive, allowedClockSkew)));
System\ServiceModel\Security\SecurityUtils.cs (9)
445identity = EndpointIdentity.CreateSpnIdentity(String.Format(CultureInfo.InvariantCulture, "host/{0}", DnsCache.MachineName));
745spn = String.Format(CultureInfo.InvariantCulture, "host/{0}", (string)identity.IdentityClaim.Resource);
763return string.Format(CultureInfo.InvariantCulture, "host/{0}", target.Uri.DnsSafeHost);
1311reason = new FaultReason(SR.GetString(SR.BadContextTokenOrActionFaultReason, action), CultureInfo.CurrentCulture);
1315reason = new FaultReason(SR.GetString(SR.BadContextTokenFaultReason), CultureInfo.CurrentCulture);
1371reason = new FaultReason(SR.GetString(SR.FailedAuthenticationFaultReason), CultureInfo.CurrentCulture);
1376reason = new FaultReason(SR.GetString(SR.InvalidSecurityTokenFaultReason), CultureInfo.CurrentCulture);
1386reason = new FaultReason(SR.GetString(SR.InvalidSecurityFaultReason), CultureInfo.CurrentCulture);
2421this.val = this.prefix + this.id.ToString(CultureInfo.InvariantCulture);
System\ServiceModel\Security\Tokens\IssuedSecurityTokenParameters.cs (16)
23static readonly string wsidPPIClaim = String.Format(CultureInfo.InvariantCulture, "{0}/claims/privatepersonalidentifier", wsidNamespace);
920sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "TokenType: {0}", this.tokenType == null ? "null" : this.tokenType));
921sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "KeyType: {0}", this.keyType.ToString()));
922sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "KeySize: {0}", this.keySize.ToString(CultureInfo.InvariantCulture)));
923sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "IssuerAddress: {0}", this.issuerAddress == null ? "null" : this.issuerAddress.ToString()));
924sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "IssuerMetadataAddress: {0}", this.issuerMetadataAddress == null ? "null" : this.issuerMetadataAddress.ToString()));
925sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "DefaultMessgeSecurityVersion: {0}", this.defaultMessageSecurityVersion == null ? "null" : this.defaultMessageSecurityVersion.ToString()));
926sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "UseStrTransform: {0}", this.useStrTransform.ToString()));
930sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "IssuerBinding: null"));
934sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "IssuerBinding:"));
938sb.AppendLine(String.Format(CultureInfo.InvariantCulture, " BindingElement[{0}]:", i.ToString(CultureInfo.InvariantCulture)));
945sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "ClaimTypeRequirements: none"));
949sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "ClaimTypeRequirements:"));
952sb.AppendLine(String.Format(CultureInfo.InvariantCulture, " {0}, optional={1}", this.claimTypeRequirements[i].ClaimType, this.claimTypeRequirements[i].IsOptional));
Configuration\HttpCapabilitiesBase.cs (42)
465_majorversion = int.Parse(this["majorversion"], CultureInfo.InvariantCulture);
837_gatewayMajorVersion = Convert.ToInt32(this["gatewayMajorVersion"], CultureInfo.InvariantCulture);
929screenPixelsWidthToUse = Convert.ToInt32(this["screenPixelsWidth"], CultureInfo.InvariantCulture);
930characterWidthToUse = Convert.ToInt32(this["characterWidth"], CultureInfo.InvariantCulture);
933screenPixelsWidthToUse = Convert.ToInt32(this["screenPixelsWidth"], CultureInfo.InvariantCulture);
934characterWidthToUse = Convert.ToInt32(this["defaultCharacterWidth"], CultureInfo.InvariantCulture);
937screenPixelsWidthToUse = Convert.ToInt32(this["defaultScreenPixelsWidth"], CultureInfo.InvariantCulture);
938characterWidthToUse = Convert.ToInt32(this["characterWidth"], CultureInfo.InvariantCulture);
941screenPixelsWidthToUse = Convert.ToInt32(this["defaultScreenCharactersWidth"], CultureInfo.InvariantCulture);
948_screenCharactersWidth = Convert.ToInt32(this["screenCharactersWidth"], CultureInfo.InvariantCulture);
967screenPixelHeightToUse = Convert.ToInt32(this["screenPixelsHeight"], CultureInfo.InvariantCulture);
968characterHeightToUse = Convert.ToInt32(this["characterHeight"], CultureInfo.InvariantCulture);
971screenPixelHeightToUse = Convert.ToInt32(this["screenPixelsHeight"], CultureInfo.InvariantCulture);
972characterHeightToUse = Convert.ToInt32(this["defaultCharacterHeight"], CultureInfo.InvariantCulture);
975screenPixelHeightToUse = Convert.ToInt32(this["defaultScreenPixelsHeight"], CultureInfo.InvariantCulture);
976characterHeightToUse = Convert.ToInt32(this["characterHeight"], CultureInfo.InvariantCulture);
979screenPixelHeightToUse = Convert.ToInt32(this["defaultScreenCharactersHeight"], CultureInfo.InvariantCulture);
986_screenCharactersHeight = Convert.ToInt32(this["screenCharactersHeight"], CultureInfo.InvariantCulture);
1005screenCharactersWidthToUse = Convert.ToInt32(this["screenCharactersWidth"], CultureInfo.InvariantCulture);
1006characterWidthToUse = Convert.ToInt32(this["characterWidth"], CultureInfo.InvariantCulture);
1009screenCharactersWidthToUse = Convert.ToInt32(this["screenCharactersWidth"], CultureInfo.InvariantCulture);
1010characterWidthToUse = Convert.ToInt32(this["defaultCharacterWidth"], CultureInfo.InvariantCulture);
1013screenCharactersWidthToUse = Convert.ToInt32(this["defaultScreenCharactersWidth"], CultureInfo.InvariantCulture);
1014characterWidthToUse = Convert.ToInt32(this["characterWidth"], CultureInfo.InvariantCulture);
1017screenCharactersWidthToUse = Convert.ToInt32(this["defaultScreenPixelsWidth"], CultureInfo.InvariantCulture);
1024_screenPixelsWidth = Convert.ToInt32(this["screenPixelsWidth"], CultureInfo.InvariantCulture);
1041screenCharactersHeightToUse = Convert.ToInt32(this["screenCharactersHeight"], CultureInfo.InvariantCulture);
1042characterHeightToUse = Convert.ToInt32(this["characterHeight"], CultureInfo.InvariantCulture);
1045screenCharactersHeightToUse = Convert.ToInt32(this["screenCharactersHeight"], CultureInfo.InvariantCulture);
1046characterHeightToUse = Convert.ToInt32(this["defaultCharacterHeight"], CultureInfo.InvariantCulture);
1049screenCharactersHeightToUse = Convert.ToInt32(this["defaultScreenCharactersHeight"], CultureInfo.InvariantCulture);
1050characterHeightToUse = Convert.ToInt32(this["characterHeight"], CultureInfo.InvariantCulture);
1053screenCharactersHeightToUse = Convert.ToInt32(this["defaultScreenPixelsHeight"], CultureInfo.InvariantCulture);
1060_screenPixelsHeight = Convert.ToInt32(this["screenPixelsHeight"], CultureInfo.InvariantCulture);
1072_screenBitDepth = Convert.ToInt32(this["screenBitDepth"], CultureInfo.InvariantCulture);
1088_isColor = Convert.ToBoolean(this["isColor"], CultureInfo.InvariantCulture);
1111_numberOfSoftkeys = Convert.ToInt32(this["numberOfSoftkeys"], CultureInfo.InvariantCulture);
1122_maximumSoftkeyLabelLength = Convert.ToInt32(this["maximumSoftkeyLabelLength"], CultureInfo.InvariantCulture);
1630_maximumRenderedPageSize = Convert.ToInt32(this["maximumRenderedPageSize"], CultureInfo.InvariantCulture);
1711_defaultSubmitButtonLimit = s != null ? Convert.ToInt32(this["defaultSubmitButtonLimit"], CultureInfo.InvariantCulture) : 1;
1741_maximumHrefLength = Convert.ToInt32(this["maximumHrefLength"], CultureInfo.InvariantCulture);
1774_browsers.Add(browserName.ToLower(CultureInfo.InvariantCulture));
ErrorFormatter.cs (11)
248StringWriter stringWriter = new StringWriter(CultureInfo.CurrentCulture);
310errorContent.Append(String.Format(CultureInfo.CurrentCulture, errorBeginTemplate, errorHeader, ErrorTitle));
456sb.Append(String.Format(CultureInfo.InvariantCulture, startExpandableBlock, "additionalConfigurationErrors",
744return CultureInfo.CurrentUICulture.TextInfo.IsRightToLeft;
1033sb.Append(" (0x" + (((ExternalException)e).ErrorCode).ToString("x", CultureInfo.CurrentCulture) + ")");
1503String linestr = i.ToString("G", CultureInfo.CurrentCulture);
1641CultureInfo.CurrentCulture));
1747sb.Append(String.Format(CultureInfo.CurrentCulture, startExpandableBlock, "compilerOutputDiv",
1764sb.Append(String.Format(CultureInfo.CurrentCulture, startExpandableBlock, "dynamicCodeDiv",
1771string number = currentLine.ToString("G", CultureInfo.CurrentCulture);
1931sb.Append(String.Format(CultureInfo.InvariantCulture, startExpandableBlock, "additionalConfigErrorInfo",
Management\WebEvents.cs (32)
241formatter.AppendLine(WebBaseEvent.FormatResourceStringWithCache(SR.Webevent_event_code, EventCode.ToString(CultureInfo.InstalledUICulture)));
243formatter.AppendLine(WebBaseEvent.FormatResourceStringWithCache(SR.Webevent_event_time, EventTime.ToString(CultureInfo.InstalledUICulture)));
244formatter.AppendLine(WebBaseEvent.FormatResourceStringWithCache(SR.Webevent_event_time_Utc, EventTimeUtc.ToString(CultureInfo.InstalledUICulture)));
245formatter.AppendLine(WebBaseEvent.FormatResourceStringWithCache(SR.Webevent_event_id, EventID.ToString("N", CultureInfo.InstalledUICulture)));
246formatter.AppendLine(WebBaseEvent.FormatResourceStringWithCache(SR.Webevent_event_sequence, EventSequence.ToString(CultureInfo.InstalledUICulture)));
247formatter.AppendLine(WebBaseEvent.FormatResourceStringWithCache(SR.Webevent_event_occurrence, EventOccurrence.ToString(CultureInfo.InstalledUICulture)));
248formatter.AppendLine(WebBaseEvent.FormatResourceStringWithCache(SR.Webevent_event_detail_code, EventDetailCode.ToString(CultureInfo.InstalledUICulture)));
331fields.Add(new WebEventFieldData("EventCode", EventCode.ToString(CultureInfo.InstalledUICulture), WebEventFieldType.Int));
332fields.Add(new WebEventFieldData("EventDetailCode", EventDetailCode.ToString(CultureInfo.InstalledUICulture), WebEventFieldType.Int));
333fields.Add(new WebEventFieldData("SequenceNumber", EventSequence.ToString(CultureInfo.InstalledUICulture), WebEventFieldType.Long));
334fields.Add(new WebEventFieldData("Occurrence", EventOccurrence.ToString(CultureInfo.InstalledUICulture), WebEventFieldType.Long));
481eventRaised.EventCode.ToString(CultureInfo.CurrentCulture),
482WebEventCodes.WebExtendedBase.ToString(CultureInfo.CurrentCulture)));
535eventRaised.EventCode.ToString(CultureInfo.InstalledUICulture),
536eventRaised.EventDetailCode.ToString(CultureInfo.InstalledUICulture),
900return SR.Resources.GetString(key, CultureInfo.InstalledUICulture);
913s = SR.Resources.GetString(key, CultureInfo.InstalledUICulture);
1114fields.Add(new WebEventFieldData("ProcessID", ProcessInformation.ProcessID.ToString(CultureInfo.InstalledUICulture), WebEventFieldType.Int));
1354formatter.AppendLine(WebBaseEvent.FormatResourceStringWithCache(SR.Webevent_event_inner_exception_information, level.ToString(CultureInfo.InstalledUICulture)));
1462fields.Add(new WebEventFieldData("ThreadID", ThreadInformation.ThreadID.ToString(CultureInfo.InstalledUICulture), WebEventFieldType.Int));
1561fields.Add(new WebEventFieldData("ThreadID", ThreadInformation.ThreadID.ToString(CultureInfo.InstalledUICulture), WebEventFieldType.Int));
1860formatter.AppendLine(WebBaseEvent.FormatResourceStringWithCache(SR.Webevent_event_process_id, ProcessID.ToString(CultureInfo.InstalledUICulture)));
2123formatter.AppendLine(WebBaseEvent.FormatResourceStringWithCache(SR.Webevent_event_process_start_time, ProcessStartTime.ToString(CultureInfo.InstalledUICulture)));
2124formatter.AppendLine(WebBaseEvent.FormatResourceStringWithCache(SR.Webevent_event_thread_count, ThreadCount.ToString(CultureInfo.InstalledUICulture)));
2125formatter.AppendLine(WebBaseEvent.FormatResourceStringWithCache(SR.Webevent_event_working_set, WorkingSet.ToString(CultureInfo.InstalledUICulture)));
2126formatter.AppendLine(WebBaseEvent.FormatResourceStringWithCache(SR.Webevent_event_peak_working_set, PeakWorkingSet.ToString(CultureInfo.InstalledUICulture)));
2127formatter.AppendLine(WebBaseEvent.FormatResourceStringWithCache(SR.Webevent_event_managed_heap_size, ManagedHeapSize.ToString(CultureInfo.InstalledUICulture)));
2129formatter.AppendLine(WebBaseEvent.FormatResourceStringWithCache(SR.Webevent_event_application_domain_count, AppDomainCount.ToString(CultureInfo.InstalledUICulture)));
2130formatter.AppendLine(WebBaseEvent.FormatResourceStringWithCache(SR.Webevent_event_requests_executing, RequestsExecuting.ToString(CultureInfo.InstalledUICulture)));
2131formatter.AppendLine(WebBaseEvent.FormatResourceStringWithCache(SR.Webevent_event_request_queued, RequestsQueued.ToString(CultureInfo.InstalledUICulture)));
2132formatter.AppendLine(WebBaseEvent.FormatResourceStringWithCache(SR.Webevent_event_request_rejected, RequestsRejected.ToString(CultureInfo.InstalledUICulture)));
2168formatter.AppendLine(WebBaseEvent.FormatResourceStringWithCache(SR.Webevent_event_thread_id, ThreadID.ToString(CultureInfo.InstalledUICulture)));
ModelBinding\Error.cs (8)
9string errorString = String.Format(CultureInfo.CurrentCulture, SR.GetString(SR.BindingBehavior_ValueNotFound),
15string errorString = String.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Common_TypeMustImplementInterface),
21string errorString = String.Format(CultureInfo.CurrentCulture, SR.GetString(SR.GenericModelBinderProvider_ParameterMustSpecifyOpenGenericType),
27string errorString = String.Format(CultureInfo.CurrentCulture, SR.GetString(SR.GenericModelBinderProvider_TypeArgumentCountMismatch),
33string errorString = String.Format(CultureInfo.CurrentCulture, SR.GetString(SR.ModelBinderProviderCollection_BinderForTypeNotFound),
40string errorString = String.Format(CultureInfo.CurrentCulture, SR.GetString(SR.ModelBinderUtil_ModelCannotBeNull),
47string errorString = String.Format(CultureInfo.CurrentCulture, SR.GetString(SR.ModelBinderUtil_ModelInstanceIsWrong),
59string errorString = String.Format(CultureInfo.CurrentCulture, SR.GetString(SR.ModelBinderUtil_ModelTypeIsWrong),
ModelBinding\ValueProviderResult.cs (11)
10private static readonly CultureInfo _staticCulture = CultureInfo.InvariantCulture;
11private CultureInfo _instanceCulture;
17public ValueProviderResult(object rawValue, string attemptedValue, CultureInfo culture) {
28public CultureInfo Culture {
45private static object ConvertSimpleType(CultureInfo culture, object value, Type destinationType) {
73string message = String.Format(CultureInfo.CurrentCulture, SR.GetString(SR.ValueProviderResult_NoConverterExists),
85string message = String.Format(CultureInfo.CurrentCulture, SR.GetString(SR.ValueProviderResult_ConversionThrew),
95public virtual object ConvertTo(Type type, CultureInfo culture) {
100CultureInfo cultureToUse = culture ?? Culture;
104private static object UnwrapPossibleArrayType(CultureInfo culture, object value, Type destinationType) {
State\OutOfProcStateClientManager.cs (8)
212port = UInt16.Parse(ipv6RegexMatch.Groups["port"].Value, CultureInfo.InvariantCulture);
223port = UInt16.Parse(parts[1], CultureInfo.InvariantCulture);
230s_configPartitionResolverType, server, port.ToString(CultureInfo.InvariantCulture)), hr);
395"0x" + hr.ToString("X08", CultureInfo.InvariantCulture),
396cb.ToString(CultureInfo.InvariantCulture)),
406s_configPartitionResolverType, _partitionInfo.Server, _partitionInfo.Port.ToString(CultureInfo.InvariantCulture)));
421s_configPartitionResolverType, _partitionInfo.Server, _partitionInfo.Port.ToString(CultureInfo.InvariantCulture)));
684return String.Format(CultureInfo.InvariantCulture, formatString, Server, Port);
UI\ControlBuilder.cs (4)
103Debug.Assert(typeof(INamingContainer).IsAssignableFrom(ctrlType), String.Format(CultureInfo.InvariantCulture, "NamingContainerBuilder.Control type {0} is not an INamingContainer", ctrlType.FullName));
121Debug.Assert(typeof(INamingContainer).IsAssignableFrom(ctrlType), String.Format(CultureInfo.InvariantCulture, "NamingContainerBuilder.Control type {0} is not an INamingContainer", ctrlType.FullName));
2441convertedValue = System.Convert.ToString(evalValue, CultureInfo.CurrentCulture);
2444convertedValue = PropertyConverter.ObjectFromString(entry.Type, memberInfo, System.Convert.ToString(evalValue, CultureInfo.CurrentCulture));
UI\ObjectConverter.cs (11)
53return Convert.ToInt32((string)value, CultureInfo.InvariantCulture);
56return Convert.ToBoolean((string)value, CultureInfo.InvariantCulture);
59 return Convert.ToDateTime((string)value, CultureInfo.InvariantCulture);
66 return Convert.ToDouble((string)value, CultureInfo.InvariantCulture);
69 return Convert.ToInt16((Int16)value, CultureInfo.InvariantCulture);
78return ((int)value).ToString(formatString, CultureInfo.InvariantCulture);
108return((DateTime)value).ToString(formatString, CultureInfo.InvariantCulture);
111return ((Decimal)value).ToString(formatString, CultureInfo.InvariantCulture);
114return ((Double)value).ToString(formatString, CultureInfo.InvariantCulture);
117return ((Single)value).ToString(formatString, CultureInfo.InvariantCulture);
120return ((Int16)value).ToString(formatString, CultureInfo.InvariantCulture);
UI\Page.cs (31)
255private CultureInfo _dynamicCulture;
256private CultureInfo _dynamicUICulture;
793_uniqueFilePathSuffix = String.Concat(UniqueFilePathSuffixID + "=", ticks.ToString("D6", CultureInfo.InvariantCulture));
1060int numViewStateFields = Convert.ToInt32(fieldCountStr, CultureInfo.InvariantCulture);
1070if (i > 0) key += i.ToString(CultureInfo.InvariantCulture);
2160&& UInt32.TryParse(identifier, NumberStyles.HexNumber, CultureInfo.InvariantCulture, out parsedIdentifier)
2231string value = viewStateChunks.Count.ToString(CultureInfo.InvariantCulture);
2249countString = count.ToString(CultureInfo.InvariantCulture);
2267ClientScript.RegisterHiddenField(ViewStateGeneratorFieldID, GetClientStateIdentifier().ToString("X8", CultureInfo.InvariantCulture));
2312ClientScript.RegisterHiddenField(_scrollPositionXID, _scrollPositionX.ToString(CultureInfo.InvariantCulture));
2313ClientScript.RegisterHiddenField(_scrollPositionYID, _scrollPositionY.ToString(CultureInfo.InvariantCulture));
2684appliedMasterPages.Add(_masterPageFile.VirtualPathString.ToLower(CultureInfo.InvariantCulture));
3848CultureInfo newCulture = null;
3851CultureInfo browserCulture = CultureFromUserLanguages(true);
3857CultureInfo browserCulture = CultureFromUserLanguages(true);
3880internal CultureInfo DynamicCulture {
3890CultureInfo newCulture = HttpServerUtility.CreateReadOnlyCultureInfo(value);
3898private CultureInfo CultureFromUserLanguages(bool specific) {
3918CultureInfo newUICulture = null;
3921CultureInfo browserCulture = CultureFromUserLanguages(false);
3927CultureInfo browserCulture = CultureFromUserLanguages(false);
3950internal CultureInfo DynamicUICulture {
4389void SetCultureWithAssert(Thread currentThread, CultureInfo currentCulture, CultureInfo currentUICulture) {
4393void SetCulture(Thread currentThread, CultureInfo currentCulture, CultureInfo currentUICulture) {
4410CultureInfo prevCulture = currentThread.CurrentCulture;
4411CultureInfo prevUICulture = currentThread.CurrentUICulture;
4509private void RestoreCultures(Thread currentThread, CultureInfo prevCulture, CultureInfo prevUICulture) {
5405Response.Write(validation.Length.ToString(CultureInfo.InvariantCulture));
UI\WebControls\basecomparevalidator.cs (19)
207value = Int32.Parse(text, CultureInfo.InvariantCulture);
213cleanInput = ConvertDouble(text, CultureInfo.InvariantCulture.NumberFormat);
220value = Double.Parse(cleanInput, CultureInfo.InvariantCulture);
232value = DateTime.Parse(text, CultureInfo.CurrentCulture);
245cleanInput = ConvertCurrency(text, CultureInfo.InvariantCulture.NumberFormat);
252value = Decimal.Parse(cleanInput, CultureInfo.InvariantCulture);
342day = Int32.Parse(m.Groups[6].Value, CultureInfo.InvariantCulture);
343month = Int32.Parse(m.Groups[5].Value, CultureInfo.InvariantCulture);
345year = Int32.Parse(m.Groups[2].Value, CultureInfo.InvariantCulture);
348year = GetFullYear(Int32.Parse(m.Groups[3].Value, CultureInfo.InvariantCulture));
363day = Int32.Parse(m.Groups[3].Value, CultureInfo.InvariantCulture);
364month = Int32.Parse(m.Groups[1].Value, CultureInfo.InvariantCulture);
367day = Int32.Parse(m.Groups[1].Value, CultureInfo.InvariantCulture);
368month = Int32.Parse(m.Groups[3].Value, CultureInfo.InvariantCulture);
371year = Int32.Parse(m.Groups[5].Value, CultureInfo.InvariantCulture);
373year = GetFullYear(Int32.Parse(m.Groups[6].Value, CultureInfo.InvariantCulture));
405compareResult = String.Compare((string)leftObject, (string) rightObject, false, CultureInfo.CurrentCulture);
465if (DateTime.TryParse(text, CultureInfo.CurrentCulture, DateTimeStyles.None, out date)) {
487return System.Convert.ToString(value, CultureInfo.CurrentCulture);
UI\WebControls\Calendar.cs (15)
1119string eventArgument = absoluteDay.ToString(CultureInfo.InvariantCulture);
1170int newDateDiff = Int32.Parse(eventArgument.Substring(NAVIGATE_MONTH_COMMAND.Length), CultureInfo.InvariantCulture);
1185int rangeValue = Int32.Parse(eventArgument.Substring(SELECT_RANGE_COMMAND.Length), CultureInfo.InvariantCulture);
1197int dayDiff = Int32.Parse(eventArgument, CultureInfo.InvariantCulture);
1385string monthSelectKey = SELECT_RANGE_COMMAND + ((startOffset * 100) + monthLength).ToString(CultureInfo.InvariantCulture);
1540string weekSelectKey = SELECT_RANGE_COMMAND + dayDiffParameter.ToString(CultureInfo.InvariantCulture);
1545selectWeekTitle = SR.GetString(SR.Calendar_SelectWeekTitle, weekOfMonth.ToString(CultureInfo.InvariantCulture));
1576dayNumberText = d.ToString("dd", CultureInfo.CurrentCulture);
1611dayTitle = d.ToString("m", CultureInfo.CurrentCulture);
1627dayContent.Text = GetCalendarButtonText(absoluteDay.ToString(CultureInfo.InvariantCulture),
1647RenderCalendarCell(writer, cellStyle, dayNumberText, dayTitle, daysSelectable, absoluteDay.ToString(CultureInfo.InvariantCulture));
1722string prevMonthKey = NAVIGATE_MONTH_COMMAND + (prevMonthDate.Subtract(baseDate)).Days.ToString(CultureInfo.InvariantCulture);
1748titleText = visibleDate.ToString("MMMM", CultureInfo.CurrentCulture);
1757titleText = visibleDate.ToString(titlePattern, CultureInfo.CurrentCulture);
1784string nextMonthKey = NAVIGATE_MONTH_COMMAND + (nextMonthDate.Subtract(baseDate)).Days.ToString(CultureInfo.InvariantCulture);
UI\WebControls\DetailsView.cs (7)
1491return "\"" + Convert.ToString(pageIndex, CultureInfo.InvariantCulture) + "|\"";
2251StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture);
2265return Convert.ToString(PageIndex, CultureInfo.InvariantCulture) + "|" + dataKeyString + "|" + stringWriter.ToString();
2420newItemIndex = Convert.ToInt32(itemIndexArg, CultureInfo.InvariantCulture) - 1;
2864int oldPageIndex = Int32.Parse(pageIndex, CultureInfo.InvariantCulture);
3184string startupScript = String.Format(CultureInfo.InvariantCulture, startupScriptFormat, clientReference, hiddenFieldID, doCallBackCall, PageIndex);
3352int pageNumber = Int32.Parse(arguments[0], CultureInfo.InvariantCulture);
UI\WebControls\GridView.cs (11)
2772StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture);
2786return Convert.ToString(PageIndex, CultureInfo.InvariantCulture) + "|" + Convert.ToString((int)SortDirection, CultureInfo.InvariantCulture) + "|" + sortExpressionString + "|" + dataKeysString + "|" + stringWriter.ToString();
2811return Convert.ToInt32(commandArgument, CultureInfo.InvariantCulture);
2819return Int32.TryParse(commandArgument, NumberStyles.Integer, CultureInfo.InvariantCulture, out rowIndex);
3011newPage = Convert.ToInt32(pageNumberArg, CultureInfo.InvariantCulture) - 1;
3509int oldPageIndex = Int32.Parse(pageIndex, CultureInfo.InvariantCulture);
3510SortDirection oldSortDirection = ((SortDirection)Int32.Parse(sortDirection, CultureInfo.InvariantCulture));
3735string startupScript = String.Format(CultureInfo.InvariantCulture, startupScriptFormat, clientReference, hiddenFieldID, doCallBackCall, PageIndex, sortExpressionSerialized, (int)SortDirection);
4133int pageNumber = Int32.Parse(arguments[0], CultureInfo.InvariantCulture);
4135int sortDirection = Int32.Parse(arguments[1], CultureInfo.InvariantCulture);
UI\WebControls\ObjectDataSourceView.cs (6)
498/// Indicates which <see cref='System.Globalization.CultureInfo'/> is used by ObjectDataSourceView
738throw new InvalidOperationException(SR.GetString(SR.ObjectDataSourceView_CannotConvertType, paramName, paramValueType.FullName, String.Format(CultureInfo.InvariantCulture, "Nullable<{0}>", destinationType.GetGenericArguments()[0].FullName)));
760value = converter.ConvertFromString(null, CultureInfo.CurrentCulture, s);
1425string formattedParamName = String.Format(CultureInfo.InvariantCulture, OldValuesParameterFormatString, param0Name);
1431formattedParamName = String.Format(CultureInfo.InvariantCulture, OldValuesParameterFormatString, param1Name);
1777parameterName = String.Format(CultureInfo.InvariantCulture, parameterNameFormatString, parameterName);
UI\WebControls\TreeNode.cs (11)
758string indexString = Index.ToString(CultureInfo.InvariantCulture);
818Index.ToString(CultureInfo.InvariantCulture) + "," +
826Index.ToString(CultureInfo.InvariantCulture) + "," +
911mergedStyle.NodeSpacing.ToString(CultureInfo.InvariantCulture));
926writer.AddStyleAttribute(HtmlTextWriterStyle.Width, _owner.NodeIndent.ToString(CultureInfo.InvariantCulture) + "px");
945writer.Write("<div style=\"width:" + _owner.NodeIndent.ToString(CultureInfo.InvariantCulture) + "px;height:1px\">");
1215String.Format(CultureInfo.CurrentCulture, imageToolTip, Text));
1219String.Format(CultureInfo.CurrentCulture, imageToolTip, Text));
1496writer.AddStyleAttribute(HtmlTextWriterStyle.Height, mergedStyle.NodeSpacing.ToString(CultureInfo.InvariantCulture));
1544writer.AddAttribute(HtmlTextWriterAttribute.Height, mergedStyle.ChildNodesPadding.ToString(CultureInfo.InvariantCulture));
1561writer.AddAttribute(HtmlTextWriterAttribute.Height, mergedStyle.ChildNodesPadding.ToString(CultureInfo.InvariantCulture));
UI\WebControls\TreeView.cs (11)
1494text = string.Format(CultureInfo.CurrentCulture, level.FormatString, objData);
2328return Int32.Parse(s.Substring(i + 1), CultureInfo.InvariantCulture);
3234int nodeIndex = Int32.Parse(nodeIndexString, CultureInfo.InvariantCulture);
3239int lastIndex = Int32.Parse(_callbackEventArgument.Substring(startIndex, endIndex - startIndex), CultureInfo.InvariantCulture);
3253int nodeTextLength = Int32.Parse(_callbackEventArgument.Substring(startIndex, endIndex - startIndex), CultureInfo.InvariantCulture);
3261int dataPathLength = Int32.Parse(_callbackEventArgument.Substring(startIndex, endIndex - startIndex), CultureInfo.InvariantCulture);
3300StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture);
3328result = lastIndex.ToString(CultureInfo.InvariantCulture) + "|" + expandState.ToString() + "|" + stringWriter.ToString();
3370int populateIndex = Int32.Parse(logParts[i], NumberStyles.Integer, CultureInfo.InvariantCulture);
3472public override object ConvertFrom(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value) {
3483public override object ConvertTo(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType) {
UI\WebParts\WebPartManager.cs (12)
1881displayTitle += " [" + count.ToString(CultureInfo.CurrentCulture) + "]";
1928return DynamicConnectionIDPrefix + guidHash.ToString(CultureInfo.InvariantCulture);
1941string id = DynamicWebPartIDPrefix + guidHash.ToString(CultureInfo.InvariantCulture);
2323ConnectionPointKey connectionPointKey = new ConnectionPointKey(type, CultureInfo.CurrentCulture, CultureInfo.CurrentUICulture);
3874zoneCode.AppendFormat(CultureInfo.InvariantCulture, ZoneScript, zone.ClientID, zone.UniqueID, isVertical,
3893string startupScript = String.Format(CultureInfo.InvariantCulture,
3992string dragOverlayElementHtml = String.Format(CultureInfo.InvariantCulture, DragOverlayElementHtmlTemplate, ClientID);
4514private CultureInfo _culture;
4515private CultureInfo _uiCulture;
4517public ConnectionPointKey(Type type, CultureInfo culture, CultureInfo uiCulture) {
Util\HashCodeCombiner.cs (10)
110Debug.Trace("HashCodeCombiner", "Ticks: " + dt.Ticks.ToString("x", CultureInfo.InvariantCulture));
111Debug.Trace("HashCodeCombiner", "Hashcode: " + dt.GetHashCode().ToString("x", CultureInfo.InvariantCulture));
116Debug.Trace("HashCodeCombiner", "file size: " + fileSize.ToString("x", CultureInfo.InvariantCulture));
117Debug.Trace("HashCodeCombiner", "Hashcode: " + fileSize.GetHashCode().ToString("x", CultureInfo.InvariantCulture));
123Debug.Trace("HashCodeCombiner", "FileMajorPart: " + fileVersionInfo.FileMajorPart.GetHashCode().ToString("x", CultureInfo.InvariantCulture));
124Debug.Trace("HashCodeCombiner", "FileMinorPart: " + fileVersionInfo.FileMinorPart.GetHashCode().ToString("x", CultureInfo.InvariantCulture));
125Debug.Trace("HashCodeCombiner", "FileBuildPart: " + fileVersionInfo.FileBuildPart.GetHashCode().ToString("x", CultureInfo.InvariantCulture));
126Debug.Trace("HashCodeCombiner", "FilePrivatePart: " + fileVersionInfo.FilePrivatePart.GetHashCode().ToString("x", CultureInfo.InvariantCulture));
145sbFileContentHashBytes.Append(fileContentHashBytes[index].ToString("X2", CultureInfo.InvariantCulture));
251return _combinedHash.ToString("x", CultureInfo.InvariantCulture);
Util\ReadWriteSpinLock.cs (8)
102Debug.Trace("Spinlock", "AcquireReaderLock: _bits=" + _bits.ToString("x8", CultureInfo.InvariantCulture)
103+ " _id= " + _id.ToString("x8", CultureInfo.InvariantCulture));
117Debug.Trace("Spinlock", "AcquireWriterLock: _bits=" + _bits.ToString("x8", CultureInfo.InvariantCulture)
118+ " _id= " + _id.ToString("x8", CultureInfo.InvariantCulture));
131Debug.Trace("Spinlock", "ReleaseReaderLock: _bits=" + _bits.ToString("x8", CultureInfo.InvariantCulture)
132+ " _id= " + _id.ToString("x8", CultureInfo.InvariantCulture));
177Debug.Trace("Spinlock", "ReleaseWriterLock: _bits=" + _bits.ToString("x8", CultureInfo.InvariantCulture)
178+ " _id= " + _id.ToString("x8", CultureInfo.InvariantCulture));
Util\SmtpMail.cs (4)
88return type.InvokeMember(methodName, BindingFlags.InvokeMethod, null, obj, args, CultureInfo.InvariantCulture);
112return type.InvokeMember(propName, BindingFlags.GetProperty, null, obj,new Object[0], CultureInfo.InvariantCulture);
131type.InvokeMember(propName, BindingFlags.SetProperty, null, obj, new Object[1] { propValue }, CultureInfo.InvariantCulture);
150type.InvokeMember(propName, BindingFlags.SetProperty, null, obj,new Object[2] { propKey, propValue }, CultureInfo.InvariantCulture);