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