1652 references to Convert
mscorlib (328)
microsoft\win32\registrykey.cs (2)
1559int data = Convert.ToInt32(value, System.Globalization.CultureInfo.InvariantCulture); 1572long data = Convert.ToInt64(value, System.Globalization.CultureInfo.InvariantCulture);
system\boolean.cs (12)
247return Convert.ToSByte(m_value); 252return Convert.ToByte(m_value); 257return Convert.ToInt16(m_value); 262return Convert.ToUInt16(m_value); 267return Convert.ToInt32(m_value); 272return Convert.ToUInt32(m_value); 277return Convert.ToInt64(m_value); 282return Convert.ToUInt64(m_value); 287return Convert.ToSingle(m_value); 292return Convert.ToDouble(m_value); 297return Convert.ToDecimal(m_value); 307return Convert.DefaultToType((IConvertible)this, type, provider);
system\byte.cs (13)
190return Convert.ToBoolean(m_value); 195return Convert.ToChar(m_value); 200return Convert.ToSByte(m_value); 210return Convert.ToInt16(m_value); 215return Convert.ToUInt16(m_value); 220return Convert.ToInt32(m_value); 225return Convert.ToUInt32(m_value); 230return Convert.ToInt64(m_value); 235return Convert.ToUInt64(m_value); 240return Convert.ToSingle(m_value); 245return Convert.ToDouble(m_value); 250return Convert.ToDecimal(m_value); 260return Convert.DefaultToType((IConvertible)this, type, provider);
system\char.cs (9)
445return Convert.ToSByte(m_value); 450return Convert.ToByte(m_value); 455return Convert.ToInt16(m_value); 460return Convert.ToUInt16(m_value); 465return Convert.ToInt32(m_value); 470return Convert.ToUInt32(m_value); 475return Convert.ToInt64(m_value); 480return Convert.ToUInt64(m_value); 505return Convert.DefaultToType((IConvertible)this, type, provider);
system\datetime.cs (3)
388serializedTicks = Convert.ToInt64(enumerator.Value, CultureInfo.InvariantCulture); 392serializedDateData = Convert.ToUInt64(enumerator.Value, CultureInfo.InvariantCulture); 1650return Convert.DefaultToType((IConvertible)this, type, provider);
system\dbnull.cs (1)
119return Convert.DefaultToType((IConvertible)this, type, provider);
system\decimal.cs (12)
1202return Convert.ToBoolean(this); 1213return Convert.ToSByte(this); 1218return Convert.ToByte(this); 1223return Convert.ToInt16(this); 1228return Convert.ToUInt16(this); 1233return Convert.ToInt32(this); 1238return Convert.ToUInt32(this); 1243return Convert.ToInt64(this); 1248return Convert.ToUInt64(this); 1253return Convert.ToSingle(this); 1258return Convert.ToDouble(this); 1273return Convert.DefaultToType((IConvertible)this, type, provider);
system\double.cs (12)
304return Convert.ToBoolean(m_value); 314return Convert.ToSByte(m_value); 319return Convert.ToByte(m_value); 324return Convert.ToInt16(m_value); 329return Convert.ToUInt16(m_value); 334return Convert.ToInt32(m_value); 339return Convert.ToUInt32(m_value); 344return Convert.ToInt64(m_value); 349return Convert.ToUInt64(m_value); 354return Convert.ToSingle(m_value); 364return Convert.ToDecimal(m_value); 374return Convert.DefaultToType((IConvertible)this, type, provider);
system\enum.cs (21)
52TypeCode typeCode = Convert.GetTypeCode(value); 73Byte result = Convert.ToByte((bool)value); 213TypeCode typeCode = Convert.GetTypeCode(value); 222result = (UInt64)Convert.ToInt64(value, CultureInfo.InvariantCulture); 231result = Convert.ToUInt64(value, CultureInfo.InvariantCulture); 402temp = Convert.ChangeType(value, underlyingType, CultureInfo.InvariantCulture); 546TypeCode typeCode = Convert.GetTypeCode(value); 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); 1038return Convert.DefaultToType((IConvertible)this, type, provider);
system\guid.cs (1)
570uint number = (uint)Convert.ToInt32(guidString.Substring(numStart, numLen),16);
system\int16.cs (13)
203return Convert.ToBoolean(m_value); 208return Convert.ToChar(m_value); 213return Convert.ToSByte(m_value); 218return Convert.ToByte(m_value); 228return Convert.ToUInt16(m_value); 233return Convert.ToInt32(m_value); 238return Convert.ToUInt32(m_value); 243return Convert.ToInt64(m_value); 248return Convert.ToUInt64(m_value); 253return Convert.ToSingle(m_value); 258return Convert.ToDouble(m_value); 263return Convert.ToDecimal(m_value); 273return Convert.DefaultToType((IConvertible)this, type, provider);
system\int32.cs (13)
176return Convert.ToBoolean(m_value); 181return Convert.ToChar(m_value); 186return Convert.ToSByte(m_value); 191return Convert.ToByte(m_value); 196return Convert.ToInt16(m_value); 201return Convert.ToUInt16(m_value); 211return Convert.ToUInt32(m_value); 216return Convert.ToInt64(m_value); 221return Convert.ToUInt64(m_value); 226return Convert.ToSingle(m_value); 231return Convert.ToDouble(m_value); 236return Convert.ToDecimal(m_value); 246return Convert.DefaultToType((IConvertible)this, type, provider);
system\int64.cs (13)
155return Convert.ToBoolean(m_value); 160return Convert.ToChar(m_value); 165return Convert.ToSByte(m_value); 170return Convert.ToByte(m_value); 175return Convert.ToInt16(m_value); 180return Convert.ToUInt16(m_value); 185return Convert.ToInt32(m_value); 190return Convert.ToUInt32(m_value); 200return Convert.ToUInt64(m_value); 205return Convert.ToSingle(m_value); 210return Convert.ToDouble(m_value); 215return Convert.ToDecimal(m_value); 225return Convert.DefaultToType((IConvertible)this, type, provider);
system\reflection\emit\customattributebuilder.cs (1)
464writer.Write(Convert.ToUInt16((char)value));
system\rttype.cs (4)
3626if (this == Convert.ConvertTypes[(int)TypeCode.Decimal]) 3628else if (this == Convert.ConvertTypes[(int)TypeCode.DateTime]) 3636if (this == Convert.ConvertTypes[(int)TypeCode.DBNull]) 3638else if (this == Convert.ConvertTypes[(int)TypeCode.String])
system\runtime\interopservices\windowsruntime\clripropertyvalueimpl.cs (1)
431return (T)Convert.ChangeType(value, typeof(T), System.Globalization.CultureInfo.InvariantCulture);
system\runtime\remoting\identity.cs (1)
477String random = System.Convert.ToBase64String(GetRandomBytes());
system\runtime\remoting\message.cs (4)
605ret = Convert.ChangeType(value, pt, CultureInfo.InvariantCulture); 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);
system\runtime\remoting\remotingconfigparser.cs (3)
821Convert.ToBoolean((String)entry.Value, CultureInfo.InvariantCulture); 983configData.UrlObjRefMode = Convert.ToBoolean(entry.Value, CultureInfo.InvariantCulture); 1483delayLoad = Convert.ToBoolean((String)entry.Value, CultureInfo.InvariantCulture);
system\runtime\remoting\soapinteroptypes.cs (3)
378Convert.ToInt64(Double.Parse(second+"."+fraction, CultureInfo.InvariantCulture)*(Double)TimeSpan.TicksPerSecond) 1033return SoapType.LineFeedsBin64(Convert.ToBase64String(_value)); 1044bA = Convert.FromBase64String(SoapType.FilterBin64(value));
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\binaryconverter.cs (1)
482var = Convert.ChangeType(value, ToTypeCode(code), CultureInfo.InvariantCulture);
system\runtime\serialization\formatters\binary\binaryformatterwriter.cs (13)
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\binary\binaryobjectreader.cs (2)
679pr.PRnewObj = Convert.FromBase64String(pr.PRvalue); 1150objectPr.PRobjectInfo.AddValue(pr.PRname, Convert.FromBase64String(pr.PRvalue), ref objectPr.PRsi, ref objectPr.PRmemberData);
system\sbyte.cs (12)
211return Convert.ToBoolean(m_value); 216return Convert.ToChar(m_value); 226return Convert.ToByte(m_value); 231return Convert.ToInt16(m_value); 236return Convert.ToUInt16(m_value); 246return Convert.ToUInt32(m_value); 251return Convert.ToInt64(m_value); 256return Convert.ToUInt64(m_value); 261return Convert.ToSingle(m_value); 266return Convert.ToDouble(m_value); 271return Convert.ToDecimal(m_value); 281return Convert.DefaultToType((IConvertible)this, type, provider);
system\security\claims\ClaimsIdentity.cs (6)
1010info.AddValue(ActorKey, Convert.ToBase64String(ms.GetBuffer(), 0, (int)ms.Length)); 1027info.AddValue(BootstrapContextKey, Convert.ToBase64String(ms.GetBuffer(), 0, (int)ms.Length)); 1037using (MemoryStream stream = new MemoryStream(Convert.FromBase64String(serializedClaims))) 1059return Convert.ToBase64String(ms.GetBuffer(), 0, (int)ms.Length); 1333using (MemoryStream stream = new MemoryStream(Convert.FromBase64String(info.GetString(ActorKey)))) 1344using (MemoryStream ms = new MemoryStream(Convert.FromBase64String(info.GetString(BootstrapContextKey))))
system\security\claims\ClaimsPrincipal.cs (5)
393using (MemoryStream stream = new MemoryStream(Convert.FromBase64String(identities))) 401using (MemoryStream claimsIdentityStream = new MemoryStream(Convert.FromBase64String(listOfIdentities[i + 1]))) 452identities.Add(Convert.ToBase64String(claimsIdentityStream.GetBuffer(), 0, (int)claimsIdentityStream.Length)); 461identities.Add(Convert.ToBase64String(claimsIdentityStream.GetBuffer(), 0, (int)claimsIdentityStream.Length)); 469return Convert.ToBase64String(ms.GetBuffer(), 0, (int)ms.Length);
system\security\cryptography\base64transforms.cs (4)
58Convert.ToBase64CharArray(inputBuffer, inputOffset, 3, temp, 0); 81Convert.ToBase64CharArray(inputBuffer, inputOffset, inputCount, temp, 0); 182byte[] tempBytes = Convert.FromBase64CharArray(tempChar, 0, 4*numBlocks); 225byte[] tempBytes = Convert.FromBase64CharArray(tempChar, 0, 4*numBlocks);
system\security\cryptography\dsa.cs (16)
168dsaParams.P = Convert.FromBase64String(Utils.DiscardWhiteSpaces(pString)); 175dsaParams.Q = Convert.FromBase64String(Utils.DiscardWhiteSpaces(qString)); 182dsaParams.G = Convert.FromBase64String(Utils.DiscardWhiteSpaces(gString)); 189dsaParams.Y = Convert.FromBase64String(Utils.DiscardWhiteSpaces(yString)); 193if (jString != null) dsaParams.J = Convert.FromBase64String(Utils.DiscardWhiteSpaces(jString)); 197if (xString != null) dsaParams.X = Convert.FromBase64String(Utils.DiscardWhiteSpaces(xString)); 203dsaParams.Seed = Convert.FromBase64String(Utils.DiscardWhiteSpaces(seedString)); 204dsaParams.Counter = Utils.ConvertByteArrayToInt(Convert.FromBase64String(Utils.DiscardWhiteSpaces(pgenCounterString))); 248sb.Append("<P>"+Convert.ToBase64String(dsaParams.P)+"</P>"); 249sb.Append("<Q>"+Convert.ToBase64String(dsaParams.Q)+"</Q>"); 250sb.Append("<G>"+Convert.ToBase64String(dsaParams.G)+"</G>"); 251sb.Append("<Y>"+Convert.ToBase64String(dsaParams.Y)+"</Y>"); 254sb.Append("<J>"+Convert.ToBase64String(dsaParams.J)+"</J>"); 257sb.Append("<Seed>"+Convert.ToBase64String(dsaParams.Seed)+"</Seed>"); 258sb.Append("<PgenCounter>"+Convert.ToBase64String(Utils.ConvertIntToByteArray(dsaParams.Counter))+"</PgenCounter>"); 263sb.Append("<X>"+Convert.ToBase64String(dsaParams.X)+"</X>");
system\security\cryptography\rsa.cs (16)
277rsaParams.Modulus = Convert.FromBase64String(Utils.DiscardWhiteSpaces(modulusString)); 284rsaParams.Exponent = Convert.FromBase64String(Utils.DiscardWhiteSpaces(exponentString)); 288if (pString != null) rsaParams.P = Convert.FromBase64String(Utils.DiscardWhiteSpaces(pString)); 292if (qString != null) rsaParams.Q = Convert.FromBase64String(Utils.DiscardWhiteSpaces(qString)); 296if (dpString != null) rsaParams.DP = Convert.FromBase64String(Utils.DiscardWhiteSpaces(dpString)); 300if (dqString != null) rsaParams.DQ = Convert.FromBase64String(Utils.DiscardWhiteSpaces(dqString)); 304if (inverseQString != null) rsaParams.InverseQ = Convert.FromBase64String(Utils.DiscardWhiteSpaces(inverseQString)); 308if (dString != null) rsaParams.D = Convert.FromBase64String(Utils.DiscardWhiteSpaces(dString)); 335sb.Append("<Modulus>"+Convert.ToBase64String(rsaParams.Modulus)+"</Modulus>"); 337sb.Append("<Exponent>"+Convert.ToBase64String(rsaParams.Exponent)+"</Exponent>"); 340sb.Append("<P>"+Convert.ToBase64String(rsaParams.P)+"</P>"); 341sb.Append("<Q>"+Convert.ToBase64String(rsaParams.Q)+"</Q>"); 342sb.Append("<DP>"+Convert.ToBase64String(rsaParams.DP)+"</DP>"); 343sb.Append("<DQ>"+Convert.ToBase64String(rsaParams.DQ)+"</DQ>"); 344sb.Append("<InverseQ>"+Convert.ToBase64String(rsaParams.InverseQ)+"</InverseQ>"); 345sb.Append("<D>"+Convert.ToBase64String(rsaParams.D)+"</D>");
system\security\permissions\keycontainerpermission.cs (2)
621providerType = Convert.ToInt32(strAttrValue, null); 625keySpec = Convert.ToInt32(strAttrValue, null);
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\single.cs (12)
274return Convert.ToBoolean(m_value); 284return Convert.ToSByte(m_value); 289return Convert.ToByte(m_value); 294return Convert.ToInt16(m_value); 299return Convert.ToUInt16(m_value); 304return Convert.ToInt32(m_value); 309return Convert.ToUInt32(m_value); 314return Convert.ToInt64(m_value); 319return Convert.ToUInt64(m_value); 329return Convert.ToDouble(m_value); 334return Convert.ToDecimal(m_value); 344return Convert.DefaultToType((IConvertible)this, type, provider);
system\string.cs (15)
3366return Convert.ToBoolean(this, provider); 3371return Convert.ToChar(this, provider); 3376return Convert.ToSByte(this, provider); 3381return Convert.ToByte(this, provider); 3386return Convert.ToInt16(this, provider); 3391return Convert.ToUInt16(this, provider); 3396return Convert.ToInt32(this, provider); 3401return Convert.ToUInt32(this, provider); 3406return Convert.ToInt64(this, provider); 3411return Convert.ToUInt64(this, provider); 3416return Convert.ToSingle(this, provider); 3421return Convert.ToDouble(this, provider); 3426return Convert.ToDecimal(this, provider); 3431return Convert.ToDateTime(this, provider); 3436return Convert.DefaultToType((IConvertible)this, type, provider);
system\uint16.cs (13)
178return Convert.ToBoolean(m_value); 183return Convert.ToChar(m_value); 188return Convert.ToSByte(m_value); 193return Convert.ToByte(m_value); 198return Convert.ToInt16(m_value); 208return Convert.ToInt32(m_value); 213return Convert.ToUInt32(m_value); 218return Convert.ToInt64(m_value); 223return Convert.ToUInt64(m_value); 228return Convert.ToSingle(m_value); 233return Convert.ToDouble(m_value); 238return Convert.ToDecimal(m_value); 248return Convert.DefaultToType((IConvertible)this, type, provider);
system\uint32.cs (13)
160return Convert.ToBoolean(m_value); 165return Convert.ToChar(m_value); 170return Convert.ToSByte(m_value); 175return Convert.ToByte(m_value); 180return Convert.ToInt16(m_value); 185return Convert.ToUInt16(m_value); 190return Convert.ToInt32(m_value); 200return Convert.ToInt64(m_value); 205return Convert.ToUInt64(m_value); 210return Convert.ToSingle(m_value); 215return Convert.ToDouble(m_value); 220return Convert.ToDecimal(m_value); 230return Convert.DefaultToType((IConvertible)this, type, provider);
system\uint64.cs (13)
155return Convert.ToBoolean(m_value); 160return Convert.ToChar(m_value); 165return Convert.ToSByte(m_value); 170return Convert.ToByte(m_value); 175return Convert.ToInt16(m_value); 180return Convert.ToUInt16(m_value); 185return Convert.ToInt32(m_value); 190return Convert.ToUInt32(m_value); 195return Convert.ToInt64(m_value); 205return Convert.ToSingle(m_value); 210return Convert.ToDouble(m_value); 215return Convert.ToDecimal(m_value); 225return Convert.DefaultToType((IConvertible)this, type, provider);
PresentationBuildTasks (9)
Core\CSharp\MS\internal\Media\XamlSerializationHelper.cs (5)
400Convert.ToDouble(th.GetCurrentToken(), formatProvider), 401Convert.ToDouble(th.NextTokenRequired(), formatProvider), 402Convert.ToDouble(th.NextTokenRequired(), formatProvider)); 426Convert.ToDouble(th.GetCurrentToken(), formatProvider), 427Convert.ToDouble(th.NextTokenRequired(), formatProvider) );
Core\CSharp\System\Windows\Media\ParsersCommon.cs (1)
446return System.Convert.ToDouble(subString, _formatProvider);
Framework\System\Windows\Markup\BamlRecords.cs (2)
2617uintValue += (uint)Convert.ChangeType(rawEnumValue, typeof(uint), TypeConverterHelper.InvariantEnglishUS); 2636bamlBinaryWriter.Write((byte)Convert.ChangeType(convertedValue, typeof(byte), TypeConverterHelper.InvariantEnglishUS));
Framework\System\Windows\Markup\XamlInt32CollectionSerializer.cs (1)
238value = Convert.ToInt32(th.GetCurrentToken(), formatProvider);
PresentationCore (90)
Core\CSharp\MS\Internal\IListConverters.cs (3)
115list.Add(Convert.ToDouble(_tokenizer.GetCurrentToken(), ci)); 157list.Add(Convert.ToUInt16(_tokenizer.GetCurrentToken(), ci)); 198list.Add(Convert.ToInt32(_tokenizer.GetCurrentToken(), ci) != 0);
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\DrawingAttributeSerializer.cs (4)
207rasterOperation = Convert.ToUInt32(data[0]); 430color.A = Convert.ToByte(alpha); 551cbData += SerializationHelper.Encode(stream, Convert.ToUInt32(transparency)); 660Int32 stylusTip = Convert.ToInt32(da.StylusTip, System.Globalization.CultureInfo.InvariantCulture);
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (5)
126byte[] isfData = Convert.FromBase64CharArray(chars, 0, chars.Length); 2556uint bytesWritten = Convert.ToUInt32(drawingAttributeStream.Position); 2562Convert.ToInt32(bytesWritten)); 2595uint bytesWritten = Convert.ToUInt32(drawingAttributeStreams[i].Position); 2601Convert.ToInt32(bytesWritten));
Core\CSharp\MS\Internal\IO\Packaging\DeobfuscatingStream.cs (1)
349guidBytes[i] = Convert.ToByte(wellFormedGuidString.Substring(i * 2, 2), 16);
Core\CSharp\System\Windows\Ink\StrokeCollectionConverter.cs (2)
99using (MemoryStream ms = new MemoryStream(Convert.FromBase64String(text))) 149return Convert.ToBase64String(ms.ToArray());
Core\CSharp\System\Windows\Media\Animation\KeySplineConverter.cs (4)
87Convert.ToDouble(th.NextTokenRequired(), cultureInfo), 88Convert.ToDouble(th.NextTokenRequired(), cultureInfo), 89Convert.ToDouble(th.NextTokenRequired(), cultureInfo), 90Convert.ToDouble(th.NextTokenRequired(), cultureInfo));
Core\CSharp\System\Windows\Media\Generated\DoubleCollection.cs (1)
759value = Convert.ToDouble(th.GetCurrentToken(), formatProvider);
Core\CSharp\System\Windows\Media\Generated\GradientStopCollection.cs (1)
844Convert.ToDouble(th.NextTokenRequired(), formatProvider));
Core\CSharp\System\Windows\Media\Generated\Int32Collection.cs (1)
759value = Convert.ToInt32(th.GetCurrentToken(), formatProvider);
Core\CSharp\System\Windows\Media\Generated\PointCollection.cs (2)
760Convert.ToDouble(th.GetCurrentToken(), formatProvider), 761Convert.ToDouble(th.NextTokenRequired(), formatProvider));
Core\CSharp\System\Windows\Media\Generated\VectorCollection.cs (2)
760Convert.ToDouble(th.GetCurrentToken(), formatProvider), 761Convert.ToDouble(th.NextTokenRequired(), formatProvider));
Core\CSharp\System\Windows\Media\Imaging\BitmapMetadata.cs (3)
1432return System.Convert.ToInt32(rating, CultureInfo.InvariantCulture); 1439SetQuery(policy_Rating, System.Convert.ToUInt16(value, CultureInfo.InvariantCulture)); 1491DateTime dt = System.Convert.ToDateTime(value, CultureInfo.InvariantCulture);
Core\CSharp\System\Windows\Media\Imaging\JpegBitmapEncoder.cs (5)
145return (Convert.ToBoolean((int)_transformation & (int)WICBitmapTransformOptions.WICBitmapTransformFlipHorizontal)); 171return (Convert.ToBoolean((int)_transformation & (int)WICBitmapTransformOptions.WICBitmapTransformFlipVertical)); 277return ((Convert.ToBoolean((int)_transformation & (int)WICBitmapTransformOptions.WICBitmapTransformRotate90) && (!Rotate270))); 308return ((Convert.ToBoolean((int)_transformation & (int)WICBitmapTransformOptions.WICBitmapTransformRotate180) && (!Rotate270))); 339return (Convert.ToBoolean(((int)_transformation & (int)WICBitmapTransformOptions.WICBitmapTransformRotate270) == (int)WICBitmapTransformOptions.WICBitmapTransformRotate270));
Core\CSharp\System\Windows\Media\Imaging\WmpBitmapEncoder.cs (5)
162return (Convert.ToBoolean((int)_transformation & (int)WICBitmapTransformOptions.WICBitmapTransformFlipHorizontal)); 188return (Convert.ToBoolean((int)_transformation & (int)WICBitmapTransformOptions.WICBitmapTransformFlipVertical)); 803return ((Convert.ToBoolean((int)_transformation & (int)WICBitmapTransformOptions.WICBitmapTransformRotate90) && (!Rotate270))); 834return ((Convert.ToBoolean((int)_transformation & (int)WICBitmapTransformOptions.WICBitmapTransformRotate180) && (!Rotate270))); 865return (Convert.ToBoolean(((int)_transformation & (int)WICBitmapTransformOptions.WICBitmapTransformRotate270) == (int)WICBitmapTransformOptions.WICBitmapTransformRotate270));
Core\CSharp\System\Windows\Media\MediaContext.cs (1)
404HasSSE2Support = Convert.ToBoolean(caps.HasSSE2Support);
Core\CSharp\System\Windows\Media\Parsers.cs (4)
122float alpha = Convert.ToSingle(th.NextTokenRequired(), formatProvider); 128values[i] = Convert.ToSingle(th.NextTokenRequired(), formatProvider); 172values[i] = Convert.ToSingle(th.NextTokenRequired(), formatProvider); 177values[3] = Convert.ToSingle(th.GetCurrentToken(), formatProvider);
Core\CSharp\System\Windows\Media\ParsersCommon.cs (1)
446return System.Convert.ToDouble(subString, _formatProvider);
Core\CSharp\System\Windows\Media3D\Generated\Matrix3D.cs (16)
249Convert.ToDouble(firstToken, formatProvider), 250Convert.ToDouble(th.NextTokenRequired(), formatProvider), 251Convert.ToDouble(th.NextTokenRequired(), formatProvider), 252Convert.ToDouble(th.NextTokenRequired(), formatProvider), 253Convert.ToDouble(th.NextTokenRequired(), formatProvider), 254Convert.ToDouble(th.NextTokenRequired(), formatProvider), 255Convert.ToDouble(th.NextTokenRequired(), formatProvider), 256Convert.ToDouble(th.NextTokenRequired(), formatProvider), 257Convert.ToDouble(th.NextTokenRequired(), formatProvider), 258Convert.ToDouble(th.NextTokenRequired(), formatProvider), 259Convert.ToDouble(th.NextTokenRequired(), formatProvider), 260Convert.ToDouble(th.NextTokenRequired(), formatProvider), 261Convert.ToDouble(th.NextTokenRequired(), formatProvider), 262Convert.ToDouble(th.NextTokenRequired(), formatProvider), 263Convert.ToDouble(th.NextTokenRequired(), formatProvider), 264Convert.ToDouble(th.NextTokenRequired(), formatProvider));
Core\CSharp\System\Windows\Media3D\Generated\Point3D.cs (3)
181Convert.ToDouble(firstToken, formatProvider), 182Convert.ToDouble(th.NextTokenRequired(), formatProvider), 183Convert.ToDouble(th.NextTokenRequired(), formatProvider));
Core\CSharp\System\Windows\Media3D\Generated\Point3DCollection.cs (3)
756Convert.ToDouble(th.GetCurrentToken(), formatProvider), 757Convert.ToDouble(th.NextTokenRequired(), formatProvider), 758Convert.ToDouble(th.NextTokenRequired(), formatProvider));
Core\CSharp\System\Windows\Media3D\Generated\Point4D.cs (4)
184Convert.ToDouble(firstToken, formatProvider), 185Convert.ToDouble(th.NextTokenRequired(), formatProvider), 186Convert.ToDouble(th.NextTokenRequired(), formatProvider), 187Convert.ToDouble(th.NextTokenRequired(), formatProvider));
Core\CSharp\System\Windows\Media3D\Generated\Quaternion.cs (4)
213Convert.ToDouble(firstToken, formatProvider), 214Convert.ToDouble(th.NextTokenRequired(), formatProvider), 215Convert.ToDouble(th.NextTokenRequired(), formatProvider), 216Convert.ToDouble(th.NextTokenRequired(), formatProvider));
Core\CSharp\System\Windows\Media3D\Generated\Rect3D.cs (6)
212Convert.ToDouble(firstToken, formatProvider), 213Convert.ToDouble(th.NextTokenRequired(), formatProvider), 214Convert.ToDouble(th.NextTokenRequired(), formatProvider), 215Convert.ToDouble(th.NextTokenRequired(), formatProvider), 216Convert.ToDouble(th.NextTokenRequired(), formatProvider), 217Convert.ToDouble(th.NextTokenRequired(), formatProvider));
Core\CSharp\System\Windows\Media3D\Generated\Size3D.cs (3)
203Convert.ToDouble(firstToken, formatProvider), 204Convert.ToDouble(th.NextTokenRequired(), formatProvider), 205Convert.ToDouble(th.NextTokenRequired(), formatProvider));
Core\CSharp\System\Windows\Media3D\Generated\Vector3D.cs (3)
181Convert.ToDouble(firstToken, formatProvider), 182Convert.ToDouble(th.NextTokenRequired(), formatProvider), 183Convert.ToDouble(th.NextTokenRequired(), formatProvider));
Core\CSharp\System\Windows\Media3D\Generated\Vector3DCollection.cs (3)
756Convert.ToDouble(th.GetCurrentToken(), formatProvider), 757Convert.ToDouble(th.NextTokenRequired(), formatProvider), 758Convert.ToDouble(th.NextTokenRequired(), formatProvider));
PresentationFramework (50)
src\Framework\MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (8)
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);
src\Framework\MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (4)
227node.InnerText = Convert.ToBase64String(buffer.GetBuffer(), 0, (int)buffer.Length); 244using (MemoryStream buffer = new MemoryStream(Convert.FromBase64String(node.InnerText))) 396node.InnerText = Convert.ToBase64String(buffer.GetBuffer(), 0, (int)buffer.Length); 417using ( MemoryStream stream = new MemoryStream(Convert.FromBase64String(node.InnerText)) )
src\Framework\MS\Internal\Data\DefaultValueConverter.cs (2)
465return System.Convert.ChangeType(o, _targetType, culture); 473: System.Convert.ChangeType(o, _sourceType, culture);
src\Framework\System\Windows\Controls\DataGridLengthConverter.cs (4)
87double doubleValue = Convert.ToDouble(value, culture); 181return DoubleUtil.IsOne(length.Value) ? "*" : Convert.ToString(length.Value, cultureInfo) + "*"; 185return Convert.ToString(length.Value, cultureInfo); 280value = Convert.ToDouble(valueString, cultureInfo) * unitFactor;
src\Framework\System\Windows\Controls\DocumentViewer.cs (1)
2005columnValue = System.Convert.ToInt32((string)data, CultureInfo.CurrentCulture);
src\Framework\System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
1577pageNumber = Convert.ToInt32(args.Parameter, System.Globalization.CultureInfo.CurrentCulture);
src\Framework\System\Windows\Controls\VirtualizationCacheLengthConverter.cs (1)
114double value = Convert.ToDouble(source, cultureInfo);
src\Framework\System\Windows\CornerRadiusConverter.cs (1)
110else { return new CornerRadius(Convert.ToDouble(source, cultureInfo)); }
src\Framework\System\Windows\Data\BindingExpression.cs (1)
2189if (Convert.IsDBNull(value))
src\Framework\System\Windows\Data\BindingExpressionBase.cs (1)
1594if (Convert.IsDBNull(value))
src\Framework\System\windows\Documents\CaretElement.cs (1)
1160i = Convert.ToInt32(value);
src\Framework\System\Windows\Documents\DocumentSequence.cs (1)
185int pageNumber = Convert.ToInt32(elementID, CultureInfo.InvariantCulture) - 1;
src\Framework\System\Windows\Documents\FixedDocument.cs (1)
230int pageNumber = Convert.ToInt32(elementID, CultureInfo.InvariantCulture);
src\Framework\System\Windows\Documents\FixedFindEngine.cs (1)
425bidiLevel = Convert.ToInt32(bidiLevelAsString, CultureInfo.InvariantCulture);
src\Framework\System\Windows\Documents\ImmComposition.cs (1)
2038i = Convert.ToInt32(value);
src\Framework\System\Windows\Documents\RtfToXamlReader.cs (3)
243d = System.Convert.ToDouble(s, CultureInfo.InvariantCulture); 264i = System.Convert.ToInt32(s, CultureInfo.InvariantCulture); 8647d = System.Convert.ToDouble(ptString, CultureInfo.InvariantCulture);
src\Framework\System\Windows\Documents\XamlToRtfWriter.cs (1)
3805i = System.Convert.ToInt32(s, CultureInfo.InvariantCulture);
src\Framework\System\Windows\Documents\ZoomPercentageConverter.cs (1)
196zoomValue = System.Convert.ToDouble(zoomString, culture);
src\Framework\System\Windows\FigureLengthConverter.cs (3)
124return new FigureLength(Convert.ToDouble(source, cultureInfo)); //conversion from numeric type 207return Convert.ToString(fl.Value, cultureInfo); 210return Convert.ToString(fl.Value, cultureInfo) + " " + fl.FigureUnitType.ToString();
src\Framework\System\Windows\GridLengthConverter.cs (3)
131value = Convert.ToDouble(source, cultureInfo); 232: Convert.ToString(gl.Value, cultureInfo) + "*"); 236return (Convert.ToString(gl.Value, cultureInfo));
src\Framework\System\Windows\LengthConverter.cs (4)
118else { return (double)(Convert.ToDouble(source, cultureInfo)); } 165return Convert.ToString(l, cultureInfo); 227double result = Convert.ToDouble(valueString, cultureInfo) * unitFactor; 251return Convert.ToString(l, cultureInfo);
src\Framework\System\Windows\Markup\BamlRecords.cs (2)
2617uintValue += (uint)Convert.ChangeType(rawEnumValue, typeof(uint), TypeConverterHelper.InvariantEnglishUS); 2636bamlBinaryWriter.Write((byte)Convert.ChangeType(convertedValue, typeof(byte), TypeConverterHelper.InvariantEnglishUS));
src\Framework\System\Windows\Markup\WpfXamlLoader.cs (1)
356bool freeze = Convert.ToBoolean(xamlReader.Value, TypeConverterHelper.InvariantEnglishUS);
src\Framework\System\Windows\Markup\XamlFigureLengthSerializer.cs (1)
264value = Convert.ToDouble(valueString, cultureInfo) * unitFactor;
src\Framework\System\Windows\Markup\XamlGridLengthSerializer.cs (1)
266value = Convert.ToDouble(valueString, cultureInfo) * unitFactor;
src\Framework\System\Windows\ThicknessConverter.cs (1)
111else { return new Thickness(Convert.ToDouble(source, cultureInfo)); }
System (66)
compmod\microsoft\win32\SystemEvents.cs (1)
390Convert.ToString(AppDomain.CurrentDomain.GetHashCode(), 16),
compmod\system\collections\specialized\bitvector32.cs (2)
258return "Section{0x" + Convert.ToString(value.Mask, 16) + ", 0x" + Convert.ToString(value.Offset, 16) + "}";
compmod\system\componentmodel\basenumberconverter.cs (1)
132return Convert.ChangeType(value, destinationType, culture);
compmod\system\componentmodel\ByteConverter.cs (1)
40return Convert.ToByte(value, radix);
compmod\system\componentmodel\DecimalConverter.cs (1)
91return Convert.ToDecimal(value, CultureInfo.CurrentCulture);
compmod\system\componentmodel\DoubleConverter.cs (1)
51return Convert.ToDouble(value, CultureInfo.CurrentCulture);
compmod\system\componentmodel\EnumConverter.cs (4)
124convertedValue |= Convert.ToInt64((Enum)Enum.Parse(type, v, true), culture); 139finalValue |= Convert.ToInt64(e, culture); 205ulValues[idx] = Convert.ToInt64((Enum)objValues.GetValue(idx), culture); 208long longValue = Convert.ToInt64((Enum)value, culture);
compmod\system\componentmodel\Int16Converter.cs (1)
38return Convert.ToInt16(value, radix);
compmod\system\componentmodel\Int32Converter.cs (1)
38return Convert.ToInt32(value, radix);
compmod\system\componentmodel\Int64Converter.cs (1)
39return Convert.ToInt64(value, radix);
compmod\system\componentmodel\SByteConverter.cs (1)
40return Convert.ToSByte(value, radix);
compmod\system\componentmodel\SingleConverter.cs (1)
50return Convert.ToSingle(value, CultureInfo.CurrentCulture);
compmod\system\componentmodel\UInt16Converter.cs (1)
39return Convert.ToUInt16(value, radix);
compmod\system\componentmodel\UInt32Converter.cs (1)
40return Convert.ToUInt32(value, radix);
compmod\system\componentmodel\UInt64Converter.cs (1)
42return Convert.ToUInt64(value, radix);
compmod\system\componentmodel\Win32Exception.cs (2)
114errorMsg ="Unknown error (0x" + Convert.ToString(error, 16) + ")"; 151return "Unknown error (0x" + Convert.ToString(error, 16) + ")";
compmod\system\configuration\appsettingsreader.cs (1)
68return Convert.ChangeType(val, type, CultureInfo.InvariantCulture);
compmod\system\diagnostics\traceutils.cs (1)
128return Convert.ChangeType(value, type, CultureInfo.InvariantCulture);
net\System\Net\_BasicClient.cs (1)
113string responseHeader = BasicClient.AuthType + " " + Convert.ToBase64String(bytes);
net\System\Net\_FtpControlStream.cs (12)
894return Convert.ToInt64(parsedList[1], NumberFormatInfo.InvariantInfo); 910int year = Convert.ToInt32(dateTimeLine.Substring(0, 4), NumberFormatInfo.InvariantInfo); 911int month = Convert.ToInt16(dateTimeLine.Substring(4, 2), NumberFormatInfo.InvariantInfo); 912int day = Convert.ToInt16(dateTimeLine.Substring(6, 2), NumberFormatInfo.InvariantInfo); 913int hour = Convert.ToInt16(dateTimeLine.Substring(8, 2), NumberFormatInfo.InvariantInfo); 914int minute = Convert.ToInt16(dateTimeLine.Substring(10, 2), NumberFormatInfo.InvariantInfo); 915int second = Convert.ToInt16(dateTimeLine.Substring(12, 2), NumberFormatInfo.InvariantInfo); 918millisecond = Convert.ToInt16(parsedList[2], NumberFormatInfo.InvariantInfo); 1059int port = Convert.ToByte(parsedList[index--], NumberFormatInfo.InvariantInfo); 1061(Convert.ToByte(parsedList[index--], NumberFormatInfo.InvariantInfo) << 8); 1088return Convert.ToInt32(parsedList[3], NumberFormatInfo.InvariantInfo); 1190response.Status = Convert.ToInt16(response.StatusCodeString, NumberFormatInfo.InvariantInfo);
net\System\Net\_NTAuthentication.cs (2)
622decodedIncomingBlob = Convert.FromBase64String(incomingBlob); 650outgoingBlob = Convert.ToBase64String(decodedOutgoingBlob);
net\System\Net\Configuration\HttpListenerTimeoutsElement.cs (6)
86timeouts[0] = Convert.ToInt64(EntityBody.TotalSeconds); 87timeouts[1] = Convert.ToInt64(DrainEntityBody.TotalSeconds); 88timeouts[2] = Convert.ToInt64(RequestQueue.TotalSeconds); 89timeouts[3] = Convert.ToInt64(IdleConnection.TotalSeconds); 90timeouts[4] = Convert.ToInt64(HeaderWait.TotalSeconds); 107Int64 seconds = Convert.ToInt64(timeout.TotalSeconds);
net\System\Net\HttpListener.cs (3)
1641bytes = Convert.FromBase64String(inBlob); 1669outBlob = Convert.ToBase64String(decodedOutgoingBlob); 1748bytes = Convert.FromBase64String(inBlob);
net\System\Net\HttpListenerTimeoutManager.cs (1)
81timeoutValue = Convert.ToInt64(value.TotalSeconds);
net\System\Net\HttpSysSettings.cs (1)
84return Convert.ToBoolean(key.GetValue(valueName), CultureInfo.InvariantCulture);
net\System\Net\mail\SmtpLoginAuthenticationModule.cs (2)
58return new Authorization(Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(userName)), false); 65return new Authorization(Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(cachedCredential.Password)), true);
net\System\Net\mail\SmtpNegotiateAuthenticationModule.cs (4)
62Convert.FromBase64String(challenge); 69resp = Convert.ToBase64String(byteResp); 130byte[] input = Convert.FromBase64String(challenge); 191return Convert.ToBase64String(output, 0, len);
net\System\Net\WebSockets\WebSocketHelpers.cs (2)
207retVal = Convert.ToBase64String(sha1.ComputeHash(toHash)); 369request.Headers[HttpKnownHeaderNames.SecWebSocketKey] = Convert.ToBase64String(keyBlob);
net\System\Net\WebSockets\WebSocketProtocolComponent.cs (1)
32private static readonly string s_DummyWebsocketKeyBase64 = Convert.ToBase64String(new byte[16]);
regex\system\text\regularexpressions\Regex.cs (1)
573result[i] = Convert.ToString(i, CultureInfo.InvariantCulture);
regex\system\text\regularexpressions\RegexNode.cs (1)
498prev._str = Convert.ToString(prev._ch, CultureInfo.InvariantCulture);
regex\system\text\regularexpressions\RegexParser.cs (1)
1717String str = Convert.ToString(j, _culture);
security\system\security\cryptography\x509\x509certificate2collection.cs (1)
1006uint dwCheckUsage = Convert.ToUInt32(pvCallbackData, null);
services\monitoring\system\diagnosticts\FileVersionInfo.cs (1)
309string s = Convert.ToString(value, 16);
sys\system\configuration\LocalFileSettingsProvider.cs (1)
467serializedValue = Convert.ToBase64String(buf);
sys\system\configuration\SettingsPropertyValue.cs (2)
190byte[] buf = Convert.FromBase64String(attValue); 257return Convert.ToBase64String(buffer);
System.Activities (27)
System\Activities\Debugger\DebugInfo.cs (23)
328location.Value = Convert.ToBoolean(value, CultureInfo.InvariantCulture); 332location.Value = Convert.ToSByte(RemoveHexadecimalPrefix(value), Convert.ToInt32(stringRadix, CultureInfo.InvariantCulture)); 337succeed = ConvertToChar(value, Convert.ToInt32(stringRadix, CultureInfo.InvariantCulture), out ch); 345location.Value = Convert.ToInt16(RemoveHexadecimalPrefix(value), Convert.ToInt32(stringRadix, CultureInfo.InvariantCulture)); 349location.Value = Convert.ToInt32(RemoveHexadecimalPrefix(value), Convert.ToInt32(stringRadix, CultureInfo.InvariantCulture)); 353location.Value = Convert.ToInt64(RemoveHexadecimalPrefix(value), Convert.ToInt32(stringRadix, CultureInfo.InvariantCulture)); 357location.Value = Convert.ToByte(RemoveHexadecimalPrefix(value), Convert.ToInt32(stringRadix, CultureInfo.InvariantCulture)); 361location.Value = Convert.ToUInt16(RemoveHexadecimalPrefix(value), Convert.ToInt32(stringRadix, CultureInfo.InvariantCulture)); 365location.Value = Convert.ToUInt32(RemoveHexadecimalPrefix(value), Convert.ToInt32(stringRadix, CultureInfo.InvariantCulture)); 369location.Value = Convert.ToUInt64(RemoveHexadecimalPrefix(value), Convert.ToInt32(stringRadix, CultureInfo.InvariantCulture)); 375location.Value = Convert.ToSingle(value, CultureInfo.InvariantCulture); 386location.Value = Convert.ToDouble(value, CultureInfo.InvariantCulture); 407location.Value = Convert.ToDecimal(value, CultureInfo.InvariantCulture); 412location.Value = Convert.ToDateTime(value, CultureInfo.CurrentCulture); 520ch = (char)Convert.ToUInt16(RemoveHexadecimalPrefix(stringValue), radix);
System\Activities\Debugger\Symbol\WorkflowSymbol.cs (2)
66byte[] data = Convert.FromBase64String(symbolString); 128return Convert.ToBase64String(buffer);
System\Activities\Expressions\Literal.cs (1)
169string originalString = Convert.ToString(this.Value);
System\Activities\Expressions\MethodCallExpressionHelper.cs (1)
36Expression.Call(typeof(Convert).GetMethod("ChangeType", new Type[] { typeof(object), typeof(Type) }), Expression.ArrayIndex(objectArray, Expression.Constant(i)), Expression.Constant(variable.Type, typeof(Type))),
System.Activities.DurableInstancing (7)
System\Activities\DurableInstancing\DefaultObjectSerializer.cs (2)
46return new ArraySegment<byte>(memoryStream.GetBuffer(), 0, Convert.ToInt32(memoryStream.Length)); 55return new ArraySegment<byte>(memoryStream.GetBuffer(), 0, Convert.ToInt32(memoryStream.Length));
System\Activities\DurableInstancing\LoadWorkflowAsyncResult.cs (1)
74parameters.Add(new SqlParameter { ParameterName = "@operationTimeout", SqlDbType = SqlDbType.Int, Value = (operationTimeout < Int32.MaxValue) ? Convert.ToInt32(operationTimeout) : Int32.MaxValue });
System\Activities\DurableInstancing\SaveWorkflowAsyncResult.cs (1)
86parameters.Add(new SqlParameter { ParameterName = "@operationTimeout", SqlDbType = SqlDbType.Int, Value = (operationTimeout < Int32.MaxValue) ? Convert.ToInt32(operationTimeout) : Int32.MaxValue });
System\Activities\DurableInstancing\SerializationUtilities.cs (2)
36Buffer.BlockCopy(correlationKey.BinaryData.Array, 0, concatenatedBlob, Convert.ToInt32(insertLocation), Convert.ToInt32(correlationKey.BinaryData.Count));
System\Activities\DurableInstancing\TryLoadRunnableWorkflowAsyncResult.cs (1)
47command.Parameters.Add(new SqlParameter { ParameterName = "@operationTimeout", SqlDbType = SqlDbType.Int, Value = (operationTimeout < Int32.MaxValue) ? Convert.ToInt32(operationTimeout) : Int32.MaxValue });
System.Activities.Presentation (4)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorEditor.cs (2)
407int editPointOffset = Convert.ToInt32(DesignerGeometryHelper.DistanceBetweenPoints(previous.Location, (next != null) ? next.Location : this.activeEditPoint.Location)) / 4; 428int editPointOffset = Convert.ToInt32(DesignerGeometryHelper.DistanceBetweenPoints((previous != null) ? previous.Location : this.activeEditPoint.Location, next.Location)) / 4;
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (2)
1702double valueAsDouble = System.Convert.ToDouble(value, CultureInfo.CurrentCulture); 1722result = System.Convert.ToDouble(valueAsString, CultureInfo.CurrentCulture);
System.ComponentModel.DataAnnotations (5)
DataAnnotations\CustomValidationAttribute.cs (1)
296convertedValue = Convert.ChangeType(value, t, CultureInfo.CurrentCulture);
DataAnnotations\EnumDataTypeAttribute.cs (1)
95return Convert.ChangeType(enumValue, Enum.GetUnderlyingType(enumType), CultureInfo.InvariantCulture).ToString();
DataAnnotations\RangeAttribute.cs (2)
155this.Initialize((int)minimum, (int)maximum, v => Convert.ToInt32(v, CultureInfo.InvariantCulture)); 157this.Initialize((double)minimum, (double)maximum, v => Convert.ToDouble(v, CultureInfo.InvariantCulture));
DataAnnotations\RegularExpressionAttribute.cs (1)
63string stringValue = Convert.ToString(value, CultureInfo.CurrentCulture);
System.Configuration (5)
System\Configuration\DPAPIProtectedConfigurationProvider.cs (2)
114return Convert.ToBase64String(buf); 152inputData = PrepareDataBlob(Convert.FromBase64String(encText));
System\Configuration\InfiniteIntConverter.cs (1)
41return Convert.ToInt32((string)data, 10);
System\Configuration\ValidatorUtils.cs (2)
38ValidateResolution(resolution.ToString(), Convert.ToInt64(value, CultureInfo.InvariantCulture), Convert.ToInt64(resolution, CultureInfo.InvariantCulture));
System.Core (3)
Microsoft\Scripting\Compiler\LambdaCompiler.Statements.cs (1)
400return Convert.ToDecimal(value, CultureInfo.InvariantCulture);
System\Security\Cryptography\Xml\ManifestSignedXml.cs (2)
108byte[] rawCertificate = Convert.FromBase64String(certificateNodes[0].InnerText.Trim()); 236byte[] timestampBlob = Convert.FromBase64String(timestampElement.InnerText);
System.Data (292)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorEditor.cs (2)
407int editPointOffset = Convert.ToInt32(DesignerGeometryHelper.DistanceBetweenPoints(previous.Location, (next != null) ? next.Location : this.activeEditPoint.Location)) / 4; 428int editPointOffset = Convert.ToInt32(DesignerGeometryHelper.DistanceBetweenPoints((previous != null) ? previous.Location : this.activeEditPoint.Location, next.Location)) / 4;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (2)
1702double valueAsDouble = System.Convert.ToDouble(value, CultureInfo.CurrentCulture); 1722result = System.Convert.ToDouble(valueAsString, CultureInfo.CurrentCulture);
fx\src\data\Microsoft\SqlServer\Server\MetadataUtilsSmi.cs (6)
803maxLength = Convert.ToInt64(temp, null); 833maxLength = Convert.ToInt64(temp, null); 863maxLength = Convert.ToInt64(temp, null); 885precision = Convert.ToByte(temp, null); 893scale = Convert.ToByte(temp, null); 913scale = Convert.ToByte(temp, null);
fx\src\data\System\Data\CodeGen\datacache.cs (2)
862nullValueFieldInit = MethodCall(TypeExpr(typeof(System.Convert)), "FromBase64String", Primitive(nullValue)); 909setNull.Statements.Add(Assign(Indexer(This(), Property(Field(This(), stTblFieldName), tableColumnName)), Field(TypeExpr(typeof(Convert)), "DBNull")));
fx\src\data\System\Data\Common\DataRecordInternal.cs (1)
279return (null == o || Convert.IsDBNull(o));
fx\src\data\System\Data\Common\DBCommandBuilder.cs (1)
765if ( !row.AllowDBNull && (null == currentValue || Convert.IsDBNull(currentValue)) )
fx\src\data\System\Data\Common\DbConnectionStringBuilder.cs (1)
217return (value == null) ? (string)null : Convert.ToString(value, CultureInfo.InvariantCulture);
fx\src\data\System\Data\Common\DBSchemaRow.cs (33)
61if (!Convert.IsDBNull(value)) { 62return Convert.ToString(value, CultureInfo.InvariantCulture); 88if (!Convert.IsDBNull(value)) { 89return Convert.ToInt32(value, CultureInfo.InvariantCulture); 103if (!Convert.IsDBNull(value)) { 104return Convert.ToString(value, CultureInfo.InvariantCulture); 119if (!Convert.IsDBNull(value)) { 120return Convert.ToString(value, CultureInfo.InvariantCulture); 136if (!Convert.IsDBNull(value)) { 137return Convert.ToString(value, CultureInfo.InvariantCulture); 152if (!Convert.IsDBNull(value)) { 153return Convert.ToString(value, CultureInfo.InvariantCulture); 168if (!Convert.IsDBNull(value)) { 169return Convert.ToString(value, CultureInfo.InvariantCulture); 184if (!Convert.IsDBNull(value)) { 185return Convert.ToBoolean(value, CultureInfo.InvariantCulture); 200if (!Convert.IsDBNull(value)) { 201return Convert.ToBoolean(value, CultureInfo.InvariantCulture); 216if (!Convert.IsDBNull(value)) { 217return Convert.ToBoolean(value, CultureInfo.InvariantCulture); 232if (!Convert.IsDBNull(value)) { 233return Convert.ToBoolean(value, CultureInfo.InvariantCulture); 265if (!Convert.IsDBNull(value)) { 266return Convert.ToBoolean(value, CultureInfo.InvariantCulture); 297if (!Convert.IsDBNull(value)) { 298return Convert.ToBoolean(value, CultureInfo.InvariantCulture); 313if (!Convert.IsDBNull(value)) { 314return Convert.ToBoolean(value, CultureInfo.InvariantCulture); 329if (!Convert.IsDBNull(value)) { 330return Convert.ToBoolean(value, CultureInfo.InvariantCulture); 345if (!Convert.IsDBNull(value)) { 361if (!Convert.IsDBNull(value)) { 362return Convert.ToBoolean(value, CultureInfo.InvariantCulture);
fx\src\data\System\Data\Common\ObjectStorage.cs (9)
120valueNo1 = Convert.ToBoolean(valueNo1, FormatProvider); 121valueNo2 = Convert.ToBoolean(valueNo2, FormatProvider); 124valueNo1 = Convert.ToDateTime(valueNo1, FormatProvider); 125valueNo2 = Convert.ToDateTime(valueNo1, FormatProvider); 128valueNo1 = Convert.ToDouble(valueNo1, FormatProvider); 129valueNo2 = Convert.ToDouble(valueNo2, FormatProvider); 272return Convert.FromBase64String(s); 361retValue = Convert.FromBase64String(retValue.ToString()); 382return Convert.ToBase64String((byte[])value);
fx\src\data\System\Data\Common\SQLConvert.cs (5)
610return Convert.ChangeType(value, type, formatProvider); 624return new SqlBinary(Convert.FromBase64String((string)value)); 630return new SqlBytes(Convert.FromBase64String((string)value)); 713return Convert.ToBase64String(((SqlBinary)value).Value); 719return Convert.ToBase64String(((SqlBytes)value).Value);
fx\src\data\System\Data\DataColumn.cs (1)
1877this.current = Convert.ToInt64(value, formatProvider);
fx\src\data\System\Data\DataException.cs (3)
522values += Convert.ToString(keys[i], null) + (i < keys.Length - 1 ? ", " : String.Empty); 535return Res.GetString(Res.DataConstraint_ViolationValue, columns[0].ColumnName, Convert.ToString(values[0], null)); 1120return _IndexOutOfRange(Res.GetString(Res.DataRelation_OutOfRange, Convert.ToString(index, null)));
fx\src\data\System\Data\DataTable.cs (2)
212bool isSingleTable = context.Context != null ? Convert.ToBoolean(context.Context, CultureInfo.InvariantCulture) : true; 229bool isSingleTable = context.Context != null ? Convert.ToBoolean(context.Context, CultureInfo.InvariantCulture) : true;
fx\src\data\System\Data\Filter\BinaryNode.cs (127)
145return Convert.ToInt32(vLeft, FormatProvider).CompareTo(Convert.ToInt32(vRight, FormatProvider)); 150return Decimal.Compare(Convert.ToDecimal(vLeft, FormatProvider), Convert.ToDecimal(vRight, FormatProvider)); 152return Convert.ToInt32(vLeft, FormatProvider).CompareTo(Convert.ToInt32(vRight, FormatProvider)); 154return Convert.ToDouble(vLeft, FormatProvider).CompareTo(Convert.ToDouble(vRight, FormatProvider)); 156return Convert.ToSingle(vLeft, FormatProvider).CompareTo(Convert.ToSingle(vRight, FormatProvider)); 158return DateTime.Compare(Convert.ToDateTime(vLeft, FormatProvider), Convert.ToDateTime(vRight, FormatProvider)); 163return table.Compare(Convert.ToString(vLeft, FormatProvider), Convert.ToString(vRight, FormatProvider), comparer); 168return Convert.ToInt32(DataExpression.ToBoolean(vLeft), FormatProvider) - 169Convert.ToInt32(DataExpression.ToBoolean(vRight), FormatProvider); 298value = Convert.ToByte((Convert.ToByte(vLeft, FormatProvider) + Convert.ToByte(vRight, FormatProvider)), FormatProvider); 301value = Convert.ToSByte((Convert.ToSByte(vLeft, FormatProvider) + Convert.ToSByte(vRight, FormatProvider)), FormatProvider); 304value = Convert.ToInt16((Convert.ToInt16(vLeft, FormatProvider) + Convert.ToInt16(vRight, FormatProvider)), FormatProvider); 307value = Convert.ToUInt16((Convert.ToUInt16(vLeft, FormatProvider) + Convert.ToUInt16(vRight, FormatProvider)), FormatProvider); 310checked {value = Convert.ToInt32(vLeft, FormatProvider) + Convert.ToInt32(vRight, FormatProvider);} 313checked {value = Convert.ToUInt32(vLeft, FormatProvider) + Convert.ToUInt32(vRight, FormatProvider);} 316checked {value = Convert.ToUInt64(vLeft, FormatProvider) + Convert.ToUInt64(vRight, FormatProvider);} 319checked {value = Convert.ToInt64(vLeft, FormatProvider) + Convert.ToInt64(vRight, FormatProvider);} 322checked {value = Convert.ToDecimal(vLeft, FormatProvider) + Convert.ToDecimal(vRight, FormatProvider);} 325checked {value = Convert.ToSingle(vLeft, FormatProvider) + Convert.ToSingle(vRight, FormatProvider);} 328checked {value = Convert.ToDouble(vLeft, FormatProvider) + Convert.ToDouble(vRight, FormatProvider);} 332value = Convert.ToString(vLeft, FormatProvider) + Convert.ToString(vRight, FormatProvider); 399value = Convert.ToByte((Convert.ToByte(vLeft, FormatProvider) - Convert.ToByte(vRight, FormatProvider)), FormatProvider); 405value = Convert.ToSByte((Convert.ToSByte(vLeft, FormatProvider) - Convert.ToSByte(vRight, FormatProvider)), FormatProvider); 408value = Convert.ToInt16((Convert.ToInt16(vLeft, FormatProvider) - Convert.ToInt16(vRight, FormatProvider)), FormatProvider); 414value = Convert.ToUInt16((Convert.ToUInt16(vLeft, FormatProvider) - Convert.ToUInt16(vRight, FormatProvider)), FormatProvider); 417checked {value = Convert.ToInt32(vLeft, FormatProvider) - Convert.ToInt32(vRight, FormatProvider);} 423checked {value = Convert.ToUInt32(vLeft, FormatProvider) - Convert.ToUInt32(vRight, FormatProvider);} 426checked {value = Convert.ToInt64(vLeft, FormatProvider) - Convert.ToInt64(vRight, FormatProvider);} 432checked {value = Convert.ToUInt64(vLeft, FormatProvider) - Convert.ToUInt64(vRight, FormatProvider);} 435checked {value = Convert.ToDecimal(vLeft, FormatProvider) - Convert.ToDecimal(vRight, FormatProvider);} 441checked {value = Convert.ToSingle(vLeft, FormatProvider) - Convert.ToSingle(vRight, FormatProvider);} 447checked {value = Convert.ToDouble(vLeft, FormatProvider) - Convert.ToDouble(vRight, FormatProvider);} 487value = Convert.ToByte((Convert.ToByte(vLeft, FormatProvider) * Convert.ToByte(vRight, FormatProvider)), FormatProvider); 493value = Convert.ToSByte((Convert.ToSByte(vLeft, FormatProvider) * Convert.ToSByte(vRight, FormatProvider)), FormatProvider); 496value = Convert.ToInt16((Convert.ToInt16(vLeft, FormatProvider) * Convert.ToInt16(vRight, FormatProvider)), FormatProvider); 502value = Convert.ToUInt16((Convert.ToUInt16(vLeft, FormatProvider) * Convert.ToUInt16(vRight, FormatProvider)), FormatProvider); 505checked {value = Convert.ToInt32(vLeft, FormatProvider) * Convert.ToInt32(vRight, FormatProvider);} 511checked {value = Convert.ToUInt32(vLeft, FormatProvider) * Convert.ToUInt32(vRight, FormatProvider);} 515checked {value = Convert.ToInt64(vLeft, FormatProvider) * Convert.ToInt64(vRight, FormatProvider);} 521checked {value = Convert.ToUInt64(vLeft, FormatProvider) * Convert.ToUInt64(vRight, FormatProvider);} 524checked {value = Convert.ToDecimal(vLeft, FormatProvider) * Convert.ToDecimal(vRight, FormatProvider);} 530checked {value = Convert.ToSingle(vLeft, FormatProvider) * Convert.ToSingle(vRight, FormatProvider);} 539checked {value = Convert.ToDouble(vLeft, FormatProvider) * Convert.ToDouble(vRight, FormatProvider);} 553value = Convert.ToByte((Convert.ToByte(vLeft, FormatProvider) / Convert.ToByte(vRight, FormatProvider)), FormatProvider); 559value = Convert.ToSByte((Convert.ToSByte(vLeft, FormatProvider) / Convert.ToSByte(vRight, FormatProvider)), FormatProvider); 562value = Convert.ToInt16((Convert.ToInt16(vLeft, FormatProvider) / Convert.ToInt16(vRight, FormatProvider)), FormatProvider); 568value = Convert.ToUInt16((Convert.ToUInt16(vLeft, FormatProvider) / Convert.ToUInt16(vRight, FormatProvider)), FormatProvider); 571checked {value = Convert.ToInt32(vLeft, FormatProvider) / Convert.ToInt32(vRight, FormatProvider);} 577checked {value = Convert.ToUInt32(vLeft, FormatProvider) / Convert.ToUInt32(vRight, FormatProvider);} 580checked {value = Convert.ToUInt64(vLeft, FormatProvider) / Convert.ToUInt64(vRight, FormatProvider);} 583checked {value = Convert.ToInt64(vLeft, FormatProvider) / Convert.ToInt64(vRight, FormatProvider);} 589checked {value = Convert.ToDecimal(vLeft, FormatProvider) / Convert.ToDecimal(vRight, FormatProvider);} 595checked {value = Convert.ToSingle(vLeft, FormatProvider) / Convert.ToSingle(vRight, FormatProvider);} 604Double b = Convert.ToDouble(vRight, FormatProvider); 605checked {value = Convert.ToDouble(vLeft, FormatProvider) / b;} 785value = Convert.ToUInt64(vLeft, FormatProvider) % Convert.ToUInt64(vRight, FormatProvider); 804value = Convert.ToInt64(vLeft, FormatProvider) % Convert.ToInt64(vRight, FormatProvider); 805value = Convert.ChangeType(value, DataStorage.GetTypeStorage(resultType), FormatProvider);
fx\src\data\System\Data\Filter\ConstNode.cs (2)
36this.val = Convert.ToDouble(constant, NumberFormatInfo.InvariantInfo); 40this.val = Convert.ToBoolean(constant, CultureInfo.InvariantCulture);
fx\src\data\System\Data\Filter\FunctionNode.cs (5)
135argumentValues[i] = Convert.ToInt32(argumentValues[i], FormatProvider); 287return Convert.ToInt32(argumentValues[0], FormatProvider); 291return Convert.ToDateTime(argumentValues[0], FormatProvider); 295return Convert.ToDouble(argumentValues[0], FormatProvider); 299return Convert.ToString(argumentValues[0], FormatProvider);
fx\src\data\System\Data\Odbc\OdbcDataReader.cs (4)
556return Convert.IsDBNull(GetValue(i)); // case 1, cache the value 566return Convert.IsDBNull(cachedObj); 576return Convert.IsDBNull(GetValue(i)); 1515Debug.Assert(this.dataCache == null || !Convert.IsDBNull(this.dataCache[i]), "Cannot call GetData without checking for cache first!");
fx\src\data\System\Data\Odbc\odbcmetadatafactory.cs (6)
143if (Convert.ToInt32(odbcSource, null) == 0) 247sqlType = (ODBC32.SQL_TYPE)(Int32) Convert.ChangeType(getTypeInfoValues[indexDATA_TYPE], 334(Convert.ToInt16(getTypeInfoValues[indexAUTO_UNIQUE_VALUE], null) == 0)) { 346switch ((ODBC32.SQL_NULLABILITY)Convert.ToInt16(getTypeInfoValues[indexNULLABLE], null)) { 365Int16 searchableValue = Convert.ToInt16(getTypeInfoValues[indexSEARCHABLE], null); 429Convert.ToInt16(values[positionOfType], null)) == true){
fx\src\data\System\Data\Odbc\OdbcParameter.cs (12)
313if ((null == value) || Convert.IsDBNull(value)) { 429if ((null == value) || Convert.IsDBNull(value)) { 487if ((null == value) || (value is Decimal) || Convert.IsDBNull(value)) { // MDAC 60882 596if ((null != value) && !Convert.IsDBNull(value)) { 608if ((null != value) && !Convert.IsDBNull(value)) { 645if (!Convert.IsDBNull(value) && value is string) { 848if ((null != Value) && !Convert.IsDBNull(Value)) { 856if ((typemap != _typemap) && (null != Value) && !Convert.IsDBNull(Value) && (Value.GetType() != _typemap._type)) { 867if ((null != value) && !Convert.IsDBNull(value)) { 872value = Convert.ChangeType (value, _typemap._type, (System.IFormatProvider)null); 890if ((null == value) || Convert.IsDBNull (value)) { 921else if(Convert.IsDBNull(value)) {
fx\src\data\System\Data\OleDb\ColumnBinding.cs (6)
158&& (Convert.IsDBNull(ValueVariant())))); 403else if (Convert.IsDBNull(value)) { 454Value_I1(Convert.ToSByte((Int16)value, CultureInfo.InvariantCulture)); 465Value_UI2(Convert.ToUInt16((Int32)value, CultureInfo.InvariantCulture)); 473Value_UI4(Convert.ToUInt32((Int64)value, CultureInfo.InvariantCulture)); 484Value_UI8(Convert.ToUInt64((Decimal)value, CultureInfo.InvariantCulture));
fx\src\data\System\Data\OleDb\OleDbCommandBuilder.cs (6)
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);
fx\src\data\System\Data\OleDb\OleDbConnection.cs (4)
89return Convert.ToInt32(value, CultureInfo.InvariantCulture); 127return Convert.ToString(value, CultureInfo.InvariantCulture); 158return Convert.ToString(value, CultureInfo.InvariantCulture); 404if ((value is OleDbPropertyStatus) || Convert.IsDBNull(value)) {
fx\src\data\System\Data\OleDb\OleDbConnectionInternal.cs (2)
180return Convert.ToString(value, CultureInfo.InvariantCulture); 341if ((value is OleDbPropertyStatus) || Convert.IsDBNull(value)) {
fx\src\data\System\Data\OleDb\OleDbDataReader.cs (1)
1933bool nullsVal = (null != nulls) && (dataRow.IsNull(nulls, DataRowVersion.Default) || (ODB.DBPROPVAL_IN_ALLOWNULL == Convert.ToInt32(dataRow[nulls, DataRowVersion.Default], CultureInfo.InvariantCulture)));
fx\src\data\System\Data\OleDb\OleDbMetaDataFactory.cs (1)
404short nativeDataType = (short) Convert.ChangeType(sourceRow[sourceOleDbType],typeof(short), CultureInfo.InvariantCulture);
fx\src\data\System\Data\OleDb\OleDbParameter.cs (1)
420value = Convert.ChangeType(value, destinationType.dataType, (IFormatProvider)null);
fx\src\data\System\Data\ProviderBase\SchemaMapping.cs (1)
392if ((null != readerValue) && !Convert.IsDBNull(readerValue)) { // MDAC 70441
fx\src\data\System\Data\Select.cs (1)
557vRight = Convert.ToChar(vRight, table.FormatProvider);
fx\src\data\System\Data\SimpleType.cs (3)
130length = Convert.ToInt32(facet.Value, null); 133minLength = Convert.ToInt32(facet.Value, null); 136maxLength = Convert.ToInt32(facet.Value, null);
fx\src\data\System\Data\SqlClient\SqlAeadAes256CbcHmac256Factory.cs (1)
50StringBuilder algorithmKeyBuilder = new StringBuilder(Convert.ToBase64String(encryptionKey.RootKey), SqlSecurityUtility.GetBase64LengthFromByteLength(encryptionKey.RootKey.Length) + 4/*separators, type and version*/);
fx\src\data\System\Data\SqlClient\SqlAes256CbcFactory.cs (1)
54StringBuilder algorithmKeyBuilder = new StringBuilder(Convert.ToBase64String(encryptionKey.RootKey), SqlSecurityUtility.GetBase64LengthFromByteLength(encryptionKey.RootKey.Length) + 4/*separators, type and version*/);
fx\src\data\System\Data\SqlClient\SqlParameter.cs (3)
940value = Convert.ChangeType(value, destinationType.ClassType, (IFormatProvider)null); 970value = Convert.ChangeType(value, destinationType.ClassType, (IFormatProvider)null); 1486((null == _value) || Convert.IsDBNull(_value)) &&
fx\src\data\System\Data\SqlClient\SqlSymmetricKeyCache.cs (1)
48cacheLookupKeyBuilder.Append(Convert.ToBase64String(keyInfo.encryptedKey));
fx\src\data\System\Data\SQLTypes\SQLBinary.cs (2)
492m_value = Convert.FromBase64String(base64); 506writer.WriteString(Convert.ToBase64String(m_value));
fx\src\data\System\Data\SQLTypes\SQLBytes.cs (2)
544 value = Convert.FromBase64String(base64); 557 writer.WriteString(Convert.ToBase64String(value, 0, (int)(this.Length)));
fx\src\data\System\Data\XDRSchema.cs (1)
183if ((Convert.ToInt32(occurs, CultureInfo.InvariantCulture)>1) && (typeNode==null)){
fx\src\data\System\Data\XmlDataLoader.cs (2)
886hasErrors = (bool)Convert.ChangeType(dataReader.Value, typeof(bool), CultureInfo.InvariantCulture); 894rowOrder = (Int32)Convert.ChangeType(dataReader.Value, typeof(Int32), CultureInfo.InvariantCulture);
fx\src\data\System\Data\XMLDiffLoader.cs (1)
295pos = (Int32) Convert.ChangeType(value, typeof(Int32), null);
fx\src\data\System\Data\xmlsaver.cs (3)
78s = (String) Convert.ToString(entry.Key, CultureInfo.InvariantCulture); 88v = (String) Convert.ToString(entry.Value, CultureInfo.InvariantCulture); 1038string prefix = Keywords.APP+Convert.ToString(++prefixCount, CultureInfo.InvariantCulture);
fx\src\data\System\Data\XMLSchema.cs (3)
1766int ordinal = (int)Convert.ChangeType(tmp, typeof(int), null); 1865int ordinal = (int)Convert.ChangeType(tmp, typeof(int), null); 2186int ordinal = (int)Convert.ChangeType(tmp, typeof(int), null);
fx\src\data\System\NewXml\DataPointer.cs (3)
125if (!doc.IsNotMapped( c ) && (c.ColumnMapping == MappingType.Attribute) == fAttribute && (fNulls || ! Convert.IsDBNull( row[c, rowVersion] ) ) ) 463if ( ! Convert.IsDBNull( value ) ) 680Debug.Assert( ! Convert.IsDBNull( row[ this.column, rowVersion ] ) );
fx\src\data\System\NewXml\XmlDataDocument.cs (14)
617if ( ! Convert.IsDBNull( value ) ) { 1238return ( Convert.IsDBNull( value ) ); 1273if ( col.ColumnMapping == MappingType.SimpleContent && Convert.IsDBNull( value ) && !rowElement.IsFoliated ) 1305if ( Convert.IsDBNull( value ) ) { 1335if ( Convert.IsDBNull( value ) ) { 1347if ( !fFound && ! Convert.IsDBNull( value ) ) { 1367if ( Convert.IsDBNull( value ) ) { 1389if ( !fFound && ! Convert.IsDBNull( value ) ) { 1561if ( childCol == null || relation == null || Convert.IsDBNull(child[childCol]) ) { 1923if ( Convert.IsDBNull( proposedValue ) && ! Convert.IsDBNull( currentValue ) ) { 2145row[ col ] = Convert.DBNull; 2237row[column] = Convert.DBNull; 2269row[c] = Convert.DBNull;
fx\src\data\System\NewXml\XPathNodePointer.cs (5)
300if ( ! Convert.IsDBNull( value ) ) 334if ( ! Convert.IsDBNull( value ) ) 520if (!_doc.IsNotMapped( c ) && (c.ColumnMapping == MappingType.Attribute) == fAttribute && ! Convert.IsDBNull( row[c, rowVersion] ) ) 540if (!_doc.IsNotMapped( c ) && (c.ColumnMapping == MappingType.Attribute) == fAttribute && !Convert.IsDBNull( row[c, rowVersion] ) ) 1491Debug.Assert( ! Convert.IsDBNull( row[ this._column, rowVersion ] ) );
System.Data.Entity (25)
System\Data\Common\CommandTrees\ExpressionBuilder\Internal\ArgumentValidation.cs (2)
2058Convert.ToInt64(((DbConstantExpression)expression).Value, CultureInfo.InvariantCulture) < 0); 2112Convert.ChangeType(Enum.Parse(clrEnumType, edmEnumTypeMember.Name), clrEnumType.GetEnumUnderlyingType(), CultureInfo.InvariantCulture)))
System\Data\Common\CommandTrees\Internal\ViewSimplifier.cs (1)
837value = Convert.ChangeType(value, primitiveType.ClrEquivalentType, CultureInfo.InvariantCulture);
System\Data\Common\EntitySql\SemanticAnalyzer.cs (1)
2995if (constExpr != null && System.Convert.ToInt64(constExpr.Value, CultureInfo.InvariantCulture) < 0)
System\Data\Mapping\DefaultObjectMappingItemCollection.cs (2)
713edmEnumType.Members.OrderBy(m => Convert.ToInt64(m.Value, CultureInfo.InvariantCulture)).ThenBy(m => m.Name).GetEnumerator(); 715objectEnumType.Members.OrderBy(m => Convert.ToInt64(m.Value, CultureInfo.InvariantCulture)).ThenBy(m => m.Name).GetEnumerator();
System\Data\Mapping\FunctionImportMapping.cs (2)
599if (null == columnValue || Convert.IsDBNull(columnValue)) 667bool valueIsNull = null == columnValue || Convert.IsDBNull(columnValue);
System\Data\Mapping\StorageMappingItemLoader.cs (3)
2339bool isNullValue = Convert.ToBoolean(isNull, CultureInfo.InvariantCulture); 3014isPartial = Convert.ToBoolean(partialAttribute, System.Globalization.CultureInfo.InvariantCulture); 3310isNullValue = Convert.ToBoolean(isNullAttribute, System.Globalization.CultureInfo.InvariantCulture);
System\Data\Mapping\Update\Internal\FunctionUpdateCommand.cs (1)
303rowsAffected = Convert.ToInt64(m_rowsAffectedParameter.Value, CultureInfo.InvariantCulture);
System\Data\Mapping\Update\Internal\Propagator.Evaluator.cs (1)
553return Convert.ChangeType(value, clrPrimitiveType, formatProvider);
System\Data\Mapping\Update\Internal\UpdateCompiler.cs (3)
446if (Convert.IsDBNull(principalValue)) 471principalValue = Convert.ChangeType(principalValue, principalType.GetEnumUnderlyingType(), CultureInfo.InvariantCulture); 478principalValue = Convert.ChangeType(principalValue, columnClrEquivalentType, CultureInfo.InvariantCulture);
System\Data\Mapping\Update\Internal\UpdateTranslator.cs (1)
561value = Convert.ChangeType(value, clrType, CultureInfo.InvariantCulture);
System\Data\Metadata\Converter.cs (1)
1063var enumMember = new EnumMember(somEnumMember.Name, Convert.ChangeType(somEnumMember.Value, clrEnumUnderlyingType, CultureInfo.InvariantCulture));
System\Data\Metadata\Edm\EnumType.cs (2)
105Convert.ChangeType(Enum.Parse(clrType, name), clrType.GetEnumUnderlyingType(), CultureInfo.InvariantCulture))); 168Debug.Assert(Helper.IsEnumMemberValueInRange(UnderlyingType.PrimitiveTypeKind, Convert.ToInt64(enumMember.Value, CultureInfo.InvariantCulture)));
System\Data\Metadata\Edm\MetadataItem.cs (1)
261Debug.Assert(System.Convert.ToInt32(flag & ~MetadataFlags.Readonly,CultureInfo.InvariantCulture) == 0,
System\Data\Metadata\ObjectLayer\ObjectItemConventionAssemblyLoader.cs (1)
303Convert.ChangeType(
System\Data\Objects\ELinq\Translator.cs (1)
146value = System.Convert.ChangeType(linq.Value, nonNullableLinqType.GetEnumUnderlyingType(), CultureInfo.InvariantCulture);
System\Data\Query\PlanCompiler\NominalTypeEliminator.cs (1)
1886Convert.ChangeType(op.Value, op.Value.GetType().GetEnumUnderlyingType(), CultureInfo.InvariantCulture) :
System\Data\SqlClient\SqlGen\DmlSqlGenerator.cs (1)
441false, out scaleFacet) && Convert.ToInt32(scaleFacet.Value, CultureInfo.InvariantCulture) == 0);
System.Data.Entity.Design (10)
System\Data\Entity\Design\EntityStoreSchemaGenerator\EntityStoreSchemaGenerator.DbObjectKey.cs (3)
33if (catalog != null && !Convert.IsDBNull(catalog)) 42if (schema != null && !Convert.IsDBNull(schema)) 51if (name != null && !Convert.IsDBNull(name))
System\Data\Entity\Design\SSDLGenerator\FunctionDetailsReader.cs (7)
154return Convert.IsDBNull(value) ? default(T) : (T)value; 256get { return Convert.IsDBNull(_currentRow[PARAM_NAME_INDEX]); } 266get { return Convert.IsDBNull(_currentRow[PARAM_TYPE_INDEX]); } 276get { return Convert.IsDBNull(_currentRow[PARAM_DIRECTION_INDEX]); } 430get { return Convert.IsDBNull(_currentRow[PARAM_NAME_INDEX]); } 440get { return Convert.IsDBNull(_currentRow[PARAM_TYPE_INDEX]); } 450get { return Convert.IsDBNull(_currentRow[PARAM_DIRECTION_INDEX]); }
System.Data.Linq (18)
DbConvert.cs (7)
98return Enum.ToObject(toType, Convert.ChangeType(value, Enum.GetUnderlyingType(toType), Globalization.CultureInfo.InvariantCulture)); 106return Convert.ChangeType(Convert.ChangeType(value, 124return new TimeSpan((long)Convert.ChangeType(value, typeof(long), Globalization.CultureInfo.InvariantCulture)); 140return Convert.ChangeType(((TimeSpan)value).Ticks, toType, Globalization.CultureInfo.InvariantCulture); 177return Convert.ChangeType(value, toType, Globalization.CultureInfo.InvariantCulture); 187return Convert.ChangeType(value, toType, Globalization.CultureInfo.InvariantCulture);
SqlClient\Query\MethodCallConverter.cs (3)
151int iValue = System.Convert.ToInt32(this.Eval(bo.Right), Globalization.CultureInfo.InvariantCulture); 155int iValue = System.Convert.ToInt32(this.Eval(bo.Right), Globalization.CultureInfo.InvariantCulture); 161int iValue = System.Convert.ToInt32(this.Eval(bo.Right), Globalization.CultureInfo.InvariantCulture);
SqlClient\Query\QueryConverter.cs (1)
1885else if (declType == typeof(DBConvert) || declType == typeof(Convert)) {
SqlClient\Query\SqlMethodCallConverter.cs (2)
307if (mc.Method.IsStatic && mc.Method.DeclaringType == typeof(Convert) && mc.Arguments.Count == 1) { 921else if (declType == typeof(System.Convert)) {
SqlClient\SqlProvider.cs (2)
1160prec = (int)Convert.ChangeType(piPrecision.GetValue(p, null), typeof(int), CultureInfo.InvariantCulture); 1164scale = (int)Convert.ChangeType(piScale.GetValue(p, null), typeof(int), CultureInfo.InvariantCulture);
SqlClient\SqlTypeSystemProvider.cs (2)
992piPrecision.SetValue(parameter, Convert.ChangeType(sqlType.Precision, piPrecision.PropertyType, CultureInfo.InvariantCulture), null); 996piScale.SetValue(parameter, Convert.ChangeType(sqlType.Scale, piScale.PropertyType, CultureInfo.InvariantCulture), null);
Types.cs (1)
835sb.Append(System.Convert.ToBase64String(this.bytes, 0, this.bytes.Length));
System.Data.Services (21)
System\Data\Services\Epm\EpmHelper.cs (6)
86if (!Boolean.TryParse(Convert.ToString(epmKeepInContentProperty.Value, CultureInfo.InvariantCulture), out epmKeepInContent)) 112epmSourcePath = Convert.ToString(epmSourcePathProperty.Value, CultureInfo.InvariantCulture); 115String epmTargetPath = Convert.ToString(epmTargetPathProperty.Value, CultureInfo.InvariantCulture); 157String epmNsPrefix = epmNsPrefixProperty != null ? Convert.ToString(epmNsPrefixProperty.Value, CultureInfo.InvariantCulture) : null; 158String epmNsUri = epmNsUriProperty != null ? Convert.ToString(epmNsUriProperty.Value, CultureInfo.InvariantCulture) : null; 177Convert.ToString(epmContentKindProperty.Value, CultureInfo.InvariantCulture),
System\Data\Services\Epm\EpmSyndicationContentSerializer.cs (1)
196date = new DateTimeOffset(Convert.ToDateTime(propertyValue, CultureInfo.InvariantCulture));
System\Data\Services\Parsing\WebConvert.cs (3)
520targetValue = Convert.FromBase64String(text); 524targetValue = new System.Data.Linq.Binary(Convert.FromBase64String(text)); 674result = Convert.ToBase64String(byteArray);
System\Data\Services\Serializers\BatchWriter.cs (1)
111string text = Convert.ToString(headerValue, System.Globalization.CultureInfo.InvariantCulture);
System\Data\Services\Serializers\JsonDeserializer.cs (9)
91return Convert.FromBase64String(stringValue); 95return new System.Data.Linq.Binary(Convert.FromBase64String(stringValue)); 108return Convert.ChangeType(value, propertyType, CultureInfo.InvariantCulture); 116return Convert.ToInt16(intValue); 120return Convert.ToByte(intValue); 124return Convert.ToSByte(intValue); 128return Convert.ToSingle(intValue); 132return Convert.ToDouble(intValue); 155return Convert.ToSingle(doubleValue);
System\Data\Services\Serializers\JsonSerializer.cs (1)
372string result = Convert.ToBase64String(byteArray, Base64FormattingOptions.None);
System.Data.Services.Client (5)
parent\Server\System\Data\Services\Parsing\WebConvert.cs (1)
674result = Convert.ToBase64String(byteArray);
System\Data\Services\Client\ALinq\DataServiceQueryProvider.cs (1)
124return (TElement)Convert.ChangeType(((DataServiceQuery<TElement>)query).GetQuerySetCount(this.Context), typeof(TElement), System.Globalization.CultureInfo.InvariantCulture.NumberFormat);
System\Data\Services\Client\ClientConvert.cs (3)
146return Convert.FromBase64String(propertyValue); 192return Activator.CreateInstance(knownTypes[(int)StorageType.Binary], Convert.FromBase64String(propertyValue)); 305return Convert.ToBase64String((byte[])propertyValue);
System.Data.Services.Design (8)
parent\Server\System\Data\Services\Epm\EpmHelper.cs (6)
86if (!Boolean.TryParse(Convert.ToString(epmKeepInContentProperty.Value, CultureInfo.InvariantCulture), out epmKeepInContent)) 112epmSourcePath = Convert.ToString(epmSourcePathProperty.Value, CultureInfo.InvariantCulture); 115String epmTargetPath = Convert.ToString(epmTargetPathProperty.Value, CultureInfo.InvariantCulture); 157String epmNsPrefix = epmNsPrefixProperty != null ? Convert.ToString(epmNsPrefixProperty.Value, CultureInfo.InvariantCulture) : null; 158String epmNsUri = epmNsUriProperty != null ? Convert.ToString(epmNsUriProperty.Value, CultureInfo.InvariantCulture) : null; 177Convert.ToString(epmContentKindProperty.Value, CultureInfo.InvariantCulture),
System\Data\EntityModel\Emitters\AttributeEmitter.cs (2)
204if (!Boolean.TryParse(Convert.ToString(isOpenTypeProperty.Value, CultureInfo.InvariantCulture), out isOpenType)) 540if (!String.Equals(Convert.ToString(hasStreamMetadataProperty.Value, CultureInfo.InvariantCulture),
System.Data.SqlXml (10)
System\Xml\Xsl\QIL\QilXmlWriter.cs (1)
144this.writer.WriteValue(Convert.ToString(((QilLiteral) node).Value, CultureInfo.InvariantCulture));
System\Xml\Xsl\Runtime\XmlQueryRuntime.cs (1)
479value = Convert.ChangeType(value, destinationType, CultureInfo.InvariantCulture);
System\Xml\Xsl\XsltOld\NumberAction.cs (2)
120str = Convert.ToString(val, CultureInfo.InvariantCulture); 435numberingFormat.setGroupingSize(Convert.ToInt32(groupingSize, CultureInfo.InvariantCulture));
System\Xml\Xsl\XsltOld\Processor.cs (2)
613return nav != null ? Convert.ToBoolean(nav.Value, CultureInfo.InvariantCulture) : Convert.ToBoolean(objValue, CultureInfo.InvariantCulture);
System\Xml\Xsl\XsltOld\XsltCompileContext.cs (4)
570return Convert.ToBoolean(IteratorToString(it), CultureInfo.InvariantCulture); 574return Convert.ToBoolean(nav.ToString(), CultureInfo.InvariantCulture); 576return Convert.ToBoolean(argument, CultureInfo.InvariantCulture); 592return Convert.ChangeType(ToNumber(argument), typeCode, CultureInfo.InvariantCulture);
System.Drawing (11)
commonui\System\Drawing\Advanced\ColorTranslator.cs (6)
240c = Color.FromArgb(Convert.ToInt32(htmlColor.Substring(1, 2), 16), 241Convert.ToInt32(htmlColor.Substring(3, 2), 16), 242Convert.ToInt32(htmlColor.Substring(5, 2), 16)); 249c = Color.FromArgb(Convert.ToInt32(r + r, 16), 250Convert.ToInt32(g + g, 16), 251Convert.ToInt32(b + b, 16));
commonui\System\Drawing\Color.cs (1)
1500return Convert.ToString(value, 16);
misc\DebugHandleTracker.cs (4)
146Debug.WriteLine("While removing, couldn't find handle: " + Convert.ToString(unchecked((int)handle), 16)); 184Debug.WriteLine("Handle Allocating: " + Convert.ToString(unchecked((int)handle), 16)); 262Debug.WriteLine("Handle Releaseing: " + Convert.ToString(unchecked((int)handle), 16)); 359return Convert.ToString(unchecked((int)handle), 16) + description + ": " + sp.ToString();
System.IdentityModel (38)
System\IdentityModel\CanonicalFormWriter.cs (2)
20EncodeAndWrite(stream, Convert.ToBase64String(data)); 24int encodedLength = Convert.ToBase64CharArray(data, 0, data.Length, base64WorkBuffer, 0, Base64FormattingOptions.None);
System\IdentityModel\Claims\ClaimsConversionHelper.cs (2)
159_value = Convert.ToBase64String(((byte[])claim.Resource)); 165_value = Convert.ToBase64String(((byte[])claim.Resource));
System\IdentityModel\Diagnostics\DigestTraceRecordHelper.cs (2)
76writer.WriteElementString(CanonicalOctets, Convert.ToBase64String(contentBuffer)); 82writer.WriteElementString(CanonicalOctetsHash, Convert.ToBase64String(_hash.Hash));
System\IdentityModel\Diagnostics\SecurityTraceRecordHelper.cs (1)
167return Convert.ToBase64String(channelBindingData, Base64FormattingOptions.None);
System\IdentityModel\Protocols\WSTrust\WSTrustSerializationHelper.cs (6)
1015writer.WriteElementString(trustConstants.Prefix, trustConstants.Elements.KeySize, trustConstants.NamespaceURI, Convert.ToString(((int)elementValue), CultureInfo.InvariantCulture)); 1451rstr.KeySizeInBits = Convert.ToInt32(reader.ReadElementContentAsString(), CultureInfo.InvariantCulture); 1883writer.WriteElementString(trustConstants.Prefix, trustConstants.Elements.KeySize, trustConstants.NamespaceURI, Convert.ToString((int)elementValue, CultureInfo.InvariantCulture)); 2237binaryData = Convert.FromBase64String(reader.ReadElementContentAsString()); 2278binaryData = Convert.ToBase64String(binaryExchange.BinaryData); 2856return new BinarySecretSecurityToken(Convert.FromBase64String(base64KeyBytes));
System\IdentityModel\SecurityUtils.cs (1)
282return Convert.ToInt64(regValue, CultureInfo.InvariantCulture);
System\IdentityModel\SignedXml.cs (2)
380this.signatureValue = System.Convert.FromBase64String(signatureText.Trim()); 1305this.digestValue = System.Convert.FromBase64String(digestText.Trim());
System\IdentityModel\Tokens\BinaryKeyIdentifierClause.cs (1)
76return Convert.ToBase64String(this.identificationData);
System\IdentityModel\Tokens\BootstrapContext.cs (4)
41using (XmlDictionaryReader reader = XmlDictionaryReader.CreateTextReader(Convert.FromBase64String(info.GetString(_tokenKey)), XmlDictionaryReaderQuotas.Max)) 52_tokenString = Text.Encoding.UTF8.GetString(Convert.FromBase64String(info.GetString(_tokenKey))); 63_tokenString = Text.Encoding.UTF8.GetString(Convert.FromBase64String(info.GetString(_tokenKey))); 167info.AddValue(_tokenKey, Convert.ToBase64String(ms.GetBuffer(), 0, (int)ms.Length));
System\IdentityModel\Tokens\EncryptedKeyIdentifierClause.cs (1)
83Convert.ToBase64String(GetRawBuffer()), this.EncryptionMethod);
System\IdentityModel\Tokens\RsaKeyIdentifierClause.cs (2)
79Convert.ToBase64String(this.rsaParameters.Modulus), 80Convert.ToBase64String(this.rsaParameters.Exponent));
System\IdentityModel\Tokens\Saml2SecurityTokenHandler.cs (4)
534nonce = Convert.FromBase64String(value); 553nonce = Convert.FromBase64String(value); 695writer.WriteAttributeString(WSC.Attributes.Nonce, WSC.Namespace, Convert.ToBase64String(nonce)); 1685key = Convert.ToBase64String(hashAlgorithm.ComputeHash(Encoding.UTF8.GetBytes(stringBuilder.ToString())));
System\IdentityModel\Tokens\SamlSecurityTokenHandler.cs (3)
825key = Convert.ToBase64String(hashAlgorithm.ComputeHash(Encoding.UTF8.GetBytes(stringBuilder.ToString()))); 1879writer.WriteAttributeString(SamlConstants.AttributeNames.MajorVersion, null, Convert.ToString(SamlConstants.MajorVersionValue, CultureInfo.InvariantCulture)); 1880writer.WriteAttributeString(SamlConstants.AttributeNames.MinorVersion, null, Convert.ToString(SamlConstants.MinorVersionValue, CultureInfo.InvariantCulture));
System\IdentityModel\Tokens\WSSecurityJan2004.cs (2)
234nonce = Convert.FromBase64String(nonceString); 240length = Convert.ToInt32(lengthString, CultureInfo.InvariantCulture);
System\IdentityModel\Tokens\XmlDsigSep2000.cs (2)
180byte[] modulus = Convert.FromBase64String( reader.ReadString() ); 184byte[] exponent = Convert.FromBase64String( reader.ReadString() );
System\IdentityModel\WrappedReader.cs (1)
183byte[] value = isBase64 ? Convert.FromBase64String(encodedValue) : HexBinary.Parse(encodedValue).Value;
System\IdentityModel\X509Util.cs (1)
192string thumbprint = Convert.ToBase64String(certificate.GetCertHash());
System\ServiceModel\Security\EncryptedKeyHashIdentifierClause.cs (1)
35return string.Format(CultureInfo.InvariantCulture, "EncryptedKeyHashIdentifierClause(Hash = {0})", Convert.ToBase64String(GetRawBuffer()));
System.Management (42)
property.cs (30)
303 ((UInt64[])val) [i] = Convert.ToUInt64((String)(wmiValueArray.GetValue(i)),(IFormatProvider)CultureInfo.CurrentCulture.GetFormat(typeof(System.UInt64))); 317 ((Int64[])val) [i] = Convert.ToInt64((String)(wmiValueArray.GetValue(i)),(IFormatProvider)CultureInfo.CurrentCulture.GetFormat(typeof(System.Int64))); 356 val = Convert.ToUInt64((String)wmiValue,(IFormatProvider)CultureInfo.CurrentCulture.GetFormat(typeof(System.UInt64))); 360 val = Convert.ToInt64((String)wmiValue,(IFormatProvider)CultureInfo.CurrentCulture.GetFormat(typeof(System.Int64))); 403 ((Int16[])(wmiValue))[i] = (Int16)Convert.ToSByte(valArray.GetValue(i),(IFormatProvider)culInfo.GetFormat(typeof(System.SByte))); 413 ((Byte[])wmiValue)[i] = Convert.ToByte(valArray.GetValue(i),(IFormatProvider)culInfo.GetFormat(typeof(System.Byte))); 424 ((Int16[])(wmiValue))[i] = Convert.ToInt16(valArray.GetValue(i),(IFormatProvider)culInfo.GetFormat(typeof(System.Int16))); 431 ((Int32[])(wmiValue))[i] = (Int32)(Convert.ToUInt16(valArray.GetValue(i),(IFormatProvider)culInfo.GetFormat(typeof(System.UInt16)))); 441 ((Int32[])(wmiValue))[i] = Convert.ToInt32(valArray.GetValue(i),(IFormatProvider)culInfo.GetFormat(typeof(System.Int32))); 448 ((Int32[])(wmiValue))[i] = (Int32)(Convert.ToUInt32(valArray.GetValue(i),(IFormatProvider)culInfo.GetFormat(typeof(System.UInt32)))); 454 ((String[])(wmiValue))[i] = (Convert.ToInt64(valArray.GetValue(i),(IFormatProvider)culInfo.GetFormat(typeof(System.Int64)))).ToString((IFormatProvider)culInfo.GetFormat(typeof(System.Int64))); 460 ((String[])(wmiValue))[i] = (Convert.ToUInt64(valArray.GetValue(i),(IFormatProvider)culInfo.GetFormat(typeof(System.UInt64)))).ToString((IFormatProvider)culInfo.GetFormat(typeof(System.UInt64))); 470 ((Single[])(wmiValue))[i] = Convert.ToSingle(valArray.GetValue(i),(IFormatProvider)culInfo.GetFormat(typeof(System.Single))); 481 ((Double[])(wmiValue))[i] = Convert.ToDouble(valArray.GetValue(i),(IFormatProvider)culInfo.GetFormat(typeof(System.Double))); 488 ((Int16[])(wmiValue))[i] = (Int16)Convert.ToChar(valArray.GetValue(i),(IFormatProvider)culInfo.GetFormat(typeof(System.Char))); 511 ((Boolean[])(wmiValue))[i] = Convert.ToBoolean(valArray.GetValue(i),(IFormatProvider)culInfo.GetFormat(typeof(System.Boolean))); 539 wmiValue = (Int16)Convert.ToSByte(val,(IFormatProvider)culInfo.GetFormat(typeof(System.Int16))); 543 wmiValue = Convert.ToByte(val,(IFormatProvider)culInfo.GetFormat(typeof(System.Byte))); 547 wmiValue = Convert.ToInt16(val,(IFormatProvider)culInfo.GetFormat(typeof(System.Int16))); 551 wmiValue = (Int32)(Convert.ToUInt16(val,(IFormatProvider)culInfo.GetFormat(typeof(System.UInt16)))); 555 wmiValue = Convert.ToInt32(val,(IFormatProvider)culInfo.GetFormat(typeof(System.Int32))); 559 wmiValue = (Int32)Convert.ToUInt32(val,(IFormatProvider)culInfo.GetFormat(typeof(System.UInt32))); 563 wmiValue = (Convert.ToInt64(val,(IFormatProvider)culInfo.GetFormat(typeof(System.Int64)))).ToString((IFormatProvider)culInfo.GetFormat(typeof(System.Int64))); 567 wmiValue = (Convert.ToUInt64(val,(IFormatProvider)culInfo.GetFormat(typeof(System.UInt64)))).ToString((IFormatProvider)culInfo.GetFormat(typeof(System.UInt64))); 571 wmiValue = Convert.ToSingle(val,(IFormatProvider)culInfo.GetFormat(typeof(System.Single))); 575 wmiValue = Convert.ToDouble(val,(IFormatProvider)culInfo.GetFormat(typeof(System.Double))); 579 wmiValue = (Int16)Convert.ToChar(val,(IFormatProvider)culInfo.GetFormat(typeof(System.Char))); 589 wmiValue = Convert.ToBoolean(val,(IFormatProvider)culInfo.GetFormat(typeof(System.Boolean))); 776 wmiValue = Convert.ToString(val,(IFormatProvider)culInfo.GetFormat(typeof(System.UInt32))); 778 wmiValue = Convert.ToInt32(val,(IFormatProvider)culInfo.GetFormat(typeof(System.Int32)));
qualifier.cs (3)
122 ((Int32[])(wmiValue))[i] = Convert.ToInt32(valArray.GetValue(i),(IFormatProvider)CultureInfo.InvariantCulture.GetFormat(typeof(System.Int32))); 128 ((Double[])(wmiValue))[i] = Convert.ToDouble(valArray.GetValue(i),(IFormatProvider)CultureInfo.InvariantCulture.GetFormat(typeof(System.Double))); 140 ((Boolean[])(wmiValue))[i] = Convert.ToBoolean(valArray.GetValue(i),(IFormatProvider)CultureInfo.InvariantCulture.GetFormat(typeof(System.Boolean)));
WmiGenerator.cs (9)
1889Int64 test = System.Convert.ToInt64(ValueMap[i],(IFormatProvider)CultureInfo.InvariantCulture.GetFormat(typeof(System.UInt64))); 1894if (System.Convert.ToInt64( 1993Int64 test = System.Convert.ToInt64(BitMap[i],(IFormatProvider)CultureInfo.InvariantCulture.GetFormat(typeof(System.UInt64))); 2009if( (System.Convert.ToInt64(BitMap[i],(IFormatProvider)CultureInfo.InvariantCulture.GetFormat(typeof(System.UInt64))) == 0) ) // Bug No: 121987 5130ret = System.Convert.ToInt32(strTemp,(IFormatProvider)CultureInfo.InvariantCulture.GetFormat(typeof(System.Int32))); 5134ret = System.Convert.ToInt32(bitMap,(IFormatProvider)CultureInfo.InvariantCulture.GetFormat(typeof(System.Int32))); 5279ret = System.Convert.ToBoolean(classobj.Qualifiers["dynamic"].Value,(IFormatProvider)CultureInfo.InvariantCulture.GetFormat(typeof(System.Boolean))); 5305arrayToAdd.Add(System.Convert.ToInt32(numericValue,(IFormatProvider)CultureInfo.InvariantCulture.GetFormat(typeof(System.Int32)))); 5311arrayToAdd.Add(System.Convert.ToInt32(numericValue,(IFormatProvider)CultureInfo.InvariantCulture.GetFormat(typeof(System.Int32))));
System.Messaging (5)
System\Messaging\Design\SizeConverter.cs (1)
52long size = Convert.ToInt64(text, culture);
System\Messaging\Design\TimeoutConverter.cs (1)
55double totalSeconds = Convert.ToDouble(text, culture);
System\Messaging\Message.cs (1)
2380integerId = Convert.ToInt32(pieces[1], CultureInfo.InvariantCulture);
System\Messaging\MessageQueueException.cs (2)
71return Res.GetString(Convert.ToString(nativeErrorCode, 16).ToUpper(CultureInfo.InvariantCulture)); 103errorMsg = Res.GetString("UnknownError", Convert.ToString(error, 16));
System.Net (3)
net\PeerToPeer\Collaboration\CollaborationHelperFunctions.cs (3)
68newGuid.data1 = (uint)(Convert.ToUInt32(guidString.Substring(startVal, endVal - startVal), 16)); 71newGuid.data2 = (ushort)(Convert.ToUInt16(guidString.Substring(startVal, endVal - startVal), 16)); 74newGuid.data3 = (ushort)(Convert.ToUInt16(guidString.Substring(startVal, endVal - startVal), 16));
System.Runtime.Remoting (56)
channels\core\corechannel.cs (1)
672byte[] byteArrayContent = Convert.FromBase64String(base64String);
channels\http\combinedhttpchannel.cs (2)
68case "priority": _channelPriority = Convert.ToInt32((String)entry.Value, CultureInfo.InvariantCulture); break; 69case "secure": _secure = Convert.ToBoolean(entry.Value, CultureInfo.InvariantCulture);
channels\http\httpclientchannel.cs (11)
94case "priority": _channelPriority = Convert.ToInt32(entry.Value, CultureInfo.InvariantCulture); break; 98case "timeout": _timeout = Convert.ToInt32(entry.Value, CultureInfo.InvariantCulture); break; 102_clientConnectionLimit = Convert.ToInt32(entry.Value, CultureInfo.InvariantCulture); 108_bUseDefaultCredentials = Convert.ToBoolean(entry.Value, CultureInfo.InvariantCulture); 114_bAuthenticatedConnectionSharing = Convert.ToBoolean(entry.Value, CultureInfo.InvariantCulture); 295case ProxyPortKey: _proxyPort = Convert.ToInt32(value, CultureInfo.InvariantCulture); UpdateProxy(); break; 826case PreAuthenticateKey: _bSecurityPreAuthenticate = Convert.ToBoolean(value, CultureInfo.InvariantCulture); break; 832case ProxyPortKey: _proxyPort = Convert.ToInt32(value, CultureInfo.InvariantCulture); UpdateProxy(); break; 839_timeout = Convert.ToInt32(value, CultureInfo.InvariantCulture); 843case AllowAutoRedirectKey: _bAllowAutoRedirect = Convert.ToBoolean(value, CultureInfo.InvariantCulture); break; 844case UnsafeAuthenticatedConnectionSharingKey: _bUnsafeAuthenticatedConnectionSharing = Convert.ToBoolean(value, CultureInfo.InvariantCulture); break;
channels\http\httpremotinghandler.cs (1)
634statusCode = Convert.ToInt32(userStatusCode, CultureInfo.InvariantCulture);
channels\http\httpserverchannel.cs (6)
113case "listen": _wantsToListen = Convert.ToBoolean(entry.Value, CultureInfo.InvariantCulture); break; 115case "port": _port = Convert.ToInt32(entry.Value, CultureInfo.InvariantCulture); break; 116case "priority": _channelPriority = Convert.ToInt32(entry.Value, CultureInfo.InvariantCulture); break; 117case "suppressChannelData": _bSuppressChannelData = Convert.ToBoolean(entry.Value, CultureInfo.InvariantCulture); break; 118case "useIpAddress": _bUseIpAddress = Convert.ToBoolean(entry.Value, CultureInfo.InvariantCulture); break; 119case "exclusiveAddressUse": _bExclusiveAddressUse = Convert.ToBoolean(entry.Value, CultureInfo.InvariantCulture); break;
channels\http\httpstreams.cs (1)
693contentLength = Convert.ToInt32(contentLengthEntry, CultureInfo.InvariantCulture);
channels\ipc\ipcchannel.cs (1)
71case "priority": _channelPriority = Convert.ToInt32((String)entry.Value, CultureInfo.InvariantCulture); break;
channels\ipc\ipcclientchannel.cs (3)
70case "priority": _channelPriority = Convert.ToInt32(entry.Value, CultureInfo.InvariantCulture); break; 71case "secure": _secure = Convert.ToBoolean(entry.Value, CultureInfo.InvariantCulture); break; 416case ConnectionTimeoutKey: _timeout = Convert.ToInt32(value, CultureInfo.InvariantCulture);
channels\ipc\ipcserverchannel.cs (5)
103case "priority": _channelPriority = Convert.ToInt32(entry.Value, CultureInfo.InvariantCulture); break; 104case "secure": _secure = Convert.ToBoolean(entry.Value, CultureInfo.InvariantCulture); break; 105case "impersonate": _impersonate = Convert.ToBoolean(entry.Value, CultureInfo.InvariantCulture); authSet = true; break; 106case "suppressChannelData": _bSuppressChannelData = Convert.ToBoolean(entry.Value, CultureInfo.InvariantCulture); break; 108case "exclusiveAddressUse": _bExclusiveAddressUse = Convert.ToBoolean(entry.Value, CultureInfo.InvariantCulture); break;
channels\sinks\binaryformattersinks.cs (4)
61case "includeVersions": _includeVersioning = Convert.ToBoolean(entry.Value, CultureInfo.InvariantCulture); break; 62case "strictBinding": _strictBinding = Convert.ToBoolean(entry.Value, CultureInfo.InvariantCulture); break; 333case "includeVersions": _includeVersioning = Convert.ToBoolean(entry.Value, CultureInfo.InvariantCulture); break; 334case "strictBinding": _strictBinding = Convert.ToBoolean(entry.Value, CultureInfo.InvariantCulture); break;
channels\sinks\soapformattersinks.cs (4)
62case "includeVersions": _includeVersioning = Convert.ToBoolean(entry.Value, CultureInfo.InvariantCulture); break; 63case "strictBinding": _strictBinding = Convert.ToBoolean(entry.Value, CultureInfo.InvariantCulture); break; 385case "includeVersions": _includeVersioning = Convert.ToBoolean(entry.Value, CultureInfo.InvariantCulture); break; 386case "strictBinding": _strictBinding = Convert.ToBoolean(entry.Value, CultureInfo.InvariantCulture); break;
channels\tcp\combinedtcpchannel.cs (1)
64case "priority": _channelPriority = Convert.ToInt32((String)entry.Value, CultureInfo.InvariantCulture); break;
channels\tcp\tcpclientchannel.cs (5)
74case "priority": _channelPriority = Convert.ToInt32(entry.Value, CultureInfo.InvariantCulture); break; 75case "secure": _secure = Convert.ToBoolean(entry.Value, CultureInfo.InvariantCulture); break; 598int timeout = Convert.ToInt32(value, CultureInfo.InvariantCulture); 607_receiveTimeout = Convert.ToInt32(value, CultureInfo.InvariantCulture); 615case RetryCountKey: _retryCount = Convert.ToInt32(value, CultureInfo.InvariantCulture); break;
channels\tcp\tcpserverchannel.cs (8)
105case "port": _port = Convert.ToInt32(entry.Value, CultureInfo.InvariantCulture); break; 106case "priority": _channelPriority = Convert.ToInt32(entry.Value, CultureInfo.InvariantCulture); break; 107case "secure": _secure = Convert.ToBoolean(entry.Value); break; 108case "impersonate": _impersonate = Convert.ToBoolean(entry.Value, CultureInfo.InvariantCulture); authSet = true; break; 119bool bReject = Convert.ToBoolean(entry.Value, CultureInfo.InvariantCulture); 134case "suppressChannelData": _bSuppressChannelData = Convert.ToBoolean(entry.Value, CultureInfo.InvariantCulture); break; 135case "useIpAddress": _bUseIpAddress = Convert.ToBoolean(entry.Value, CultureInfo.InvariantCulture); break; 136case "exclusiveAddressUse": _bExclusiveAddressUse = Convert.ToBoolean(entry.Value, CultureInfo.InvariantCulture); break;
metadata\sdlchannelsink.cs (2)
50case "remoteApplicationMetadataEnabled": _bRemoteApplicationMetadataEnabled = Convert.ToBoolean(entry.Value, CultureInfo.InvariantCulture); break; 51case "metadataEnabled": _bMetadataEnabled = Convert.ToBoolean(entry.Value, CultureInfo.InvariantCulture); break;
metadata\wsdlparser.cs (1)
2348sb.Append(Convert.ToInt32(c).ToString("X4"));
System.Runtime.Serialization (5)
System\Runtime\Serialization\DataContract.cs (1)
1943int digestCharsLen = Convert.ToBase64CharArray(digestBytes, 0, digestLen, digestChars, 0);
System\Runtime\Serialization\ExtensionDataReader.cs (1)
716this.value = (bytes == null) ? String.Empty : Convert.ToBase64String(bytes);
System\Runtime\Serialization\Json\XmlJsonReader.cs (1)
1006return Convert.ToChar(intValue);
System\Runtime\Serialization\XmlReaderDelegator.cs (1)
502return Convert.FromBase64String(str);
System\Xml\XmlMtomReader.cs (1)
1385this.stringValue = Convert.ToBase64String(buffer, 0, this.valueCount);
System.Security (25)
system\security\cryptography\xml\cipherdata.cs (2)
84cipherValueElement.AppendChild(document.CreateTextNode(Convert.ToBase64String(CipherValue))); 107m_cipherValue = Convert.FromBase64String(Utils.DiscardWhiteSpaces(cipherValueNode.InnerText));
system\security\cryptography\xml\encryptedtype.cs (1)
195KeySize = Convert.ToInt32(Utils.DiscardWhiteSpaces(keySizeNode.InnerText), null);
system\security\cryptography\xml\keyinfo.cs (15)
256pElement.AppendChild(xmlDocument.CreateTextNode(Convert.ToBase64String(dsaParams.P))); 260qElement.AppendChild(xmlDocument.CreateTextNode(Convert.ToBase64String(dsaParams.Q))); 264gElement.AppendChild(xmlDocument.CreateTextNode(Convert.ToBase64String(dsaParams.G))); 268yElement.AppendChild(xmlDocument.CreateTextNode(Convert.ToBase64String(dsaParams.Y))); 274jElement.AppendChild(xmlDocument.CreateTextNode(Convert.ToBase64String(dsaParams.J))); 280seedElement.AppendChild(xmlDocument.CreateTextNode(Convert.ToBase64String(dsaParams.Seed))); 284counterElement.AppendChild(xmlDocument.CreateTextNode(Convert.ToBase64String(Utils.ConvertIntToByteArray(dsaParams.Counter)))); 344modulusElement.AppendChild(xmlDocument.CreateTextNode(Convert.ToBase64String(rsaParams.Modulus))); 348exponentElement.AppendChild(xmlDocument.CreateTextNode(Convert.ToBase64String(rsaParams.Exponent))); 680subjectKeyIdElement.AppendChild(xmlDocument.CreateTextNode(Convert.ToBase64String(subjectKeyId))); 696x509Element.AppendChild(xmlDocument.CreateTextNode(Convert.ToBase64String(certificate.GetRawCertData()))); 703crlElement.AppendChild(xmlDocument.CreateTextNode(Convert.ToBase64String(m_CRL))); 731m_CRL = Convert.FromBase64String(Utils.DiscardWhiteSpaces(x509CRLNodes.Item(0).InnerText)); 742AddSubjectKeyId(Convert.FromBase64String(Utils.DiscardWhiteSpaces(node.InnerText))); 750AddCertificate(new X509Certificate2(Convert.FromBase64String(Utils.DiscardWhiteSpaces(node.InnerText))));
system\security\cryptography\xml\reference.cs (2)
200digestValueElement.AppendChild(document.CreateTextNode(Convert.ToBase64String(m_digestValue))); 289m_digestValue = Convert.FromBase64String(Utils.DiscardWhiteSpaces(digestValueElement.InnerText));
system\security\cryptography\xml\signature.cs (2)
114signatureValueElement.AppendChild(document.CreateTextNode(Convert.ToBase64String(m_signatureValue))); 169m_signatureValue = Convert.FromBase64String(Utils.DiscardWhiteSpaces(signatureValueElement.InnerText));
system\security\cryptography\xml\signedxml.cs (2)
403signatureLength = Convert.ToInt32(m_signature.SignedInfo.SignatureLength, null); 1005signatureLength = Convert.ToInt32(m_signature.SignedInfo.SignatureLength, null);
system\security\cryptography\xml\utils.cs (1)
492return Convert.ToInt64(regValue, CultureInfo.InvariantCulture);
System.ServiceModel (52)
System\ServiceModel\Channels\ContextProtocol.cs (2)
91Convert.ToBase64String(stream.GetBuffer(), 0, (int)stream.Length), 128XmlReader.Create(new MemoryStream(Convert.FromBase64String(value))));
System\ServiceModel\Channels\HttpChannelFactory.cs (1)
694credentialHash = Convert.ToBase64String(digestBytes);
System\ServiceModel\Channels\HttpChannelHelpers.cs (1)
1457httpProperties.Headers.Add(EventTraceActivity.Name, Convert.ToBase64String(eventTraceActivity.ActivityId.ToByteArray()));
System\ServiceModel\Channels\HttpRequestContext.cs (1)
216byte[] data = Convert.FromBase64String(e2eId);
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\NativeMsmqMessage.cs (1)
543integerId = Convert.ToInt32(pieces[1], CultureInfo.InvariantCulture);
System\ServiceModel\Channels\PeerSecurityHelpers.cs (2)
429writer.WriteString(Convert.ToBase64String(this.authenticator)); 450auth = Convert.FromBase64String(XmlHelper.ReadTextElementAsTrimmedString(authElement));
System\ServiceModel\Channels\PipeConnection.cs (3)
2836builder.Append(Convert.ToBase64String(hashedBytes)); 2898Convert.ToString(error, 16)); 2905Convert.ToString(error, 16));
System\ServiceModel\Channels\PnrpPeerResolver.cs (6)
763EncodeByte(Convert.ToByte(version), ref i, bytes); 764EncodeByte(Convert.ToByte(protocol), ref i, bytes); 765EncodeByte(Convert.ToByte(guids.Length), ref i, bytes); 770EncodeByte(Convert.ToByte(b), ref i, bytes); 782chars[j] = Convert.ToChar(bytes[i++] * 0x100 + bytes[i++]); 791return Convert.ToByte(lo == 1 ? chars[p] & GuidEscape : chars[p] / 0x100);
System\ServiceModel\Channels\ReliableSessionBindingElement.cs (1)
741UInt64 milliseconds = Convert.ToUInt64(timeSpan.TotalMilliseconds);
System\ServiceModel\Channels\ReliableSessionBindingElementImporter.cs (1)
273interval = TimeSpan.FromMilliseconds(Convert.ToDouble(milliseconds));
System\ServiceModel\Channels\WebSocketHelper.cs (1)
56return Convert.ToBase64String(sha.ComputeHash(bytes));
System\ServiceModel\Configuration\IdentityElement.cs (1)
115this.Certificate.EncodedValue = Convert.ToBase64String(certs.Export(certs.Count == 1 ? X509ContentType.SerializedCert : X509ContentType.SerializedStore));
System\ServiceModel\Description\ConfigLoader.cs (1)
90collection.Import(Convert.FromBase64String(element.Certificate.EncodedValue));
System\ServiceModel\Diagnostics\PeerNodeTraceRecord.cs (1)
249writer.WriteElementString("Thumbprint", Convert.ToBase64String(claim.Resource as byte[]));
System\ServiceModel\Dispatcher\XPathCompiler.cs (1)
413ordinal = Convert.ToInt32(numExpr.Number);
System\ServiceModel\MsmqException.cs (2)
204Convert.ToString(error, 16)); 211Convert.ToString(error, 16));
System\ServiceModel\RsaEndpointIdentity.cs (4)
55byte[] modulus = Convert.FromBase64String(reader.ReadElementString(XD.XmlSignatureDictionary.Modulus.Value, XD.XmlSignatureDictionary.Namespace.Value)); 56byte[] exponent = Convert.FromBase64String(reader.ReadElementString(XD.XmlSignatureDictionary.Exponent.Value, XD.XmlSignatureDictionary.Namespace.Value)); 75writer.WriteElementString(XD.XmlSignatureDictionary.Prefix.Value, XD.XmlSignatureDictionary.Modulus, XD.XmlSignatureDictionary.Namespace, Convert.ToBase64String(parameters.Modulus)); 76writer.WriteElementString(XD.XmlSignatureDictionary.Prefix.Value, XD.XmlSignatureDictionary.Exponent, XD.XmlSignatureDictionary.Namespace, Convert.ToBase64String(parameters.Exponent));
System\ServiceModel\Security\IssuanceTokenProviderBase.cs (1)
314long effectiveTicksInterval = Convert.ToInt64((double)this.ServiceTokenValidityThresholdPercentage / 100.0 * (double)serviceTokenTicksInterval, NumberFormatInfo.InvariantInfo);
System\ServiceModel\Security\SctClaimSerializer.cs (2)
48writer.WriteAttributeString(dictionary.Sid, dictionary.EmptyString, Convert.ToBase64String(sidBytes)); 53byte[] sidBytes = Convert.FromBase64String(reader.GetAttribute(dictionary.Sid, dictionary.EmptyString));
System\ServiceModel\Security\Tokens\DerivedKeySecurityToken.cs (1)
180writer.WriteLine(" Nonce: {0}", Convert.ToBase64String(this.Nonce));
System\ServiceModel\Security\Tokens\SecurityContextSecurityToken.cs (1)
221this.keyString = Convert.ToBase64String(this.key);
System\ServiceModel\Security\WSSecurityJan2004.cs (1)
124binaryData = Convert.FromBase64String(encodedData);
System\ServiceModel\Security\WSTrust.cs (2)
528return Convert.FromBase64String(authenticatorString); 879negotiationData = Convert.FromBase64String(encodedBlob);
System\ServiceModel\Syndication\Atom10FeedFormatter.cs (2)
501writer.WriteAttributeString(Atom10Constants.LengthTag, Convert.ToString(link.Length, CultureInfo.InvariantCulture)); 1042length = Convert.ToInt64(lengthStr, CultureInfo.InvariantCulture.NumberFormat);
System\ServiceModel\Syndication\Rss20FeedFormatter.cs (2)
791link.Length = !string.IsNullOrEmpty(val) ? Convert.ToInt64(val, CultureInfo.InvariantCulture.NumberFormat) : 0; 1448writer.WriteAttributeString(Rss20Constants.LengthTag, Rss20Constants.Rss20Namespace, Convert.ToString(link.Length, CultureInfo.InvariantCulture));
System\ServiceModel\X509CertificateEndpointIdentity.cs (2)
59X509Certificate2 certificate = new X509Certificate2(Convert.FromBase64String(reader.ReadElementString())); 90writer.WriteElementString(XD.XmlSignatureDictionary.X509Certificate, XD.XmlSignatureDictionary.Namespace, Convert.ToBase64String(certificateCollection[i].RawData));
System.ServiceModel.Channels (3)
System\ServiceModel\Channels\DuplicateMessageDetector.cs (1)
50hashString = Convert.ToBase64String(hash);
System\ServiceModel\Channels\XmlByteStreamReader.cs (1)
175this.base64StringValue = Convert.ToBase64String(ReadContentAsBase64());
System\ServiceModel\Channels\XmlByteStreamWriter.cs (1)
277byte[] buffer = Convert.FromBase64String(text);
System.ServiceModel.Web (4)
System\ServiceModel\Dispatcher\QueryStringConverter.cs (4)
111return parameter == null ? default(Boolean) : Convert.ToBoolean(parameter, CultureInfo.InvariantCulture); 138return (!string.IsNullOrEmpty(parameter)) ? Convert.FromBase64String(parameter) : new byte[] { }; 231return (parameter != null) ? Convert.ToBase64String((byte[]) parameter, Base64FormattingOptions.None) : null; 236return (parameter != null) ? Convert.ToString(parameter, CultureInfo.InvariantCulture) : null;
System.Transactions (13)
System\Transactions\DistributedTransactionPermission.cs (1)
156this.unrestricted = Convert.ToBoolean(element, CultureInfo.InvariantCulture);
System\Transactions\Enlistment.cs (1)
296Convert.ToString(Interlocked.Increment(ref InternalTransaction.nextHash), CultureInfo.InvariantCulture),
System\Transactions\InternalTransaction.cs (1)
259InstanceIdentifier + Convert.ToString( this.transactionHash, CultureInfo.InvariantCulture ),
System\Transactions\Oletx\DTCTransactionManager.cs (2)
67Marshal.Copy( whereaboutsBuffer.DangerousGetHandle(), this.whereabouts, 0, Convert.ToInt32(this.whereaboutsSize) ); 167returnTimeout = ( Convert.ToUInt32( timeout.TotalMilliseconds, CultureInfo.CurrentCulture ) );
System\Transactions\Oletx\OletxResourceManager.cs (1)
499Convert.ToUInt32( oletxRecoveryInformation.proxyRecoveryInformation.Length, CultureInfo.InvariantCulture ),
System\Transactions\Oletx\OletxTransactionManager.cs (1)
324Marshal.Copy( prepareInfoBuffer.DangerousGetHandle(), prepareInfo, 0, Convert.ToInt32(prepareInfoSize) );
System\Transactions\TransactionInterop.cs (5)
125Convert.ToUInt32(whereabouts.Length), 133Marshal.Copy( cookieBuffer.DangerousGetHandle(), cookie, 0, Convert.ToInt32(cookieSize) ); 239Convert.ToUInt32(cookie.Length), 349Marshal.Copy( propagationTokenBuffer.DangerousGetHandle(), propagationToken, 0, Convert.ToInt32(tokenSize) ); 472Convert.ToUInt32(propagationToken.Length),
System\Transactions\TransactionManager.cs (1)
552streamToWrite.Read( returnValue, 0, Convert.ToInt32( streamToWrite.Length, CultureInfo.InvariantCulture ) );
System.Web (126)
Cache\cache.cs (1)
210return Convert.ToInt32(ObjectCache.ItemCount);
Cache\OutputCache.cs (1)
260int size = System.Convert.ToInt32(mre.Length);
Compilation\BuildManager.cs (1)
1251string s = Convert.ToBase64String(data).ToLower(CultureInfo.InvariantCulture);
Compilation\CodeDOMUtility.cs (1)
305invokeExpr.Method.TargetObject = BuildGlobalCodeTypeReferenceExpression(typeof(System.Convert));
Configuration\HttpCapabilitiesBase.cs (40)
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);
Configuration\MachineKeySection.cs (1)
739result = Convert.ToBase64String(hash);
Configuration\ProcessModelSection.cs (2)
368return (int)Convert.ToInt32((string)base[_propCpuMask], 16); 371base[_propCpuMask] = "0x" + Convert.ToString(value, 16);
Hosting\IIS7WorkerRequest.cs (1)
693byte[] binaryBlob = Convert.FromBase64String(correlationIdString); // unfortunately no TryConvert method
Hosting\ISAPIWorkerRequest.cs (4)
1378int offset = Convert.ToInt32(offset64); 1379int length = Convert.ToInt32(length64); 2921int offset = Convert.ToInt32(offset64); 2922int length = Convert.ToInt32(length64);
HttpCachePolicy.cs (1)
746_etag = Convert.ToBase64String(CryptoUtil.ComputeSHA256Hash(Encoding.UTF8.GetBytes(sb.ToString())));
HttpResponse.cs (2)
549return (_httpWriter != null) ? Convert.ToInt32(_httpWriter.GetBufferedLength()) : 0; 677byte[] chunkPrefix = Encoding.ASCII.GetBytes(Convert.ToString(bufferedLength, 16) + "\r\n");
httpserverutility.cs (2)
907return Convert.ToInt32(_context.Timeout.TotalSeconds); 1122return HtmlEncode(Convert.ToString(value, CultureInfo.CurrentCulture));
HttpWriter.cs (3)
1460_installedFilter.Write(buf.GetBytes(), 0, Convert.ToInt32(len)); 1518_installedFilter.Write(buf.GetBytes(), 0, Convert.ToInt32(len)); 1535_installedFilter.Write(buf.GetBytes(), 0, Convert.ToInt32(len));
Management\SqlWebEventProvider.cs (2)
155sqlCommand.Parameters[n++].Value = (reqInfo != null) ? reqInfo.RequestUrl : Convert.DBNull; 161sqlCommand.Parameters[n++].Value = (exception != null) ? exception.GetType().ToString() : Convert.DBNull;
ModelBinding\BinaryDataModelBinderProvider.cs (1)
47bindingContext.Model = ConvertByteArray(Convert.FromBase64String(realValue));
ModelBinding\DictionaryValueProvider`1.cs (1)
23string attemptedValue = Convert.ToString(rawValue, culture);
ModelBinding\ElementalValueProvider.cs (1)
35? new ValueProviderResult(RawValue, Convert.ToString(RawValue, Culture), Culture)
ModelBinding\ModelMetadata.cs (2)
387string toStringResult = Convert.ToString(Model, CultureInfo.CurrentCulture); 405return Convert.ToString(firstProperty.Model, CultureInfo.CurrentCulture);
ModelBinding\SimpleValueProvider.cs (1)
44string attemptedValue = Convert.ToString(rawValue, _cultureInfo);
OutputCacheModule.cs (3)
280value = Convert.ToBase64String(CryptoUtil.ComputeSHA256Hash(buf)); 758maxage = Convert.ToInt32(directive.Substring(8), CultureInfo.InvariantCulture); 778minfresh = Convert.ToInt32(directive.Substring(10), CultureInfo.InvariantCulture);
Profile\ProfileModule.cs (1)
242sVal = Convert.ToBase64String((byte[])sVal);
Routing\ParsedRoute.cs (4)
246pendingParts.Append(UrlEncode(Convert.ToString(acceptedParameterValue, CultureInfo.InvariantCulture))); 259url.Append(UrlEncode(Convert.ToString(acceptedParameterValue, CultureInfo.InvariantCulture))); 323url.Append(Uri.EscapeDataString(Convert.ToString(value, CultureInfo.InvariantCulture))); 335return "%" + Convert.ToUInt16(m.Value[0]).ToString("x2", CultureInfo.InvariantCulture);
Routing\Route.cs (1)
169string parameterValueString = Convert.ToString(parameterValue, CultureInfo.InvariantCulture);
Security\ADMembershipProvider.cs (2)
3409return Convert.ToBase64String(EncryptPassword(bAll, _LegacyPasswordCompatibilityMode)); 3417byte[] bEncryptedData = Convert.FromBase64String(encryptedString);
Security\SQLMembershipProvider.cs (4)
1906byte[] bSalt = Convert.FromBase64String(salt); 1944return Convert.ToBase64String(bRet); 1958byte[] bIn = Convert.FromBase64String(pass); 1972return Convert.ToBase64String(buf);
State\OutOfProcStateClientManager.cs (1)
108string idHash = Convert.ToBase64String(CryptoUtil.ComputeSHA256Hash(Encoding.UTF8.GetBytes(appId)));
State\sqlstateclientmanager.cs (12)
488cmd.Parameters[1].Value = Convert.DBNull; // @itemShort 489cmd.Parameters[2].Value = Convert.DBNull; // @locked 490cmd.Parameters[3].Value = Convert.DBNull; // @lockDate or @lockAge 491cmd.Parameters[4].Value = Convert.DBNull; // @lockCookie 492cmd.Parameters[5].Value = Convert.DBNull; // @actionFlags 510if (Convert.IsDBNull(cmd.Parameters[2].Value)) { 516Debug.Assert(!Convert.IsDBNull(cmd.Parameters[3].Value), "!Convert.IsDBNull(cmd.Parameters[3].Value)"); 517Debug.Assert(!Convert.IsDBNull(cmd.Parameters[4].Value), "!Convert.IsDBNull(cmd.Parameters[4].Value)"); 549Debug.Assert(!Convert.IsDBNull(cmd.Parameters[1].Value), "!Convert.IsDBNull(cmd.Parameters[1].Value)"); 1079p.Value = Convert.DBNull; 1082Debug.Assert(!Convert.IsDBNull(p), "!Convert.IsDBNull(p)"); 1274param.Value = Convert.DBNull;
UI\ControlBuilder.cs (2)
2441convertedValue = System.Convert.ToString(evalValue, CultureInfo.CurrentCulture); 2444convertedValue = PropertyConverter.ObjectFromString(entry.Type, memberInfo, System.Convert.ToString(evalValue, CultureInfo.CurrentCulture));
UI\DataBinder.cs (1)
367if (value == null || Convert.IsDBNull(value)) {
UI\ObjectConverter.cs (6)
40if (value == null || Convert.IsDBNull(value)) { 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);
UI\ObjectStateFormatter.cs (2)
370byte[] inputBytes = Convert.FromBase64String(inputString); 806result = Convert.ToBase64String(buffer, 0, length);
UI\Page.cs (1)
1060int numViewStateFields = Convert.ToInt32(fieldCountStr, CultureInfo.InvariantCulture);
UI\SessionPageStatePersister.cs (1)
102string sessionViewStateID = Convert.ToString(DateTime.Now.Ticks, 16);
UI\WebControls\basecomparevalidator.cs (1)
487return System.Convert.ToString(value, CultureInfo.CurrentCulture);
UI\WebControls\DetailsView.cs (3)
1491return "\"" + Convert.ToString(pageIndex, CultureInfo.InvariantCulture) + "|\""; 2265return Convert.ToString(PageIndex, CultureInfo.InvariantCulture) + "|" + dataKeyString + "|" + stringWriter.ToString(); 2420newItemIndex = Convert.ToInt32(itemIndexArg, CultureInfo.InvariantCulture) - 1;
UI\WebControls\FormView.cs (1)
2050newItemIndex = Convert.ToInt32(itemIndexArg, CultureInfo.InvariantCulture) - 1;
UI\WebControls\GridView.cs (4)
2786return Convert.ToString(PageIndex, CultureInfo.InvariantCulture) + "|" + Convert.ToString((int)SortDirection, CultureInfo.InvariantCulture) + "|" + sortExpressionString + "|" + dataKeysString + "|" + stringWriter.ToString(); 2811return Convert.ToInt32(commandArgument, CultureInfo.InvariantCulture); 3011newPage = Convert.ToInt32(pageNumberArg, CultureInfo.InvariantCulture) - 1;
UI\WebControls\Parameter.cs (1)
304return value = Convert.ChangeType(value, type, CultureInfo.CurrentCulture);;
UI\WebControls\XmlHierarchyData.cs (1)
65return "/*[position()=" + Convert.ToString(index, CultureInfo.InvariantCulture) + "]";
Util\HttpEncoder.cs (2)
853return Convert.FromBase64CharArray(base64Chars, 0, base64Chars.Length); 868base64Str = Convert.ToBase64String(input);
Util\ProviderUtil.cs (3)
42t = Convert.ToInt32(s, CultureInfo.InvariantCulture); 82t = Convert.ToInt32(s, CultureInfo.InvariantCulture); 123t = Convert.ToInt32(s, CultureInfo.InvariantCulture);
WorkerRequest.cs (1)
1086SendCalculatedContentLength(Convert.ToInt32(contentLength));
System.Web.DataVisualization (5)
Common\DataManager\DataPoint.cs (2)
2294yDate = Convert.ToDateTime(yValue[i], CultureInfo.InvariantCulture); //This will throw an exception in case when the yValue type is not compatible with the DateTime 2315yTime = Convert.ToDateTime(yValue[i], CultureInfo.InvariantCulture); //This will throw an exception in case when the yValue type is not compatible with the DateTime
Common\Formulas\FormulaHelpers.cs (3)
375return Convert.ToInt32(newParamValue, CultureInfo.InvariantCulture); 379return Convert.ToBoolean(newParamValue, CultureInfo.InvariantCulture); 383return Convert.ToDouble(newParamValue, CultureInfo.InvariantCulture);
System.Web.DynamicData (4)
DynamicData\FieldTemplateUserControl.cs (2)
505converter = val => Convert.ToInt32(val, CultureInfo.InvariantCulture).ToString(CultureInfo.InvariantCulture); 508converter = val => Convert.ToDouble(val, CultureInfo.InvariantCulture).ToString(CultureInfo.InvariantCulture);
DynamicData\Util\Misc.cs (2)
93return Convert.ChangeType(value, type, CultureInfo.CurrentCulture); 164return Convert.ChangeType(enumValue, Enum.GetUnderlyingType(enumType), CultureInfo.InvariantCulture);
System.Web.Entity (1)
System\Data\WebControls\EntityDataSourceView.cs (1)
1742return value = Convert.ChangeType(value, parameter.TypeCode, CultureInfo.CurrentCulture); ;
System.Web.Extensions (12)
ApplicationServices\ApplicationServiceHelper.cs (1)
194defaultValue = Convert.ToBase64String((byte[])property.DefaultValue);
ClientServices\Providers\ClientFormsAuthenticationMembershipProvider.cs (3)
487string passwordSalt = Convert.ToBase64String(buf); 564return Convert.ToBase64String(buffer); 648byte [] buf = Convert.FromBase64String(passwordSalt);
ClientServices\Providers\ClientSettingsProvider.cs (3)
734value.SerializedValue = Convert.FromBase64String(propVal); 773cd.SettingsValues[iter] = Convert.ToBase64String((byte[])val); 808SqlHelper.AddParameter(conn, cmd, "@PropVal", Convert.ToBase64String((byte[])val));
Handlers\ScriptResourceHandler.cs (1)
175string hash = Convert.ToBase64String(assembly.ManifestModule.ModuleVersionId.ToByteArray());
UI\WebControls\Dynamic.cs (1)
619typeof(Convert)
UI\WebControls\Expressions\SearchExpression.cs (1)
57string query = Convert.ToString(values.First().Value, CultureInfo.CurrentCulture);
UI\WebControls\ListView.cs (1)
2091return Convert.ToInt32(commandArgument, CultureInfo.InvariantCulture);
UI\WebControls\NumericPagerField.cs (1)
309int pageIndex = Convert.ToInt32(e.CommandName, CultureInfo.InvariantCulture);
System.Web.Mobile (11)
UI\MobileControls\Adapters\ChtmlCalendarAdapter.cs (2)
146_monthList.DataMember = Convert.ToString(_monthsToDisplay + 2, CultureInfo.InvariantCulture); 188list, Convert.ToInt32(list.DataMember, CultureInfo.InvariantCulture));
UI\MobileControls\Adapters\ControlAdapter.cs (2)
229optimumPageWeight = Convert.ToInt32(pageWeight, CultureInfo.InvariantCulture); 246int numLines = Convert.ToInt32(numLinesStr, CultureInfo.InvariantCulture);
UI\MobileControls\Adapters\WmlCalendarAdapter.cs (2)
128_monthList.DataMember = Convert.ToString(_monthsToDisplay + 2, CultureInfo.InvariantCulture); 170list, Convert.ToInt32(list.DataMember, CultureInfo.InvariantCulture));
UI\MobileControls\Adapters\WmlMobileTextWriter.cs (1)
1650_requiresNoSoftkeyLabels = Convert.ToBoolean(RequiresNoSoftkeyLabelsString, CultureInfo.InvariantCulture);
UI\MobileControls\Adapters\WmlPageAdapter.cs (2)
470_requiresUTF8ContentEncoding = Convert.ToBoolean(RequiresUTF8ContentEncodingString, CultureInfo.InvariantCulture); 494_requiresValueAttributeInInputTag = Convert.ToBoolean(RequiresValueAttributeInInputTagString, CultureInfo.InvariantCulture);
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicCalendarAdapter.cs (2)
124_monthList.DataMember = Convert.ToString(_monthsToDisplay + 2, CultureInfo.InvariantCulture); 162list, Convert.ToInt32(list.DataMember, CultureInfo.InvariantCulture));
System.Web.Services (8)
System\Web\Services\Discovery\DynamicVirtualDiscoSearcher.cs (1)
170if (Convert.ToInt32(port, CultureInfo.InvariantCulture) != uri.Port)
System\Web\Services\Protocols\LogicalMethodInfo.cs (1)
559key = Convert.ToBase64String(bytes);
System\Web\Services\Protocols\RemoteDebugger.cs (4)
205string bufferString = Convert.ToBase64String(buffer); 226buffer = Convert.FromBase64String(bufferString); 266byte[] buffer = Convert.FromBase64String(stringBuffer); 310string stringBuffer = Convert.ToBase64String(buffer);
System\Web\Services\Protocols\Scalars.cs (2)
28return (string)Convert.ToString(value, CultureInfo.InvariantCulture); 38return Convert.ChangeType(value, type, CultureInfo.InvariantCulture);
System.Windows.Forms (103)
misc\DebugHandleTracker.cs (4)
146Debug.WriteLine("While removing, couldn't find handle: " + Convert.ToString(unchecked((int)handle), 16)); 184Debug.WriteLine("Handle Allocating: " + Convert.ToString(unchecked((int)handle), 16)); 262Debug.WriteLine("Handle Releaseing: " + Convert.ToString(unchecked((int)handle), 16)); 359return Convert.ToString(unchecked((int)handle), 16) + description + ": " + sp.ToString();
parent\parent\parent\public\Internal\NDP\Inc\mansign2.cs (6)
775base64DecodedMessage = Convert.FromBase64String(encodedMessage); 845base64DecodedMessage = Convert.FromBase64String(timestamps[0].InnerText); 846base64DecodedSignatureValue = Convert.FromBase64String(signatureValues[0].InnerText); 1133policies = Convert.ToUInt32(value); 1767byte[] sigValueBytes = Convert.FromBase64String(signatureValue); 1817timestamp = Convert.ToBase64String(encodedBytes);
winforms\Managed\System\Resources\ResXDataNode.cs (3)
340string raw = Convert.ToBase64String(data); 725return Convert.FromBase64String(sb.ToString()); 728return Convert.FromBase64String(text);
winforms\Managed\System\Resources\ResXResourceWriter.cs (1)
718string raw = Convert.ToBase64String(data);
winforms\Managed\System\WinForms\Application.cs (6)
1623return Convert.ToBoolean(boolStr, CultureInfo.InvariantCulture); 2561Debug.WriteLineIf(CompModSwitches.MSOComponentManager.TraceInfo, "ComponentManager.FRegisterComponent assigned a componentID == [0x" + Convert.ToString(componentID, 16) + "]"); 3422Debug.WriteLineIf(CompModSwitches.MSOComponentManager.TraceInfo, "[0x" + Convert.ToString(componentID, 16) + "] Notifying component manager that we are entering a modal loop"); 3451Debug.WriteLineIf(CompModSwitches.MSOComponentManager.TraceInfo, "[0x" + Convert.ToString(componentID, 16) + "] Calling ComponentManager.FPushMessageLoop..."); 3478Debug.WriteLineIf(CompModSwitches.MSOComponentManager.TraceInfo, "[0x" + Convert.ToString(componentID, 16) + "] ComponentManager.FPushMessageLoop returned " + result.ToString()); 3483Debug.WriteLineIf(CompModSwitches.MSOComponentManager.TraceInfo, "[0x" + Convert.ToString(componentID, 16) + "] Notifying component manager that we are exiting a modal loop");
winforms\Managed\System\WinForms\AxHost.cs (3)
5050return Twip2Pixel(Convert.ToDouble(o, CultureInfo.InvariantCulture), xDirection); 5052return Convert.ToInt32(o, CultureInfo.InvariantCulture); 5060return Convert.ToInt16(o, CultureInfo.InvariantCulture);
winforms\Managed\System\WinForms\Binding.cs (4)
684cevent.Value = Convert.ChangeType(cevent.Value, cevent.DesiredType, CultureInfo.CurrentCulture); 699cevent.Value = Convert.ChangeType(cevent.Value, cevent.DesiredType, CultureInfo.CurrentCulture); 752object ret = Convert.ChangeType(value, type, CultureInfo.CurrentCulture); 823ret = Convert.ChangeType(value, type, CultureInfo.CurrentCulture);
winforms\Managed\System\WinForms\BindingNavigator.cs (1)
598newPosition = Convert.ToInt32(positionItem.Text, CultureInfo.CurrentCulture) - 1;
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2Enum.cs (1)
158v = Convert.ChangeType(v, values[0].GetType(), CultureInfo.InvariantCulture);
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2IManagedPerPropertyBrowsingHandler.cs (2)
160if (!Convert.IsDBNull(varParams[i]) && varParams[i] != null) { 243objects[i] = Convert.DBNull;
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2IPerPropertyBrowsingHandler.cs (1)
299valueItems[i] = Convert.ChangeType(valueItems[i], targetType, CultureInfo.InvariantCulture);
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (1)
890if (pVarResult[0] == null || Convert.IsDBNull(pVarResult[0])) {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2TypeInfoProcessor.cs (1)
810Debug.WriteLineIf(DbgTypeInfoProcessorSwitch.TraceVerbose, "ProcessTypeInfoEnum: adding variable value=" + Convert.ToString(varValue, CultureInfo.InvariantCulture));
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\ComNativeDescriptor.cs (1)
450if (curValue != null && curValue != null && !Convert.IsDBNull(curValue)){
winforms\Managed\System\WinForms\Control.cs (8)
16336prop.Value = ColorTranslator.FromOle(Convert.ToInt32(obj, CultureInfo.InvariantCulture)); 16418prop.Value = ColorTranslator.FromOle(Convert.ToInt32(obj, CultureInfo.InvariantCulture)); 16786return Convert.FromBase64String(sb.ToString()); 16789return Convert.FromBase64String(text); 17336obj = Convert.ToString(obj, CultureInfo.InvariantCulture); 17347byte[] bytes = Convert.FromBase64String(obj.ToString()); 18046propValue = Convert.ToBase64String(bytes); 18062propValue = Convert.ToBase64String(data);
winforms\Managed\System\WinForms\CreateParams.cs (2)
147sb.Append(Convert.ToString(style, 16)); 149sb.Append(Convert.ToString(exStyle, 16));
winforms\Managed\System\WinForms\Cursor.cs (3)
92stream.Read(cursorData, 0, Convert.ToInt32(stream.Length)); // we assume that a cursor is less than 4gig big 126f.Read(cursorData, 0, Convert.ToInt32(f.Length)); // assume that a cursor is less than 4gig... 152stream.Read(cursorData, 0, Convert.ToInt32(stream.Length));// assume that a cursor is less than 4gig...
winforms\Managed\System\WinForms\DataGrid.cs (2)
1454if ((value == null || value == Convert.DBNull) && this.DataMember != null && this.DataMember.Length != 0 ) { 1593if (newDataSource != null && this.BindingContext != null && !(newDataSource == Convert.DBNull))
winforms\Managed\System\WinForms\DataGridBoolColumn.cs (12)
31private object currentValue = Convert.DBNull; 35private object nullValue = Convert.DBNull; 173object value = Convert.DBNull; 205else if (Convert.IsDBNull(value)) { 385if (!Convert.IsDBNull(value)) { 439if (!value && Convert.IsDBNull(currentValue)) 469if (currentValue != Convert.DBNull) { 470currentValue = Convert.DBNull; 476NullValue = Convert.DBNull; 480return nullValue != Convert.DBNull; 490if (Convert.IsDBNull(currentValue)) { 494currentValue = Convert.DBNull;
winforms\Managed\System\WinForms\DataGridTextBoxColumn.cs (1)
427value = Convert.DBNull;
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (2)
1020if (cm == null && this.DataSource != null && dataGridView != null && dataGridView.BindingContext != null && !(this.DataSource == Convert.DBNull)) 1241return (displayValue != null) ? Convert.ToString(displayValue, CultureInfo.CurrentCulture) : string.Empty;
winforms\Managed\System\WinForms\DataGridViewDataConnection.cs (1)
1160if (this.dataSource != null && this.owner.BindingContext != null && !(this.dataSource == Convert.DBNull))
winforms\Managed\System\WinForms\Form.cs (1)
2068return Convert.ToDouble(opacity, CultureInfo.InvariantCulture);
winforms\Managed\System\WinForms\Formatter.cs (1)
356return Convert.ChangeType(value, type, formatInfo);
winforms\Managed\System\WinForms\InputLanguage.cs (6)
192string keyName = Convert.ToString(language, 16); 217int encodingValue = Convert.ToInt32(encoding, 16); 222currentHandle = (IntPtr)Convert.ToInt32((string)substitutions.GetValue(encoding), 16); 240if (currentHandle == (IntPtr)Convert.ToInt32(encoding, 16)) { 265if (language == (0xffff & Convert.ToInt32(encoding.Substring(4,4), 16))) { 269int value = Convert.ToInt32(codeValue, 16);
winforms\Managed\System\WinForms\KeysConverter.cs (1)
219finalValue |= Convert.ToInt64(e, CultureInfo.InvariantCulture);
winforms\Managed\System\WinForms\ListControl.cs (3)
567return (item != null) ? Convert.ToString(item, CultureInfo.CurrentCulture) : ""; 601return (filteredItem != null) ? Convert.ToString(item, CultureInfo.CurrentCulture) : ""; 771if (newDataSource != null && BindingContext != null && !(newDataSource == Convert.DBNull)) {
winforms\Managed\System\WinForms\MessageDecoder.cs (5)
369return "msg=0x" + Convert.ToString(msg, 16) + ID 370+ " hwnd=0x" + Convert.ToString((long)hWnd, 16) 371+ " wparam=0x" + Convert.ToString((long)wparam, 16) 372+ " lparam=0x" + Convert.ToString((long)lparam, 16) + lDescription 373+ " result=0x" + Convert.ToString((long)result, 16);
winforms\Managed\System\WinForms\NativeMethods.cs (14)
4298else if (Convert.IsDBNull(var)) { 4308v.data1 = (IntPtr)Convert.ToByte(var, CultureInfo.InvariantCulture); 4312v.data1 = (IntPtr)Convert.ToChar(var, CultureInfo.InvariantCulture); 4316v.data1 = SysAllocString(Convert.ToString(var, CultureInfo.InvariantCulture)); 4320v.data1 = (IntPtr)Convert.ToInt16(var, CultureInfo.InvariantCulture); 4324v.data1 = (IntPtr)Convert.ToInt32(var, CultureInfo.InvariantCulture); 4328v.SetLong(Convert.ToInt64(var, CultureInfo.InvariantCulture)); 4338Decimal d = Convert.ToDecimal(var, CultureInfo.InvariantCulture); 4351v.SetLong(Convert.ToDateTime(var, CultureInfo.InvariantCulture).ToFileTime()); 4355v.data1 = (IntPtr)Convert.ToSByte(var, CultureInfo.InvariantCulture); 4359v.data1 = (IntPtr)Convert.ToUInt16(var, CultureInfo.InvariantCulture); 4363v.data1 = (IntPtr)Convert.ToUInt32(var, CultureInfo.InvariantCulture); 4367v.SetLong((long)Convert.ToUInt64(var, CultureInfo.InvariantCulture)); 4414return Convert.DBNull;
winforms\Managed\System\WinForms\NativeWindow.cs (2)
1559String appDomain = Convert.ToString(AppDomain.CurrentDomain.GetHashCode(), 16); 1593localClassName = "Window." + Convert.ToString(classStyle, 16);
winforms\Managed\System\WinForms\NumericUpDown.cs (2)
608Value = Constrain(Convert.ToDecimal(Convert.ToInt32(Text, 16)));
winforms\Managed\System\WinForms\ToolStripDropDown.cs (1)
747return Convert.ToDouble(opacity, CultureInfo.InvariantCulture);
winforms\Managed\System\WinForms\WinFormsUtils.cs (1)
414int iValue = Convert.ToInt32(enumValue, CultureInfo.InvariantCulture);
System.Windows.Forms.DataVisualization (5)
Common\DataManager\DataPoint.cs (2)
2294yDate = Convert.ToDateTime(yValue[i], CultureInfo.InvariantCulture); //This will throw an exception in case when the yValue type is not compatible with the DateTime 2315yTime = Convert.ToDateTime(yValue[i], CultureInfo.InvariantCulture); //This will throw an exception in case when the yValue type is not compatible with the DateTime
Common\Formulas\FormulaHelpers.cs (3)
375return Convert.ToInt32(newParamValue, CultureInfo.InvariantCulture); 379return Convert.ToBoolean(newParamValue, CultureInfo.InvariantCulture); 383return Convert.ToDouble(newParamValue, CultureInfo.InvariantCulture);
System.Workflow.Activities (7)
Designers\StateDesignerConnector.cs (2)
312int sourceIndex = Convert.ToInt32(constructionArguments["SourceConnectionIndex"] as string, System.Globalization.CultureInfo.InvariantCulture); 323int targetIndex = Convert.ToInt32(constructionArguments["TargetConnectionIndex"] as string, System.Globalization.CultureInfo.InvariantCulture);
Designers\StateMachineDesignerPaint.cs (2)
47return new Size(Convert.ToInt32(Math.Ceiling(textSize.Width)), Convert.ToInt32(Math.Ceiling(textSize.Height)));
Rules\CodeDomDecompiler.cs (1)
50string svalue = Convert.ToString(value, CultureInfo.InvariantCulture);
Rules\Expressions.cs (1)
2088Convert.ChangeType(fromValueDefault, toType2, CultureInfo.CurrentCulture);
Rules\RuleValidation.cs (1)
2270System.Convert.ChangeType(primitive.Value, lhsType, CultureInfo.CurrentCulture);
System.Workflow.ComponentModel (62)
AuthoringOM\Activity.cs (1)
2170int index = Convert.ToInt32(subPath, CultureInfo.InvariantCulture);
AuthoringOM\Bind.cs (1)
1222arg = Convert.ChangeType(argName, typeof(System.Int32), CultureInfo.InvariantCulture);
AuthoringOM\Compiler\CompileXomlTask.cs (1)
890retVal = (Convert.ToInt32(obj, CultureInfo.InvariantCulture) != 0);
AuthoringOM\Compiler\TypeSystem\AttributeInfo.cs (1)
198return System.Convert.ToBoolean(this.ArgumentValues[argumentIndex], CultureInfo.InvariantCulture);
AuthoringOM\Design\ActivityDesignerLayoutSerializers.cs (3)
227int sourceIndex = Convert.ToInt32(constructionArguments["SourceConnectionIndex"] as string, System.Globalization.CultureInfo.InvariantCulture); 238int targetIndex = Convert.ToInt32(constructionArguments["TargetConnectionIndex"] as string, System.Globalization.CultureInfo.InvariantCulture); 340long propertyValue = Convert.ToInt64((string)value, 16) & 0xFFFFFFFF;
AuthoringOM\Design\Connector.cs (2)
1130int editPointOffset = Convert.ToInt32(DesignerGeometryHelper.DistanceBetweenPoints(previous.Location, (next != null) ? next.Location : this.activeEditPoint.Location)) / 4; 1147int editPointOffset = Convert.ToInt32(DesignerGeometryHelper.DistanceBetweenPoints((previous != null) ? previous.Location : this.activeEditPoint.Location, next.Location)) / 4;
AuthoringOM\Design\DesignerHelpers.cs (6)
79return new Size(Convert.ToInt32(Math.Ceiling(textSize.Width)), Convert.ToInt32(Math.Ceiling(textSize.Height))); 295int alpha = Math.Max(0, Convert.ToInt32(transparency * 255)); 464Color shadowColor = Color.FromArgb(Convert.ToInt32((baseAlphaLevel * lightSourceIntensity)), baseColor); 505Rectangle bounds = new Rectangle(0, 0, Convert.ToInt32(Math.Ceiling(boundsF.Width)), Convert.ToInt32(Math.Ceiling(boundsF.Height)));
AuthoringOM\Design\DesignerWidgets.cs (9)
1342maxTextSize.Width = Math.Max(Convert.ToInt32(Math.Ceiling(size.Width)), maxTextSize.Width); 1343maxTextSize.Height = Math.Max(Convert.ToInt32(Math.Ceiling(size.Height)), maxTextSize.Height); 1978this.drawItems[i].TextSize = new Size(Convert.ToInt32(Math.Ceiling(sizef.Width)), Convert.ToInt32(Math.Ceiling(sizef.Height))); 2167int width = Convert.ToInt32((Math.Ceiling(textSize.Width) / 3)) * 30; 3386this.previewDescTextSize = new Size(Convert.ToInt32(Math.Ceiling(stringSize.Width)), Convert.ToInt32(Math.Ceiling(stringSize.Height))); 3464destnRectangle.Width = Convert.ToInt32(Math.Ceiling((float)previewedActivityImage.Width / stretchFactor)); 3465destnRectangle.Height = Convert.ToInt32(Math.Ceiling((float)previewedActivityImage.Height / stretchFactor));
AuthoringOM\Design\Dialogs\ActivityBindForm.cs (1)
753return Convert.ToBoolean(argumentValues[0], CultureInfo.InvariantCulture);
AuthoringOM\Design\Dialogs\ThemeConfigurationDialog.cs (1)
1219Zoom = Convert.ToInt32((Math.Min(zoom.X, zoom.Y) * 100));
AuthoringOM\Design\Dialogs\WorkflowPageSetupDialog.cs (2)
1232return Convert.ToDecimal((double)printerValue / 100.0d); //in 1/100 of inch 1237return Convert.ToInt32((double)uiValue * 100.0d); //in 1/100 of inch
AuthoringOM\Design\WorkflowLayouts.cs (10)
756this.pageSize.Width = Convert.ToInt32(Math.Ceiling(((float)this.pageSize.Width) / this.scaling)); 757this.pageSize.Height = Convert.ToInt32(Math.Ceiling(((float)this.pageSize.Height) / this.scaling)); 766PageSeparator = new Size(Convert.ToInt32(Math.Ceiling(((float)PageSeparator.Width) / this.scaling)), Convert.ToInt32(Math.Ceiling(((float)PageSeparator.Height) / this.scaling))); 770PageMargins.Left = Convert.ToInt32((float)PageMargins.Left / this.scaling); 771PageMargins.Right = Convert.ToInt32((float)PageMargins.Right / this.scaling); 772PageMargins.Top = Convert.ToInt32((float)PageMargins.Top / this.scaling); 773PageMargins.Bottom = Convert.ToInt32((float)PageMargins.Bottom / this.scaling); 776this.headerFooterMargins.Top = Convert.ToInt32((float)this.printDocument.PageSetupData.HeaderMargin / this.scaling); 777this.headerFooterMargins.Bottom = Convert.ToInt32((float)this.printDocument.PageSetupData.FooterMargin / this.scaling);
AuthoringOM\Design\WorkflowPrinting.cs (16)
154viewPortSize.Width = Convert.ToInt32(Math.Ceiling((float)printableArea.Width / this.scaling)); 155viewPortSize.Height = Convert.ToInt32(Math.Ceiling((float)printableArea.Height / this.scaling)); 158scaledAlignment.X = Convert.ToInt32(Math.Ceiling((float)this.workflowAlignment.X / this.scaling)); 159scaledAlignment.Y = Convert.ToInt32(Math.Ceiling((float)this.workflowAlignment.Y / this.scaling)); 266layoutRectangle.Size = new Size(Convert.ToInt32(Math.Ceiling((stringSize.Width))), Convert.ToInt32(Math.Ceiling((stringSize.Height)))); 346this.totalPrintablePages.X = Convert.ToInt32(Math.Ceiling((this.scaling * (float)rootDesignerSize.Width) / (float)printableArea.Width)); 348this.totalPrintablePages.Y = Convert.ToInt32(Math.Ceiling((this.scaling * (float)rootDesignerSize.Height) / (float)printableArea.Height)); 463if (null != registryValue && registryValue is int) this.headerCustom = Convert.ToBoolean((int)registryValue); 466if (null != registryValue && registryValue is int) this.footerCustom = Convert.ToBoolean((int)registryValue); 469if (null != registryValue && registryValue is int) this.centerHorizontally = Convert.ToBoolean((int)registryValue); 472if (null != registryValue && registryValue is int) this.centerVertically = Convert.ToBoolean((int)registryValue); 498key.SetValue(RegistryHeaderCustom, Convert.ToInt32(this.headerCustom)); 499key.SetValue(RegistryFooterCustom, Convert.ToInt32(this.footerCustom)); 500key.SetValue(RegistryCenterHorizontally, Convert.ToInt32(this.centerHorizontally)); 501key.SetValue(RegistryCenterVertically, Convert.ToInt32(this.centerVertically));
AuthoringOM\Design\WorkflowView.cs (1)
333return Convert.ToInt32(this.zoomLevel * 100);
AuthoringOM\Serializer\WorkflowMarkupSerializer.cs (7)
664stringValue = Convert.ToString(obj, CultureInfo.InvariantCulture); 1161if (defaultValueAttr.Value is IConvertible && value is IConvertible && object.Equals(Convert.ChangeType(defaultValueAttr.Value, property.PropertyType, CultureInfo.InvariantCulture), Convert.ChangeType(value, property.PropertyType, CultureInfo.InvariantCulture))) 1203return Convert.ToString(value, CultureInfo.InvariantCulture); 1244propVal = Convert.ChangeType(value, propertyType, CultureInfo.InvariantCulture); 1287propVal = Convert.ChangeType(value, propertyType, CultureInfo.InvariantCulture); 1755obj = Convert.ChangeType(stringValue, type, CultureInfo.InvariantCulture);
System.Workflow.Runtime (3)
Hosting\SqlWorkflowPersistenceService.cs (1)
761int seconds = Convert.ToInt32(parameters[SqlWorkflowPersistenceService.InstanceOwnershipTimeoutSecondsToken], System.Globalization.CultureInfo.CurrentCulture);
Hosting\WorkflowPersistenceService.cs (1)
71Array.Resize<Byte>(ref result, Convert.ToInt32(compressedStream.Length));
System\Activities\Statements\InteropExecutor.cs (1)
388Array.Resize<byte>(ref this.persistedActivityData, Convert.ToInt32(stream.Length));
System.WorkflowServices (3)
System\ServiceModel\Persistence\SqlPersistenceProviderFactory.cs (2)
200return Convert.ToInt32(this.lockTimeout.TotalSeconds); 302return Convert.ToInt32(timeout.TotalSeconds);
System\Workflow\Runtime\Hosting\ChannelManagerService.cs (1)
119Convert.ToInt32(parameters[ChannelManagerService.MaxIdleChannelsPerEndpointSetting], System.Globalization.CultureInfo.CurrentCulture);
System.Xml (28)
System\Xml\Base64Encoder.cs (3)
58int leftOverChars = Convert.ToBase64CharArray( leftOverBytes, 0, 3, charsLine, 0 ); 81int charCount = Convert.ToBase64CharArray( buffer, index, chunkSize, charsLine, 0 ); 90int leftOverChars = Convert.ToBase64CharArray( leftOverBytes, 0, leftOverBytesCount, charsLine, 0 );
System\Xml\Base64EncoderAsync.cs (3)
42int leftOverChars = Convert.ToBase64CharArray( leftOverBytes, 0, 3, charsLine, 0 ); 65int charCount = Convert.ToBase64CharArray( buffer, index, chunkSize, charsLine, 0 ); 74int leftOverChars = Convert.ToBase64CharArray( leftOverBytes, 0, leftOverBytesCount, charsLine, 0 );
System\Xml\BinaryXml\XmlBinaryReader.cs (1)
3551return Convert.ToBase64String( this.data, this.tokDataPos, this.tokLen );
System\Xml\Schema\ConstraintStruct.cs (2)
254this.dstruct.Dvalue[i] = Convert.ToDecimal (((Array) this.ovalue).GetValue(i),NumberFormatInfo.InvariantInfo); 260this.dstruct.Dvalue[0] = Convert.ToDecimal (this.ovalue, NumberFormatInfo.InvariantInfo);
System\Xml\Schema\DataTypeImplementation.cs (1)
2319byteArrayValue = Convert.FromBase64String(s);
System\Xml\Schema\XmlValueConverter.cs (2)
582return Convert.FromBase64String(XmlConvert.TrimString(value)); 708return Convert.ToBase64String(value);
System\Xml\Serialization\XmlCodeExporter.cs (3)
235valueExpression = new CodePrimitiveExpression(Convert.ToString(value, NumberFormatInfo.InvariantInfo)); 248valueExpression = new CodePrimitiveExpression(Convert.ToString(value, NumberFormatInfo.InvariantInfo)); 275valueExpression = new CodePrimitiveExpression(Convert.ToString(value, NumberFormatInfo.InvariantInfo));
System\Xml\Serialization\Xmlcustomformatter.cs (1)
377return Convert.FromBase64String(value);
System\Xml\Serialization\XmlReflectionImporter.cs (2)
297string value1 = Convert.ToString(accessor.Default, CultureInfo.InvariantCulture); 298string value2 = Convert.ToString(existing.Default, CultureInfo.InvariantCulture);
System\Xml\Serialization\XmlSerializationWriter.cs (3)
1180if (Convert.GetTypeCode(o) == TypeCode.Object && !(o is Guid) && (t != typeof(XmlQualifiedName)) && !(o is XmlNode[]) && (t != typeof(byte[]))) { 3100Writer.Write(Convert.ToString(value, NumberFormatInfo.InvariantInfo)); 3615return typeof(Convert).FullName+".ToInt64("+variable+")";
System\Xml\Serialization\XmlSerializationWriterILGen.cs (1)
2064ilg.Ldc(Convert.ChangeType(value, source.Type, CultureInfo.InvariantCulture));
System\Xml\XmlConvert.cs (2)
1123return Convert.ToDouble(o, NumberFormatInfo.InvariantInfo); 1142return Convert.ToString(value, NumberFormatInfo.InvariantInfo);
System\Xml\XPath\Internal\CompiledXPathExpr.cs (2)
161string s1 = Convert.ToString(x, this.cinfo); 162string s2 = Convert.ToString(y, this.cinfo);
System\Xml\XPath\Internal\OperandQuery.cs (1)
31w.WriteAttributeString("value", Convert.ToString(val, CultureInfo.InvariantCulture));
System\Xml\XPath\Internal\XPathScanner.cs (1)
124kind = (LexKind) Convert.ToInt32(this.CurerntChar, CultureInfo.InvariantCulture);
UIAutomationClientsideProviders (3)
MS\Internal\AutomationProxies\WindowsMenu.cs (1)
2139Misc.PostMessage(_hwnd, NativeMethods.WM_SYSCOMMAND, (IntPtr)NativeMethods.SC_KEYMENU, (IntPtr)Convert.ToInt32(' '));
MS\Internal\AutomationProxies\WindowsSlider.cs (1)
179int newVal = Convert.ToInt32 (val);
MS\Internal\AutomationProxies\WindowsUpDown.cs (1)
243short newPos = Convert.ToInt16(val);
WindowsBase (31)
Base\MS\Internal\IO\Packaging\CompoundFile\RightsManagementEncryptionTransform.cs (3)
761byte[] userNameBytes = Convert.FromBase64String(base64UserName); 938string base64UserName = Convert.ToBase64String(userNameBytes); 1247byte[] userNameBytes = Convert.FromBase64String(base64UserName);
Base\MS\Internal\IO\Packaging\CustomSignedXml.cs (1)
238return Convert.ToInt64(regValue, CultureInfo.InvariantCulture);
Base\MS\Internal\IO\Packaging\XmlDigitalSignatureProcessor.cs (1)
521String hashValueString = System.Convert.ToBase64String(HashStream(hashAlgorithm, transformStream));
Base\MS\Internal\IO\Zip\ZipArchive.cs (4)
551int intMode = Convert.ToInt32(mode, CultureInfo.InvariantCulture); 552int intAccess = Convert.ToInt32(access, CultureInfo.InvariantCulture); 553int intShare = Convert.ToInt32(share, CultureInfo.InvariantCulture); 554int intStreaming = Convert.ToInt32(streaming, CultureInfo.InvariantCulture);
Base\System\Windows\Generated\Int32Rect.cs (4)
195Convert.ToInt32(firstToken, formatProvider), 196Convert.ToInt32(th.NextTokenRequired(), formatProvider), 197Convert.ToInt32(th.NextTokenRequired(), formatProvider), 198Convert.ToInt32(th.NextTokenRequired(), formatProvider));
Base\System\Windows\Generated\Point.cs (2)
167Convert.ToDouble(firstToken, formatProvider), 168Convert.ToDouble(th.NextTokenRequired(), formatProvider));
Base\System\Windows\Generated\Rect.cs (4)
195Convert.ToDouble(firstToken, formatProvider), 196Convert.ToDouble(th.NextTokenRequired(), formatProvider), 197Convert.ToDouble(th.NextTokenRequired(), formatProvider), 198Convert.ToDouble(th.NextTokenRequired(), formatProvider));
Base\System\Windows\Generated\Size.cs (2)
189Convert.ToDouble(firstToken, formatProvider), 190Convert.ToDouble(th.NextTokenRequired(), formatProvider));
Base\System\Windows\Generated\Vector.cs (2)
167Convert.ToDouble(firstToken, formatProvider), 168Convert.ToDouble(th.NextTokenRequired(), formatProvider));
Base\System\Windows\Media\Generated\Matrix.cs (6)
209Convert.ToDouble(firstToken, formatProvider), 210Convert.ToDouble(th.NextTokenRequired(), formatProvider), 211Convert.ToDouble(th.NextTokenRequired(), formatProvider), 212Convert.ToDouble(th.NextTokenRequired(), formatProvider), 213Convert.ToDouble(th.NextTokenRequired(), formatProvider), 214Convert.ToDouble(th.NextTokenRequired(), formatProvider));
Shared\MS\Utility\TraceProvider.cs (1)
293data = Convert.ChangeType(data, Enum.GetUnderlyingType(dataType), CultureInfo.InvariantCulture);
Shared\MS\Win32\NativeMethodsCLR.cs (1)
4726return Convert.DBNull;