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