45 references to ToByteArray
mscorlib (4)
System\Diagnostics\Eventing\TraceLogging\TraceLoggingEventSource.cs (1)
783
metaData.AddRange(new Guid(value).
ToByteArray
());
system\runtime\interopservices\tceadaptergen\eventproviderwriter.cs (1)
502
rgByteGuid = SourceInterface.GUID.
ToByteArray
();
system\security\accesscontrol\ace.cs (2)
2184
ObjectAceType.
ToByteArray
().CopyTo( binaryForm, baseOffset + offsetLocal );
2191
InheritedObjectAceType.
ToByteArray
().CopyTo( binaryForm, baseOffset + offsetLocal );
PresentationCore (5)
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\GuidTagList.cs (1)
234
stream.Write(guid.
ToByteArray
(), 0, (int)Native.SizeOfGuid);
Core\CSharp\System\Windows\DataObject.cs (1)
2599
private static readonly byte[] _serializedObjectID = new Guid(0xFD9EA796, 0x3B13, 0x4370, 0xA6, 0x79, 0x56, 0x10, 0x6B, 0xB2, 0x88, 0xFB).
ToByteArray
();
Core\CSharp\System\Windows\Media\Imaging\PropVariant.cs (1)
437
byte[] guid = ((Guid)value).
ToByteArray
();
Core\CSharp\System\Windows\Media\PixelFormat.cs (2)
742
byte[] guidBytes = pixelFormatGuid.
ToByteArray
();
841
byte[] b = pixelFormatGuid.
ToByteArray
();
System.Data (11)
fx\src\data\System\Data\SqlClient\TdsParser.cs (7)
825
byte[] connectionIdBytes = _connHandler._clientConnectionId.
ToByteArray
();
833
connectionIdBytes = actId.Id.
ToByteArray
();
5906
byte[] b = guid.
ToByteArray
();
6061
byte[] b = guid.
ToByteArray
();
9770
stateObj.WriteByteArray(actId.Id.
ToByteArray
(), GUID_SIZE, 0); // Id (Guid)
10551
byte[] b = guid.
ToByteArray
();
10777
byte[] b = guid.
ToByteArray
();
fx\src\data\System\Data\SqlClient\TdsValueSetter.cs (1)
531
byte[] bytes = value.
ToByteArray
();
fx\src\data\System\Data\SQLTypes\SQLGuid.cs (3)
83
m_value = (new Guid(s)).
ToByteArray
();
90
m_value = g.
ToByteArray
();
372
m_value = new Guid(reader.ReadElementString()).
ToByteArray
();
System.Data.Linq (2)
DbConvert.cs (2)
39
return new Binary(((Guid)value).
ToByteArray
());
56
return ((Guid)value).
ToByteArray
();
System.Messaging (5)
System\Messaging\Interop\Restrictions.cs (1)
36
Marshal.Copy(value.
ToByteArray
(), 0, data, 16);
System\Messaging\Message.cs (2)
759
properties.SetGuid(NativeMethods.MESSAGE_PROPID_CONNECTOR_TYPE, ((Guid)value).
ToByteArray
());
2392
Array.Copy(guid.
ToByteArray
(), bytes, GenericIdSize);
System\Messaging\MessageQueue.cs (2)
435
Properties.SetGuid(NativeMethods.QUEUE_PROPID_TYPE, value.
ToByteArray
());
641
status = SafeNativeMethods.MQInstanceToFormatName(this.id.
ToByteArray
(), newFormatName, ref result);
System.Net (1)
net\PeerToPeer\Collaboration\CollaborationHelperFunctions.cs (1)
63
byte[] guidBytes = guid.
ToByteArray
();
System.Runtime.Serialization (3)
System\Xml\UniqueID.cs (1)
48
public UniqueId(Guid guid) : this(guid.
ToByteArray
())
System\Xml\XmlBinaryWriter.cs (2)
862
Buffer.BlockCopy(guid.
ToByteArray
(), 0, buffer, offset + 1, 16);
930
byte[] buffer = array[offset + i].
ToByteArray
();
System.ServiceModel (6)
System\ServiceModel\Channels\NativeMsmqMessage.cs (1)
551
Array.Copy(guid.
ToByteArray
(), bytes, guidSize);
System\ServiceModel\Channels\PeerNodeImplementation.cs (1)
411
id = guid.
ToByteArray
();
System\ServiceModel\Channels\PeerUnsafeNativeMethods.cs (1)
370
Marshal.Copy(input.
ToByteArray
(), 0, (IntPtr)result, guidSize);
System\ServiceModel\Channels\PnrpPeerResolver.cs (1)
768
foreach (byte b in guid.
ToByteArray
())
System\ServiceModel\MsmqIntegration\ActiveXSerializer.cs (1)
329
byte[] bytes = ((Guid)obj).
ToByteArray
();
System\ServiceModel\Transactions\WsatProxy.cs (1)
417
byte[] transactionIdBytes = transactionId.
ToByteArray
();
System.Transactions (2)
System\Transactions\Oletx\OletxEnlistment.cs (2)
737
byte[] txGuidArray = transactionGuid.
ToByteArray
();
738
byte[] rmGuidArray = oletxResourceManager.resourceManagerIdentifier.
ToByteArray
();
System.Web (1)
Util\altserialization.cs (1)
123
byte[] bits = guid.
ToByteArray
();
System.Web.DataVisualization (1)
WebForm\General\ChartHttpHandler.cs (1)
1426
static byte[] _privacyMarker = (new Guid("332E3AB032904bceA82B249C25E65CB6")).
ToByteArray
();
System.Web.Extensions (1)
Handlers\ScriptResourceHandler.cs (1)
175
string hash = Convert.ToBase64String(assembly.ManifestModule.ModuleVersionId.
ToByteArray
());
System.Windows.Forms (1)
winforms\Managed\System\WinForms\DataObject.cs (1)
68
private static readonly byte[] serializedObjectID = new Guid("FD9EA796-3B13-4370-A679-56106BB288FB").
ToByteArray
();
System.Workflow.ComponentModel (1)
AuthoringOM\Serializer\SimpleTypesSurrogate.cs (1)
28
info.AddValue("bits", guid.
ToByteArray
());
WindowsBase (1)
Base\MS\Internal\IO\Packaging\CompoundFile\RightsManagementEncryptionTransform.cs (1)
1089
new string(Base32EncodeWithoutPadding(Guid.NewGuid().
ToByteArray
()));