8 instantiations of Binary
System.Data.Linq (4)
DbConvert.cs (3)
36return new Binary((byte[])value); 39return new Binary(((Guid)value).ToByteArray()); 48return new Binary(streamArray);
Types.cs (1)
791return new Binary(value);
System.Data.Services (4)
System\Data\Services\Parsing\WebConvert.cs (2)
358(object)new System.Data.Linq.Binary(byteArrayValue) : (object)byteArrayValue; 524targetValue = new System.Data.Linq.Binary(Convert.FromBase64String(text));
System\Data\Services\Serializers\Deserializer.cs (1)
272requestValue = new System.Data.Linq.Binary(propertyValue);
System\Data\Services\Serializers\JsonDeserializer.cs (1)
95return new System.Data.Linq.Binary(Convert.FromBase64String(stringValue));
37 references to Binary
System.Data.Linq (21)
DbConvert.cs (6)
34if (toType == typeof(Binary)) { 52if (fromType == typeof(Binary)) { 53return ((Binary)value).ToArray(); 81else if (fromType == typeof(Binary)) { 83return new Guid(((Binary)value).ToArray()); 87using (MemoryStream stream = new MemoryStream(((Binary)value).ToArray(), false)) {
parent\DbmlShared\Mapping.cs (1)
536type == typeof(TimeSpan) || type == typeof(Binary))
SqlClient\Query\SqlMethodCallConverter.cs (2)
534return m.Expression.ClrType == typeof(Binary) && m.Member.Name == "Length"; 2175else if (baseClrTypeOfExpr == typeof(Binary) && member.Name == "Length") {
SqlClient\SqlMethods.cs (1)
617internal static int RawLength(Binary value) {
SqlClient\SqlTypeSystemProvider.cs (2)
1448if (type == typeof(byte[]) || type == typeof(Binary)) 1568if (type == typeof(byte[]) || type == typeof(Binary))
Types.cs (9)
764public sealed class Binary : IEquatable<Binary> { 790public static implicit operator Binary(byte[] value) { 794public bool Equals(Binary other) { 798public static bool operator ==(Binary binary1, Binary binary2) { 808public static bool operator !=(Binary binary1, Binary binary2) { 819return this.EqualsTo(obj as Binary); 840private bool EqualsTo(Binary binary) {
System.Data.Services (15)
System\Data\Services\Parsing\WebConvert.cs (7)
133else if (value.GetType() == typeof(System.Data.Linq.Binary)) 135return TryKeyPrimitiveToString(((System.Data.Linq.Binary)value).ToArray(), out result); 352if (targetType == typeof(byte[]) || targetType == typeof(System.Data.Linq.Binary)) 357(byteArrayValue != null && targetType == typeof(System.Data.Linq.Binary)) ? 522else if (typeof(System.Data.Linq.Binary) == targetType) 677else if (typeof(System.Data.Linq.Binary) == valueType) 679return TryXmlPrimitiveToString(((System.Data.Linq.Binary)value).ToArray(), out result);
System\Data\Services\Serializers\BinarySerializer.cs (1)
60bytes = (byte[])((System.Data.Linq.Binary)content).ToArray();
System\Data\Services\Serializers\Deserializer.cs (1)
270if (description.Property != null && description.Property.Type == typeof(System.Data.Linq.Binary))
System\Data\Services\Serializers\JsonDeserializer.cs (1)
93else if (propertyType == typeof(System.Data.Linq.Binary))
System\Data\Services\Serializers\JsonSerializer.cs (2)
377Debug.Assert(typeof(System.Data.Linq.Binary) == value.GetType(), "typeof(Binary) == value.GetType() (" + value.GetType() + ")"); 378this.WritePrimitiveValue(((System.Data.Linq.Binary)value).ToArray());
System\Data\Services\WebUtil.cs (3)
96new KeyValuePair<Type, string>(typeof(Binary), XmlConstants.EdmBinaryTypeName), 104new KeyValuePair<Type, string>(typeof(Binary), XmlConstants.MimeApplicationOctetStream), 112new KeyValuePair<Type, ContentFormat>(typeof(Binary), ContentFormat.Binary),
System.Web.DynamicData (1)
DynamicData\ModelProviders\DLinqColumnProvider.cs (1)
102if (memberType == typeof(Binary) && dbType.StartsWith("Image", StringComparison.OrdinalIgnoreCase)) {