676 instantiations of Guid
BuildActionTelemetryTable (1)
src\Workspaces\Core\Portable\Shared\Extensions\TelemetryExtensions.cs (1)
35return new Guid(0, scope, additionalSuffix, suffixBytes);
BuildBoss (5)
ProjectEntry.cs (5)
46internal static readonly Guid FolderProjectType = new Guid("2150E333-8FDC-42A3-9474-1A3956D46DE8"); 47internal static readonly Guid VsixProjectType = new Guid("82B43B9B-A64C-4715-B499-D71E9CA2BD60"); 48internal static readonly Guid SharedProject = new Guid("D954291E-2A0B-460D-934E-DC6B0785DB48"); 50internal static readonly Guid ManagedProjectSystemCSharp = new Guid("9A19103F-16F7-4668-BE54-9A1E7A4F7556"); 51internal static readonly Guid ManagedProjectSystemVisualBasic = new Guid("778DAE3C-4631-46EA-AA77-85C1314464D9");
Client.ExpectedExceptions.IntegrationTests (1)
ExpectedExceptionTests.4.1.0.cs (1)
98Guid guid = new Guid(uniqueIdentifier);
dotnet-svcutil-lib (12)
FrameworkFork\Microsoft.Xml\Xml\BinaryXml\XmlBinaryReader.cs (2)
3986Guid v = new Guid(a, b, c, _data[pos + 8], _data[pos + 9], _data[pos + 10], _data[pos + 11], _data[pos + 12], _data[pos + 13], _data[pos + 14], _data[pos + 15]); 4123Guid v = new Guid(a, b, c, _data[pos + 8], _data[pos + 9], _data[pos + 10], _data[pos + 11], _data[pos + 12], _data[pos + 13], _data[pos + 14], _data[pos + 15]);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationReader.cs (1)
694value = new Guid(CollapseWhitespace(ReadStringValue()));
FrameworkFork\Microsoft.Xml\Xml\XmlConvert.cs (2)
1461return new Guid(s); 1472result = new Guid(s);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlReaderDelegator.cs (1)
550return new Guid(str);
FrameworkFork\System.Runtime.Serialization\System\Xml\UniqueId.cs (1)
342guid = new Guid(buffer);
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBufferReader.cs (1)
1139return new Guid(_guid);
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlConverter.cs (1)
322return new Guid(Trim(value));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlDictionaryReader.cs (1)
788value = new Guid(string.Empty);
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Fx.cs (2)
299result = new Guid(guidString); 322result = new Guid(guidString);
Microsoft.AspNetCore.Components.Endpoints (1)
DependencyInjection\ServerComponentInvocationSequence.cs (1)
17Value = new Guid(bytes);
Microsoft.AspNetCore.Components.Endpoints.Tests (2)
Binding\FormDataMapperTests.cs (2)
2131{ "a55eb3df-e984-42b5-85ca-4f68da8567d1", typeof(Guid?), new Guid?(new Guid("a55eb3df-e984-42b5-85ca-4f68da8567d1")) }, 2216{ "a55eb3df-e984-42b5-85ca-4f68da8567d1", typeof(Guid), new Guid("a55eb3df-e984-42b5-85ca-4f68da8567d1") }
Microsoft.AspNetCore.Components.Server.Tests (1)
src\Components\Endpoints\src\DependencyInjection\ServerComponentInvocationSequence.cs (1)
17Value = new Guid(bytes);
Microsoft.AspNetCore.Components.Tests (4)
Routing\QueryParameterValueSupplierTest.cs (4)
39AssertKeyValuePair<Guid>("GuidVal", new Guid("9e7257ad-03aa-42c7-9819-be08b177fef9")); 47AssertKeyValuePair<Guid?>("NullableGuidVal", new Guid("1e7257ad-03aa-42c7-9819-be08b177fef9")); 113AssertKeyValuePair<Guid[]>("GuidVals", new[] { new Guid("9e7257ad-03aa-42c7-9819-be08b177fef9") }); 121AssertKeyValuePair<Guid?[]>("NullableGuidVals", new[] { new Guid("1e7257ad-03aa-42c7-9819-be08b177fef9") });
Microsoft.AspNetCore.Cryptography.Internal.Tests (1)
Cng\BCryptUtilTests.cs (1)
44Guid newGuid = new Guid(bytes.Skip(3).Take(sizeof(Guid)).ToArray());
Microsoft.AspNetCore.DataProtection (2)
AuthenticatedEncryption\AuthenticatedEncryptorExtensions.cs (1)
51CryptoUtil.Assert(roundTrippedData != null && roundTrippedData.Length == plaintextAsBytes.Length && plaintextAsGuid == new Guid(roundTrippedData),
KeyManagement\KeyRingBasedDataProtector.cs (1)
147return new Guid(new ReadOnlySpan<byte>(ptr, sizeof(Guid)));
Microsoft.AspNetCore.DataProtection.Tests (26)
KeyManagement\KeyEscrowServiceProviderExtensionsTests.cs (2)
48sink.Store(new Guid("39974d8e-3e53-4d78-b7e9-4ff64a2a5d7b"), XElement.Parse("<theElement />")); 81sink.Store(new Guid("39974d8e-3e53-4d78-b7e9-4ff64a2a5d7b"), XElement.Parse("<theElement />"));
KeyManagement\KeyRingBasedDataProtectorTests.cs (12)
39Guid defaultKey = new Guid("ba73c9ce-d322-4e45-af90-341307e11c38"); 77Guid defaultKey = new Guid("ba73c9ce-d322-4e45-af90-341307e11c38"); 198Guid notFoundKeyId = new Guid("654057ab-2491-4471-a72a-b3b114afda38"); 251Guid notFoundKeyId = new Guid("654057ab-2491-4471-a72a-b3b114afda38"); 282Guid notFoundKeyId = new Guid("654057ab-2491-4471-a72a-b3b114afda38"); 318Guid notFoundKeyId = new Guid("654057ab-2491-4471-a72a-b3b114afda38"); 385Guid keyId = new Guid("654057ab-2491-4471-a72a-b3b114afda38"); 416Guid defaultKeyId = new Guid("ba73c9ce-d322-4e45-af90-341307e11c38"); 463Guid defaultKeyId = new Guid("ba73c9ce-d322-4e45-af90-341307e11c38"); 511Guid defaultKeyId = new Guid("ba73c9ce-d322-4e45-af90-341307e11c38"); 512Guid embeddedKeyId = new Guid("9b5d2db3-299f-4eac-89e9-e9067a5c1853"); 588Guid defaultKey = new Guid("ba73c9ce-d322-4e45-af90-341307e11c38");
KeyManagement\XmlKeyManagerTests.cs (12)
81var keyId = new Guid("3d6d01fd-c0e7-44ae-82dd-013b996b4093"); 168var keyId = new Guid("3d6d01fd-c0e7-44ae-82dd-013b996b4093"); 372Assert.Equal(new Guid("62a72ad9-42d7-4e97-b3fa-05bad5d53d33"), keys[0].KeyId); 378Assert.Equal(new Guid("041be4c0-52d7-48b4-8d32-f8c0ff315459"), keys[1].KeyId); 449Assert.Equal(new Guid("67f9cdea-83ba-41ed-b160-2b1d0ea30251"), keys[0].KeyId); 451Assert.Equal(new Guid("0cf83742-d175-42a8-94b5-1ec049b354c3"), keys[1].KeyId); 453Assert.Equal(new Guid("21580ac4-c83a-493c-bde6-29a1cc97ca0f"), keys[2].KeyId); 455Assert.Equal(new Guid("6bd14f12-0bb8-4822-91d7-04b360de0497"), keys[3].KeyId); 487Assert.Equal(new Guid("09712588-ba68-438a-a5ee-fe842b3453b2"), keys[0].KeyId); 526Assert.Equal(new Guid("49c0cda9-0232-4d8c-a541-de20cc5a73d6"), keys[0].KeyId); 696keyId: new Guid("a11f35fc-1fed-4bd4-b727-056a63b70932"), 721var keyToRevoke = new Guid("a11f35fc-1fed-4bd4-b727-056a63b70932");
Microsoft.AspNetCore.JsonPatch.SystemTextJson.Tests (3)
Internal\DictionaryAdapterTest.cs (3)
73var guidKey = new Guid(); 160var guidKey = new Guid(); 180var guidKey = new Guid();
Microsoft.AspNetCore.JsonPatch.Tests (3)
Internal\DictionaryAdapterTest.cs (3)
76var guidKey = new Guid(); 163var guidKey = new Guid(); 183var guidKey = new Guid();
Microsoft.AspNetCore.Mvc.Core.Test (1)
ModelBinding\Binders\HeaderModelBinderTests.cs (1)
110var guid = new Guid("3916A5B1-5FE4-4E09-9812-5CDC127FA5B1");
Microsoft.AspNetCore.Server.HttpSys (1)
RequestProcessing\RequestContext.cs (1)
80var guid = new Guid(0xffcb4c93, 0xa57f, 0x453c, 0xb6, 0x3f, 0x84, 0x71, 0xc, 0x79, 0x67, 0xbb);
Microsoft.AspNetCore.Server.IIS (1)
Core\IISHttpContext.IHttpRequestIdentifierFeature.cs (1)
32var guid = new Guid(0xffcb4c93, 0xa57f, 0x453c, 0xb6, 0x3f, 0x84, 0x71, 0xc, 0x79, 0x67, 0xbb);
Microsoft.AspNetCore.Session (3)
DistributedSession.cs (2)
101_sessionId = new Guid(IdBytes).ToString(); 355_sessionId = new Guid(_sessionIdBytes).ToString();
SessionMiddleware.cs (1)
75return new Guid(guidBytes).ToString();
Microsoft.Build (2)
BuildCheck\Checks\UntrustedLocationCheck.cs (1)
71return SHGetKnownFolderPath(new Guid("374DE290-123F-4565-9164-39C4925E467B"), 0, IntPtr.Zero);
Logging\BinaryLogger\BuildEventArgsReader.cs (1)
1744return new Guid(_binaryReader.ReadBytes(16 /*sizeof(Guid) - to avoid unsafe context, Guid will never change in size */));
Microsoft.Build.Framework (1)
BinaryReaderExtensions.cs (1)
101return new Guid(reader.ReadBytes(sizeof(Guid)));
Microsoft.Build.Tasks.CodeAnalysis (1)
MvidReader.cs (1)
151return new Guid(guidBytes!);
Microsoft.Build.Tasks.Core (8)
NativeMethods.cs (8)
546internal static Guid GUID_TYPELIB_NAMESPACE = new Guid("{0F21F359-AB84-41E8-9A78-36D110E6D2F9}"); 547internal static Guid GUID_ExportedFromComPlus = new Guid("{90883f05-3d28-11d2-8f17-00a0c9a6186d}"); 549internal static Guid IID_IUnknown = new Guid("{00000000-0000-0000-C000-000000000046}"); 550internal static Guid IID_IDispatch = new Guid("{00020400-0000-0000-C000-000000000046}"); 551internal static Guid IID_ITypeInfo = new Guid("{00020401-0000-0000-C000-000000000046}"); 552internal static Guid IID_IEnumVariant = new Guid("{00020404-0000-0000-C000-000000000046}"); 553internal static Guid IID_IDispatchEx = new Guid("{A6EF9860-C720-11D0-9337-00A0C90DCAA9}"); 555internal static Guid IID_StdOle = new Guid("{00020430-0000-0000-C000-000000000046}");
Microsoft.CodeAnalysis (27)
DiaSymReader\SymUnmanagedFactory.cs (1)
172var clsid = new Guid(createReader ? SymReaderClsid : SymWriterClsid);
DiaSymReader\Writer\SymUnmanagedWriterImpl.cs (1)
762guid = new Guid(guidBytes);
Interop\ClrStrongName.cs (5)
24var metaHostClsid = new Guid(unchecked((int)0x9280188D), 0xE8E, 0x4867, 0xB3, 0xC, 0x7F, 0xA8, 0x38, 0x84, 0xE8, 0xDE); 25var metaHostGuid = new Guid(unchecked((int)0xD332DB9E), unchecked((short)0xB9B3), 0x4125, 0x82, 0x07, 0xA1, 0x48, 0x84, 0xF5, 0x32, 0x16); 26var clrStrongNameClsid = new Guid(unchecked((int)0xB79B0ACD), unchecked((short)0xF5CD), 0x409b, 0xB5, 0xA5, 0xA1, 0x62, 0x44, 0x61, 0x0B, 0x92); 27var clrRuntimeInfoGuid = new Guid(unchecked((int)0xBD39D1D2), unchecked((short)0xBA2F), 0x486A, 0x89, 0xB0, 0xB4, 0xB0, 0xCB, 0x46, 0x68, 0x91); 28var clrStrongNameGuid = new Guid(unchecked((int)0x9FD93CCF), 0x3280, 0x4391, 0xB3, 0xA9, 0x96, 0xE1, 0xCD, 0xE7, 0x7C, 0x8D);
PEWriter\DebugSourceDocument.cs (4)
16internal static readonly Guid CorSymLanguageTypeCSharp = new Guid("{3f5162f8-07c6-11d3-9053-00c04fa302a1}"); 17internal static readonly Guid CorSymLanguageTypeBasic = new Guid("{3a12d0b8-c26c-11d0-b442-00a0244a1dd2}"); 18private static readonly Guid s_corSymLanguageVendorMicrosoft = new Guid("{994b45c4-e6e9-11d2-903f-00c04fa302a1}"); 19private static readonly Guid s_corSymDocumentTypeText = new Guid("{5a869d0b-6611-11d3-bd2a-0000f80849bd}");
src\Dependencies\CodeAnalysis.Debugging\PortableCustomDebugInfoKinds.cs (14)
11public static readonly Guid AsyncMethodSteppingInformationBlob = new("54FD2AC5-E925-401A-9C2A-F94F171072F8"); 12public static readonly Guid StateMachineHoistedLocalScopes = new("6DA9A61E-F8C7-4874-BE62-68BC5630DF71"); 13public static readonly Guid DynamicLocalVariables = new("83C563C4-B4F3-47D5-B824-BA5441477EA8"); 14public static readonly Guid TupleElementNames = new("ED9FDF71-8879-4747-8ED3-FE5EDE3CE710"); 15public static readonly Guid DefaultNamespace = new("58b2eab6-209f-4e4e-a22c-b2d0f910c782"); 16public static readonly Guid EncLocalSlotMap = new("755F52A8-91C5-45BE-B4B8-209571E552BD"); 17public static readonly Guid EncLambdaAndClosureMap = new("A643004C-0240-496F-A783-30D64F4979DE"); 18public static readonly Guid EncStateMachineStateMap = new("8B78CD68-2EDE-420B-980B-E15884B8AAA3"); 19public static readonly Guid SourceLink = new("CC110556-A091-4D38-9FEC-25AB9A351A6A"); 20public static readonly Guid EmbeddedSource = new("0E8A571B-6926-466E-B4AD-8AB04611F5FE"); 21public static readonly Guid CompilationMetadataReferences = new("7E4D4708-096E-4C5C-AEDA-CB10BA6A740D"); 22public static readonly Guid CompilationOptions = new("B5FEEC05-8CD0-4A83-96DA-466284BB4BD8"); 23public static readonly Guid TypeDefinitionDocuments = new("932E74BC-DBA9-4478-8D46-0F32A7BAB3D3"); 24public static readonly Guid PrimaryConstructorInformationBlob = new("9D40ACE1-C703-4D0E-BF41-7243060A8FB5");
Text\SourceHashAlgorithms.cs (2)
25private static readonly Guid s_guidSha1 = unchecked(new Guid((int)0xff1816ec, (short)0xaa5e, 0x4d10, 0x87, 0xf7, 0x6f, 0x49, 0x63, 0x83, 0x34, 0x60)); 26private static readonly Guid s_guidSha256 = unchecked(new Guid((int)0x8829d00f, 0x11b8, 0x4213, 0x87, 0x8b, 0x77, 0x0e, 0x85, 0x97, 0xac, 0x16));
Microsoft.CodeAnalysis.CSharp (3)
Symbols\Metadata\PE\MetadataDecoder.cs (3)
340Guid interfaceGuidValue = new Guid(); 342Guid scopeGuidValue = new Guid(); 392Guid candidateGuidValue = new Guid();
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (3)
CodeGen\CodeGenFunctionPointersTests.cs (1)
12599private static readonly Guid s_guid = new Guid("97F4DBD4-F6D1-4FAD-91B3-1001F92068E5");
Emit\DynamicAnalysis\DynamicAnalysisResourceTests.cs (1)
1071var sha1 = new Guid("ff1816ec-aa5e-4d10-87f7-6f4963833460");
src\Compilers\Core\MSBuildTask\MvidReader.cs (1)
151return new Guid(guidBytes!);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
src\Compilers\Core\MSBuildTask\MvidReader.cs (1)
151return new Guid(guidBytes!);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
src\Compilers\Core\MSBuildTask\MvidReader.cs (1)
151return new Guid(guidBytes!);
Microsoft.CodeAnalysis.CSharp.EndToEnd.UnitTests (1)
src\Compilers\Core\MSBuildTask\MvidReader.cs (1)
151return new Guid(guidBytes!);
Microsoft.CodeAnalysis.Debugging.Package (14)
PortableCustomDebugInfoKinds.cs (14)
11public static readonly Guid AsyncMethodSteppingInformationBlob = new("54FD2AC5-E925-401A-9C2A-F94F171072F8"); 12public static readonly Guid StateMachineHoistedLocalScopes = new("6DA9A61E-F8C7-4874-BE62-68BC5630DF71"); 13public static readonly Guid DynamicLocalVariables = new("83C563C4-B4F3-47D5-B824-BA5441477EA8"); 14public static readonly Guid TupleElementNames = new("ED9FDF71-8879-4747-8ED3-FE5EDE3CE710"); 15public static readonly Guid DefaultNamespace = new("58b2eab6-209f-4e4e-a22c-b2d0f910c782"); 16public static readonly Guid EncLocalSlotMap = new("755F52A8-91C5-45BE-B4B8-209571E552BD"); 17public static readonly Guid EncLambdaAndClosureMap = new("A643004C-0240-496F-A783-30D64F4979DE"); 18public static readonly Guid EncStateMachineStateMap = new("8B78CD68-2EDE-420B-980B-E15884B8AAA3"); 19public static readonly Guid SourceLink = new("CC110556-A091-4D38-9FEC-25AB9A351A6A"); 20public static readonly Guid EmbeddedSource = new("0E8A571B-6926-466E-B4AD-8AB04611F5FE"); 21public static readonly Guid CompilationMetadataReferences = new("7E4D4708-096E-4C5C-AEDA-CB10BA6A740D"); 22public static readonly Guid CompilationOptions = new("B5FEEC05-8CD0-4A83-96DA-466284BB4BD8"); 23public static readonly Guid TypeDefinitionDocuments = new("932E74BC-DBA9-4478-8D46-0F32A7BAB3D3"); 24public static readonly Guid PrimaryConstructorInformationBlob = new("9D40ACE1-C703-4D0E-BF41-7243060A8FB5");
Microsoft.CodeAnalysis.EditorFeatures (5)
Copilot\CopilotConstants.cs (2)
23public static readonly Guid CopilotIconMonikerGuid = new("{4515B9BD-70A1-45FA-9545-D4536417C596}"); 24public static readonly Guid CopilotQuotaExceededGuid = new("39B0DEDE-D931-4A92-9AA2-3447BC4998DC");
Suggestions\SuggestedActionsSourceProvider.cs (3)
45private static readonly Guid s_CSharpSourceGuid = new Guid("b967fea8-e2c3-4984-87d4-71a38f49e16a"); 46private static readonly Guid s_visualBasicSourceGuid = new Guid("4de30e93-3e0c-40c2-a4ba-1124da4539f6"); 47private static readonly Guid s_xamlSourceGuid = new Guid("a0572245-2eab-4c39-9f61-06a6d8c5ddda");
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (3)
BlindAggregatorFactory.cs (3)
131private static readonly Guid s_IUnknownInterfaceGuid = new Guid(0x00000000, 0x0000, 0x0000, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46); 134private static readonly Guid s_IMarshalInterfaceGuid = new Guid(0x00000003, 0x0000, 0x0000, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46); 137private static readonly Guid s_IComWrapperGuid = new Guid("CBD71F2C-6BC5-4932-B851-B93EB3151386");
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
CustomTypeInfo.cs (1)
16internal static readonly Guid PayloadTypeId = new Guid("108766CE-DF68-46EE-B761-0DCB7AC805F1");
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (1)
FunctionResolver.cs (1)
171private static readonly Guid s_messageSourceId = new Guid("ac353c9b-c599-427b-9424-cbe1ad19f81e");
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (1)
src\ExpressionEvaluator\Core\Source\ExpressionCompiler\CustomTypeInfo.cs (1)
16internal static readonly Guid PayloadTypeId = new Guid("108766CE-DF68-46EE-B761-0DCB7AC805F1");
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (3)
Debugger\Engine\DkmLanguageId.cs (1)
20return new Guid("3A12D0B7-C26C-11D0-B442-00A0244A1DD2");
Debugger\Engine\DkmVendorId.cs (1)
20return new Guid("994B45C4-E6E9-11D2-903F-00C04FA302A1");
src\ExpressionEvaluator\Core\Source\ExpressionCompiler\CustomTypeInfo.cs (1)
16internal static readonly Guid PayloadTypeId = new Guid("108766CE-DF68-46EE-B761-0DCB7AC805F1");
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (1)
Cohost\Constants.cs (1)
15public static readonly Guid RazorCohostingUIContext = new Guid("6d5b86dc-6b8a-483b-ae30-098a3c7d6774");
Microsoft.CodeAnalysis.Features (15)
Completion\Providers\AbstractInternalsVisibleToCompletionProvider.cs (1)
271var projectId = ProjectId.CreateFromSerialized(new Guid(projectIdGuid));
src\Dependencies\CodeAnalysis.Debugging\PortableCustomDebugInfoKinds.cs (14)
11public static readonly Guid AsyncMethodSteppingInformationBlob = new("54FD2AC5-E925-401A-9C2A-F94F171072F8"); 12public static readonly Guid StateMachineHoistedLocalScopes = new("6DA9A61E-F8C7-4874-BE62-68BC5630DF71"); 13public static readonly Guid DynamicLocalVariables = new("83C563C4-B4F3-47D5-B824-BA5441477EA8"); 14public static readonly Guid TupleElementNames = new("ED9FDF71-8879-4747-8ED3-FE5EDE3CE710"); 15public static readonly Guid DefaultNamespace = new("58b2eab6-209f-4e4e-a22c-b2d0f910c782"); 16public static readonly Guid EncLocalSlotMap = new("755F52A8-91C5-45BE-B4B8-209571E552BD"); 17public static readonly Guid EncLambdaAndClosureMap = new("A643004C-0240-496F-A783-30D64F4979DE"); 18public static readonly Guid EncStateMachineStateMap = new("8B78CD68-2EDE-420B-980B-E15884B8AAA3"); 19public static readonly Guid SourceLink = new("CC110556-A091-4D38-9FEC-25AB9A351A6A"); 20public static readonly Guid EmbeddedSource = new("0E8A571B-6926-466E-B4AD-8AB04611F5FE"); 21public static readonly Guid CompilationMetadataReferences = new("7E4D4708-096E-4C5C-AEDA-CB10BA6A740D"); 22public static readonly Guid CompilationOptions = new("B5FEEC05-8CD0-4A83-96DA-466284BB4BD8"); 23public static readonly Guid TypeDefinitionDocuments = new("932E74BC-DBA9-4478-8D46-0F32A7BAB3D3"); 24public static readonly Guid PrimaryConstructorInformationBlob = new("9D40ACE1-C703-4D0E-BF41-7243060A8FB5");
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
EditAndContinue\ActiveStatementsDescription.cs (1)
164var moduleId = new Guid("00000000-0000-0000-0000-000000000001");
Microsoft.CodeAnalysis.Features.UnitTests (8)
EditAndContinue\EditAndContinueMethodDebugInfoReaderTests.cs (1)
113Assert.Equal(new Guid("ff1816ec-aa5e-4d10-87f7-6f4963833460"), actualAlgorithm);
EditAndContinue\EditSessionActiveStatementsTests.cs (6)
139var module1 = new Guid("11111111-1111-1111-1111-111111111111"); 140var module2 = new Guid("22222222-2222-2222-2222-222222222222"); 141var module3 = new Guid("33333333-3333-3333-3333-333333333333"); 142var module4 = new Guid("44444444-4444-4444-4444-444444444444"); 328var module1 = new Guid("11111111-1111-1111-1111-111111111111"); 476var module1 = new Guid("11111111-1111-1111-1111-111111111111");
EditAndContinue\RemoteEditAndContinueServiceTests.cs (1)
93var moduleId1 = new Guid("{44444444-1111-1111-1111-111111111111}");
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Protocol\Internal\Converters\ImageIdConverter.cs (1)
28return new ImageId(new Guid(guid), id);
Microsoft.CodeAnalysis.Rebuild (6)
CompilationOptionsReader.cs (6)
28public static readonly Guid HashAlgorithmSha1 = unchecked(new Guid((int)0xff1816ec, (short)0xaa5e, 0x4d10, 0x87, 0xf7, 0x6f, 0x49, 0x63, 0x83, 0x34, 0x60)); 29public static readonly Guid HashAlgorithmSha256 = unchecked(new Guid((int)0x8829d00f, 0x11b8, 0x4213, 0x87, 0x8b, 0x77, 0x0e, 0x85, 0x97, 0xac, 0x16)); 32public static readonly Guid MetadataReferenceInfoGuid = new Guid("7E4D4708-096E-4C5C-AEDA-CB10BA6A740D"); 35public static readonly Guid CompilationOptionsGuid = new Guid("B5FEEC05-8CD0-4A83-96DA-466284BB4BD8"); 38public static readonly Guid EmbeddedSourceGuid = new Guid("0E8A571B-6926-466E-B4AD-8AB04611F5FE"); 41public static readonly Guid SourceLinkGuid = new Guid("CC110556-A091-4D38-9FEC-25AB9A351A6A");
Microsoft.CodeAnalysis.Workspaces (4)
Shared\Extensions\TelemetryExtensions.cs (1)
35return new Guid(0, scope, additionalSuffix, suffixBytes);
src\Compilers\Core\Portable\Text\SourceHashAlgorithms.cs (2)
25private static readonly Guid s_guidSha1 = unchecked(new Guid((int)0xff1816ec, (short)0xaa5e, 0x4d10, 0x87, 0xf7, 0x6f, 0x49, 0x63, 0x83, 0x34, 0x60)); 26private static readonly Guid s_guidSha256 = unchecked(new Guid((int)0x8829d00f, 0x11b8, 0x4213, 0x87, 0x8b, 0x77, 0x0e, 0x85, 0x97, 0xac, 0x16));
Workspace\Solution\SourceGeneratedDocumentIdentity.cs (1)
68var guid = new Guid(hash);
Microsoft.CodeAnalysis.Workspaces.UnitTests (3)
ObjectSerializationTests.cs (3)
605test(new Guid(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1)); 606test(new Guid(0b10000000000000000000000000000000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1)); 607test(new Guid(0b10000000000000000000000000000000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
Microsoft.DotNet.Build.Tasks.Installers (2)
src\GenerateGuidFromName.cs (2)
22Guid namespaceId = new Guid("28F1468D-672B-489A-8E0C-7C5B3030630C"); 47GeneratedGuid = (new Guid(res)).ToString();
Microsoft.DotNet.Build.Tasks.VisualStudio (1)
Vsix\GetPkgDefAssemblyDependencyGuid.cs (1)
65item.SetMetadata(OutputMetadata, new Guid(reducedHash).ToString("B").ToUpperInvariant());
Microsoft.DotNet.Build.Tasks.Workloads (1)
Utils.cs (1)
181return new Guid(hash);
Microsoft.DotNet.SignCheckLibrary (1)
Interop\WinTrust.cs (1)
12public static readonly Guid WINTRUST_ACTION_GENERIC_VERIFY_V2 = new Guid("{00AAC56B-CD44-11d0-8CC2-00C04FC295EE}");
Microsoft.Extensions.Caching.MicroBenchmarks (1)
DistributedCacheBenchmarks.cs (1)
85_backend.Get(new Guid().ToString()); // just to touch it first
Microsoft.Extensions.Telemetry.PerformanceTests (1)
ExtendedLoggerBench.cs (1)
26private static readonly Guid _guid = new(new byte[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 });
Microsoft.ML.Core (1)
CommandLine\CmdParser.cs (1)
1882value = new System.Guid(data);
Microsoft.VisualStudio.LanguageServices (39)
FindReferences\StreamingFindUsagesPresenter.cs (1)
308var guid = new Guid("a80febb4-e7e0-4147-b476-21aaf2453969");
Guids.cs (31)
29public static readonly Guid CSharpProjectExistsInWorkspaceUIContext = new(CSharpProjectExistsInWorkspaceUIContextString); 36public static readonly Guid CSharpPackageId = new(CSharpPackageIdString); 37public static readonly Guid CSharpProjectId = new(CSharpProjectIdString); 38public static readonly Guid CSharpLanguageServiceId = new(CSharpLanguageServiceIdString); 39public static readonly Guid CSharpEditorFactoryId = new(CSharpEditorFactoryIdString); 40public static readonly Guid CSharpCodePageEditorFactoryId = new(CSharpCodePageEditorFactoryIdString); 41public static readonly Guid CSharpCommandSetId = new(CSharpCommandSetIdString); // guidCSharpCmdId 42public static readonly Guid CSharpGroupId = new(CSharpGroupIdString); // guidCSharpGrpId 43public static readonly Guid CSharpRefactorIconId = new(CSharpRefactorIconIdString); // guidCSharpRefactorIcon 44public static readonly Guid CSharpGenerateIconId = new(CSharpGenerateIconIdString); // guidCSharpGenerateIcon 45public static readonly Guid CSharpOrganizeIconId = new(CSharpOrganizeIconIdString); // guidCSharpOrganizeIcon 46public static readonly Guid CSharpDebuggerLanguageId = new(CSharpDebuggerLanguageIdString); 47public static readonly Guid CSharpLibraryId = new(CSharpLibraryIdString); 80public static readonly Guid VisualBasicProjectExistsInWorkspaceUIContext = new(VisualBasicProjectExistsInWorkspaceUIContextString); 82public static readonly Guid VisualBasicPackageId = new(VisualBasicPackageIdString); 83public static readonly Guid VisualBasicCompilerServiceId = new(VisualBasicCompilerServiceIdString); 84public static readonly Guid VisualBasicLanguageServiceId = new(VisualBasicLanguageServiceIdString); 85public static readonly Guid VisualBasicEditorFactoryId = new(VisualBasicEditorFactoryIdString); 86public static readonly Guid VisualBasicCodePageEditorFactoryId = new(VisualBasicCodePageEditorFactoryIdString); 87public static readonly Guid VisualBasicLibraryId = new(VisualBasicLibraryIdString); 89public static readonly Guid VisualBasicProjectId = new(VisualBasicProjectIdString); 92public static readonly Guid VisualBasicDebuggerLanguageId = new(VisualBasicDebuggerLanguageIdString); 101public static readonly Guid FSharpPackageId = new(FSharpPackageIdString); 118public static readonly Guid RoslynPackageId = new(RoslynPackageIdString); 119public static readonly Guid RoslynCommandSetId = new(RoslynCommandSetIdString); 120public static readonly Guid RoslynGroupId = new(RoslynGroupIdString); 123public static readonly Guid ValueTrackingToolWindowId = new(ValueTrackingToolWindowIdString); 126public static readonly Guid StackTraceExplorerToolWindowId = new(StackTraceExplorerToolWindowIdString); 128public static readonly Guid StackTraceExplorerCommandId = new(StackTraceExplorerCommandIdString); 131public static readonly Guid DocumentOutlineSearchCategoryId = new(DocumentOutlineSearchCategoryIdString); 136public static readonly Guid GlobalHubClientPackageGuid = new("11AD60FC-6D87-4674-8F88-9ABE79176CBE");
KeybindingReset\KeybindingResetDetector.cs (2)
58private static readonly Guid s_resharperPackageGuid = new("0C6E6407-13FC-4878-869A-C8B4016C57FE"); 59private static readonly Guid s_resharperCommandGroup = new("47F03277-5055-4922-899C-0F7F30D26BF1");
Packaging\PackageInstallerServiceFactory.cs (2)
697var nugetGuid = new Guid("5fcc8577-4feb-4d04-ad72-d6c629b083cc"); 717var extensionGuid = new Guid("042C2B4B-C7F7-49DB-B7A2-402EB8DC7892");
PdbSourceDocument\PdbSourceDocumentOutputWindowLogger.cs (1)
25private static readonly Guid s_outputPaneGuid = new Guid("f543e896-2e9c-48b8-8fac-d1d5030b4b89");
ProjectSystem\MetadataReferences\VisualStudioMetadataReferenceManager.NativeMethods.cs (1)
12private static readonly Guid s_IID_IMetaDataImport = new("7DAC8207-D3AE-4c75-9B67-92801A497D44");
StackTraceExplorer\StackTraceExplorerToolWindow.cs (1)
154var refCommandId = new Guid(Guids.StackTraceExplorerCommandIdString);
Microsoft.VisualStudio.LanguageServices.CSharp (7)
CSharpExtension.cs (1)
23=> new(GroupPlacement.VsctParent(new Guid(VSConstants.CMDSETID.ShellMainMenu_string), VsMenus.IDM_VS_CTXT_PROJNODE, priority: 0x0400))
Interactive\CSharpVsInteractiveWindowPackage.cs (1)
16internal static readonly Guid Id = new(IdString);
Options\CSharpVisualStudioCopilotOptionsService.cs (4)
49private static readonly UIContext s_copilotHasLoadedUIContext = UIContext.FromUIContextGuid(new Guid(CopilotHasLoadedGuid)); 50private static readonly UIContext s_gitHubAccountStatusDeterminedContext = UIContext.FromUIContextGuid(new Guid(GitHubAccountStatusDetermined)); 51private static readonly UIContext s_gitHubAccountStatusIsCopilotEntitledUIContext = UIContext.FromUIContextGuid(new Guid(GitHubAccountStatusIsCopilotEntitled)); 52private static readonly UIContext s_gitHubAccountStatusSignedInUIContext = UIContext.FromUIContextGuid(new Guid(GitHubAccountStatusSignedIn));
SemanticSearch\SemanticSearchToolWindow.cs (1)
25internal static readonly Guid Id = new("91ef2fc9-e39d-1962-9b55-7047b01b40f7");
Microsoft.VisualStudio.LanguageServices.Xaml (1)
Implementation\XamlTextViewCreationListener.cs (1)
26private static readonly Guid s_serverUIContextGuid = new Guid("39F55746-6E65-4FCF-BEC5-EC0B466EAC0F");
MSBuildTaskHost (1)
BinaryReaderExtensions.cs (1)
101return new Guid(reader.ReadBytes(sizeof(Guid)));
PresentationBuildTasks (5)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (2)
3636private static readonly Guid s_hashSHA256Guid = new Guid(0x8829d00f, 0x11b8, 0x4213, 0x87, 0x8b, 0x77, 0x0e, 0x85, 0x97, 0xac, 0x16); 3637private static readonly Guid s_hashSHA1Guid = new Guid(0xff1816ec, 0xaa5e, 0x4d10, 0x87, 0xf7, 0x6f, 0x49, 0x63, 0x83, 0x34, 0x60);
MS\Internal\Tasks\TaskFileService.cs (3)
435private static Guid s_hashSHA256Guid = new Guid(0x8829d00f, 0x11b8, 0x4213, 0x87, 0x8b, 0x77, 0x0e, 0x85, 0x97, 0xac, 0x16); 436private static Guid s_hashSHA1Guid = new Guid(0xff1816ec, 0xaa5e, 0x4d10, 0x87, 0xf7, 0x6f, 0x49, 0x63, 0x83, 0x34, 0x60); 437private static Guid s_hashMD5Guid = new Guid(0x406ea660, 0x64cf, 0x4c82, 0xb6, 0xf0, 0x42, 0xd4, 0x81, 0x72, 0xa7, 0x99);
PresentationCore (163)
MS\Internal\Ink\GestureRecognizer\NativeRecognizer.cs (2)
786private static readonly Guid GUID_CONFIDENCELEVEL = new Guid("{7DFE11A7-FB5D-4958-8765-154ADF0D833F}"); 812private static Guid s_Gesture = new Guid(GestureRecognizerGuid);
MS\Internal\Ink\InkSerializedFormat\GuidTagList.cs (1)
265_customGuids.Add(new Guid(guids));
MS\Internal\Ink\InkSerializedFormat\ISFTagAndGuidCache.cs (54)
14new Guid(0x598a6a8f, 0x52c0, 0x4ba0, 0x93, 0xaf, 0xaf, 0x35, 0x74, 0x11, 0xa5, 0x61), 15new Guid(0xb53f9f75, 0x04e0, 0x4498, 0xa7, 0xee, 0xc3, 0x0d, 0xbb, 0x5a, 0x90, 0x11), 16new Guid(0x735adb30, 0x0ebb, 0x4788, 0xa0, 0xe4, 0x0f, 0x31, 0x64, 0x90, 0x05, 0x5d), 17new Guid(0x6e0e07bf, 0xafe7, 0x4cf7, 0x87, 0xd1, 0xaf, 0x64, 0x46, 0x20, 0x84, 0x18), 18new Guid(0x436510c5, 0xfed3, 0x45d1, 0x8b, 0x76, 0x71, 0xd3, 0xea, 0x7a, 0x82, 0x9d), 19new Guid(0x78a81b56, 0x0935, 0x4493, 0xba, 0xae, 0x00, 0x54, 0x1a, 0x8a, 0x16, 0xc4), 20new Guid(0x7307502d, 0xf9f4, 0x4e18, 0xb3, 0xf2, 0x2c, 0xe1, 0xb1, 0xa3, 0x61, 0x0c), 21new Guid(0x6da4488b, 0x5244, 0x41ec, 0x90, 0x5b, 0x32, 0xd8, 0x9a, 0xb8, 0x08, 0x09), 22new Guid(0x8b7fefc4, 0x96aa, 0x4bfe, 0xac, 0x26, 0x8a, 0x5f, 0x0b, 0xe0, 0x7b, 0xf5), 23new Guid(0xa8d07b3a, 0x8bf0, 0x40b0, 0x95, 0xa9, 0xb8, 0x0a, 0x6b, 0xb7, 0x87, 0xbf), 24new Guid(0x0e932389, 0x1d77, 0x43af, 0xac, 0x00, 0x5b, 0x95, 0x0d, 0x6d, 0x4b, 0x2d), 25new Guid(0x029123b4, 0x8828, 0x410b, 0xb2, 0x50, 0xa0, 0x53, 0x65, 0x95, 0xe5, 0xdc), 26new Guid(0x82dec5c7, 0xf6ba, 0x4906, 0x89, 0x4f, 0x66, 0xd6, 0x8d, 0xfc, 0x45, 0x6c), 27new Guid(0x0d324960, 0x13b2, 0x41e4, 0xac, 0xe6, 0x7a, 0xe9, 0xd4, 0x3d, 0x2d, 0x3b), 28new Guid(0x7f7e57b7, 0xbe37, 0x4be1, 0xa3, 0x56, 0x7a, 0x84, 0x16, 0x0e, 0x18, 0x93), 29new Guid(0x5d5d5e56, 0x6ba9, 0x4c5b, 0x9f, 0xb0, 0x85, 0x1c, 0x91, 0x71, 0x4e, 0x56), 30new Guid(0x6a849980, 0x7c3a, 0x45b7, 0xaa, 0x82, 0x90, 0xa2, 0x62, 0x95, 0x0e, 0x89), 31new Guid(0x33c1df83, 0xecdb, 0x44f0, 0xb9, 0x23, 0xdb, 0xd1, 0xa5, 0xb2, 0x13, 0x6e), 32new Guid(0x5329cda5, 0xfa5b, 0x4ed2, 0xbb, 0x32, 0x83, 0x46, 0x01, 0x72, 0x44, 0x28), 33new Guid(0x002df9af, 0xdd8c, 0x4949, 0xba, 0x46, 0xd6, 0x5e, 0x10, 0x7d, 0x1a, 0x8a), 34new Guid(0x9d32b7ca, 0x1213, 0x4f54, 0xb7, 0xe4, 0xc9, 0x05, 0x0e, 0xe1, 0x7a, 0x38), 35new Guid(0xe71caab9, 0x8059, 0x4c0d, 0xa2, 0xdb, 0x7c, 0x79, 0x54, 0x47, 0x8d, 0x82), 36new Guid(0x5c0b730a, 0xf394, 0x4961, 0xa9, 0x33, 0x37, 0xc4, 0x34, 0xf4, 0xb7, 0xeb), 37new Guid(0x2812210f, 0x871e, 0x4d91, 0x86, 0x07, 0x49, 0x32, 0x7d, 0xdf, 0x0a, 0x9f), 38new Guid(0x8359a0fa, 0x2f44, 0x4de6, 0x92, 0x81, 0xce, 0x5a, 0x89, 0x9c, 0xf5, 0x8f), 39new Guid(0x4c4642dd, 0x479e, 0x4c66, 0xb4, 0x40, 0x1f, 0xcd, 0x83, 0x95, 0x8f, 0x00), 40new Guid(0xce2d9a8a, 0xe58e, 0x40ba, 0x93, 0xfa, 0x18, 0x9b, 0xb3, 0x90, 0x00, 0xae), 41new Guid(0xc3c7480f, 0x5839, 0x46ef, 0xa5, 0x66, 0xd8, 0x48, 0x1c, 0x7a, 0xfe, 0xc1), 42new Guid(0xea2278af, 0xc59d, 0x4ef4, 0x98, 0x5b, 0xd4, 0xbe, 0x12, 0xdf, 0x22, 0x34), 43new Guid(0xb8630dc9, 0xcc5c, 0x4c33, 0x8d, 0xad, 0xb4, 0x7f, 0x62, 0x2b, 0x8c, 0x79), 44new Guid(0x15e2f8e6, 0x6381, 0x4e8b, 0xa9, 0x65, 0x01, 0x1f, 0x7d, 0x7f, 0xca, 0x38), 45new Guid(0x7066fbe4, 0x473e, 0x4675, 0x9c, 0x25, 0x00, 0x26, 0x82, 0x9b, 0x40, 0x1f), 46new Guid(0xbbc85b9a, 0xade6, 0x4093, 0xb3, 0xbb, 0x64, 0x1f, 0xa1, 0xd3, 0x7a, 0x1a), 47new Guid(0x39143d3, 0x78cb, 0x449c, 0xa8, 0xe7, 0x67, 0xd1, 0x88, 0x64, 0xc3, 0x32), 48new Guid(0x67743782, 0xee5, 0x419a, 0xa1, 0x2b, 0x27, 0x3a, 0x9e, 0xc0, 0x8f, 0x3d), 49new Guid(0xf0720328, 0x663b, 0x418f, 0x85, 0xa6, 0x95, 0x31, 0xae, 0x3e, 0xcd, 0xfa), 50new Guid(0xa1718cdd, 0xdac, 0x4095, 0xa1, 0x81, 0x7b, 0x59, 0xcb, 0x10, 0x6b, 0xfb), 51new Guid(0x810a74d2, 0x6ee2, 0x4e39, 0x82, 0x5e, 0x6d, 0xef, 0x82, 0x6a, 0xff, 0xc5), 143new Guid(0x9b6267b8, 0x3968, 0x4048, 0xab, 0x74, 0xf4, 0x90, 0x40, 0x6a, 0x2d, 0xfa), 145new Guid(0x7fc30e91, 0xd68d, 0x4f07, 0x8b, 0x62, 0x6, 0xf6, 0xd2, 0x73, 0x1b, 0xed), 147new Guid(0xe02fb5c1, 0x9693, 0x4312, 0xa4, 0x34, 0x0, 0xde, 0x7f, 0x3a, 0xd4, 0x93), 149new Guid(0x5253b51, 0x49c6, 0x4a04, 0x89, 0x93, 0x64, 0xdd, 0x9a, 0xbd, 0x84, 0x2a), 151new Guid(0x4ea66c4, 0xf33a, 0x461b, 0xb8, 0xfe, 0x68, 0x7, 0xd, 0x9c, 0x75, 0x75), 153new Guid(0x50b6bc8, 0x3b7d, 0x4816, 0x8c, 0x61, 0xbc, 0x7e, 0x90, 0x5b, 0x21, 0x32), 155new Guid(0x82871c85, 0xe247, 0x4d8c, 0x8d, 0x71, 0x22, 0xe5, 0xd6, 0xf2, 0x57, 0x76), 157new Guid(0x33cdbbb3, 0x588f, 0x4e94, 0xb1, 0xfe, 0x5d, 0x79, 0xff, 0xe7, 0x6e, 0x76), 192new Guid(0x9b6267b8, 0x3968, 0x4048, 0xab, 0x74, 0xf4, 0x90, 0x40, 0x6a, 0x2d, 0xfa), 194new Guid(0x7fc30e91, 0xd68d, 0x4f07, 0x8b, 0x62, 0x6, 0xf6, 0xd2, 0x73, 0x1b, 0xed), 196new Guid(0xe02fb5c1, 0x9693, 0x4312, 0xa4, 0x34, 0x0, 0xde, 0x7f, 0x3a, 0xd4, 0x93), 198new Guid(0x5253b51, 0x49c6, 0x4a04, 0x89, 0x93, 0x64, 0xdd, 0x9a, 0xbd, 0x84, 0x2a), 200new Guid(0x4ea66c4, 0xf33a, 0x461b, 0xb8, 0xfe, 0x68, 0x7, 0xd, 0x9c, 0x75, 0x75), 202new Guid(0x50b6bc8, 0x3b7d, 0x4816, 0x8c, 0x61, 0xbc, 0x7e, 0x90, 0x5b, 0x21, 0x32), 204new Guid(0x82871c85, 0xe247, 0x4d8c, 0x8d, 0x71, 0x22, 0xe5, 0xd6, 0xf2, 0x57, 0x76), 206new Guid(0x33cdbbb3, 0x588f, 0x4e94, 0xb1, 0xfe, 0x5d, 0x79, 0xff, 0xe7, 0x6e, 0x76),
MS\Internal\IO\Packaging\DeobfuscatingStream.cs (1)
329Guid guid = new Guid(guidString);
MS\Internal\Text\TextInterface\Factory.cs (1)
19private static readonly Guid IID_IDWriteFactory = new Guid(0xb859ee5a, 0xd838, 0x4b5b, 0xa2, 0xe8, 0x1a, 0xdc, 0x7d, 0x93, 0xdb, 0x48);
src\Microsoft.DotNet.Wpf\src\Common\Graphics\wgx_exports.cs (64)
203internal static readonly Guid WICPixelFormatDontCare = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x00); 206internal static readonly Guid WICPixelFormat1bppIndexed = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x01); 207internal static readonly Guid WICPixelFormat2bppIndexed = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x02); 208internal static readonly Guid WICPixelFormat4bppIndexed = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x03); 209internal static readonly Guid WICPixelFormat8bppIndexed = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x04); 211internal static readonly Guid WICPixelFormatBlackWhite = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x05); 212internal static readonly Guid WICPixelFormat2bppGray = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x06); 213internal static readonly Guid WICPixelFormat4bppGray = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x07); 214internal static readonly Guid WICPixelFormat8bppGray = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x08); 220internal static readonly Guid WICPixelFormat16bppBGR555 = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x09); 221internal static readonly Guid WICPixelFormat16bppBGR565 = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x0a); 222internal static readonly Guid WICPixelFormat16bppGray = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x0b); 225internal static readonly Guid WICPixelFormat24bppBGR = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x0c); 226internal static readonly Guid WICPixelFormat24bppRGB = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x0d); 229internal static readonly Guid WICPixelFormat32bppBGR = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x0e); 230internal static readonly Guid WICPixelFormat32bppBGRA = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x0f); 231internal static readonly Guid WICPixelFormat32bppPBGRA = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x10); 232internal static readonly Guid WICPixelFormat32bppGrayFloat = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x11); 238internal static readonly Guid WICPixelFormat32bppBGR101010 = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x14); 241internal static readonly Guid WICPixelFormat48bppRGB = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x15); 244internal static readonly Guid WICPixelFormat64bppRGBA = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x16); 245internal static readonly Guid WICPixelFormat64bppPRGBA = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x17); 248internal static readonly Guid WICPixelFormat128bppRGBAFloat = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x19); 249internal static readonly Guid WICPixelFormat128bppPRGBAFloat = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x1a); 250internal static readonly Guid WICPixelFormat128bppRGBFloat = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x1b); 253internal static readonly Guid WICPixelFormat32bppCMYK = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x1c); 264internal static readonly Guid IID_IMILRenderTargetBitmap = new Guid(0x00000201, 0xa8f2, 0x4877, 0xba, 0xa, 0xfd, 0x2b, 0x66, 0x45, 0xfb, 0x94); 266internal static readonly Guid IID_IWICPalette = new Guid(0x00000040, 0xa8f2, 0x4877, 0xba, 0x0a, 0xfd, 0x2b, 0x66, 0x45, 0xfb, 0x94); 268internal static readonly Guid IID_IWICBitmapSource = new Guid(0x00000120, 0xa8f2, 0x4877, 0xba, 0x0a, 0xfd, 0x2b, 0x66, 0x45, 0xfb, 0x94); 270internal static readonly Guid IID_IWICFormatConverter = new Guid(0x00000301, 0xa8f2, 0x4877, 0xba, 0x0a, 0xfd, 0x2b, 0x66, 0x45, 0xfb, 0x94); 272internal static readonly Guid IID_IWICBitmapScaler = new Guid(0x00000302, 0xa8f2, 0x4877, 0xba, 0x0a, 0xfd, 0x2b, 0x66, 0x45, 0xfb, 0x94); 274internal static readonly Guid IID_IWICBitmapClipper = new Guid(0xE4FBCF03, 0x223D, 0x4e81, 0x93, 0x33, 0xD6, 0x35, 0x55, 0x6D, 0xD1, 0xB5); 276internal static readonly Guid IID_IWICBitmapFlipRotator = new Guid(0x5009834F, 0x2D6A, 0x41ce, 0x9E, 0x1B, 0x17, 0xC5, 0xAF, 0xF7, 0xA7, 0x82); 278internal static readonly Guid IID_IWICBitmap = new Guid(0x00000121, 0xa8f2, 0x4877, 0xba, 0x0a, 0xfd, 0x2b, 0x66, 0x45, 0xfb, 0x94); 280internal static readonly Guid IID_IWICBitmapEncoder = new Guid(0x00000103, 0xa8f2, 0x4877, 0xba, 0x0a, 0xfd, 0x2b, 0x66, 0x45, 0xfb, 0x94); 282internal static readonly Guid IID_IWICBitmapFrameEncode = new Guid(0x00000105, 0xa8f2, 0x4877, 0xba, 0x0a, 0xfd, 0x2b, 0x66, 0x45, 0xfb, 0x94); 284internal static readonly Guid IID_IWICBitmapDecoder = new Guid(0x9EDDE9E7, 0x8DEE, 0x47ea, 0x99, 0xDF, 0xE6, 0xFA, 0xF2, 0xED, 0x44, 0xBF); 286internal static readonly Guid IID_IWICBitmapFrameDecode = new Guid(0x3B16811B, 0x6A43, 0x4ec9, 0xA8, 0x13, 0x3D, 0x93, 0x0C, 0x13, 0xB9, 0x40); 288internal static readonly Guid IID_IWICMetadataQueryReader = new Guid(0x30989668, 0xE1C9, 0x4597, 0xB3, 0x95, 0x45, 0x8E, 0xED, 0xB8, 0x08, 0xDF); 290internal static readonly Guid IID_IWICMetadataQueryWriter = new Guid(0xA721791A, 0x0DEF, 0x4d06, 0xBD, 0x91, 0x21, 0x18, 0xBF, 0x1D, 0xB1, 0x0B); 292internal static readonly Guid IID_IWICMetadataReader = new Guid(0x9204FE99, 0xD8FC, 0x4FD5, 0xA0, 0x01, 0x95, 0x36, 0xB0, 0x67, 0xA8, 0x99); 294internal static readonly Guid IID_IWICMetadataWriter = new Guid(0xF7836E16, 0x3BE0, 0x470B, 0x86, 0xBB, 0x16, 0x0D, 0x0A, 0xEC, 0xD7, 0xDE); 296internal static readonly Guid IID_IWICPixelFormatInfo = new Guid(0xE8EDA601, 0x3D48, 0x431a, 0xAB, 0x44, 0x69, 0x05, 0x9B, 0xE8, 0x8B, 0xBE); 298internal static readonly Guid IID_IWICImagingFactory = new Guid(0xec5ec8a9, 0xc395, 0x4314, 0x9c, 0x77, 0x54, 0xd7, 0xa9, 0x35, 0xff, 0x70); 300internal static readonly Guid CLSID_WICBmpDecoder = new Guid(0x6b462062, 0x7cbf, 0x400d, 0x9f, 0xdb, 0x81, 0x3d, 0xd1, 0x0f, 0x27, 0x78); 302internal static readonly Guid CLSID_WICPngDecoder = new Guid(0x389ea17b, 0x5078, 0x4cde, 0xb6, 0xef, 0x25, 0xc1, 0x51, 0x75, 0xc7, 0x51); 304internal static readonly Guid CLSID_WICIcoDecoder = new Guid(0xc61bfcdf, 0x2e0f, 0x4aad, 0xa8, 0xd7, 0xe0, 0x6b, 0xaf, 0xeb, 0xcd, 0xfe); 306internal static readonly Guid CLSID_WICJpegDecoder = new Guid(0x9456a480, 0xe88b, 0x43ea, 0x9e, 0x73, 0x0b, 0x2d, 0x9b, 0x71, 0xb1, 0xca); 308internal static readonly Guid CLSID_WICGifDecoder = new Guid(0x381dda3c, 0x9ce9, 0x4834, 0xa2, 0x3e, 0x1f, 0x98, 0xf8, 0xfc, 0x52, 0xbe); 310internal static readonly Guid CLSID_WICTiffDecoder = new Guid(0xb54e85d9, 0xfe23, 0x499f, 0x8b, 0x88, 0x6a, 0xce, 0xa7, 0x13, 0x75, 0x2b); 312internal static readonly Guid CLSID_WICWmpDecoder = new Guid(0xa26cec36, 0x234c, 0x4950, 0xae, 0x16, 0xe3, 0x4a, 0xac, 0xe7, 0x1d, 0x0d); 314internal static readonly Guid CLSID_WICBmpEncoder = new Guid(0x69be8bb4, 0xd66d, 0x47c8, 0x86, 0x5a, 0xed, 0x15, 0x89, 0x43, 0x37, 0x82); 316internal static readonly Guid CLSID_WICPngEncoder = new Guid(0x27949969, 0x876a, 0x41d7, 0x94, 0x47, 0x56, 0x8f, 0x6a, 0x35, 0xa4, 0xdc); 318internal static readonly Guid CLSID_WICJpegEncoder = new Guid(0x1a34f5c1, 0x4a5a, 0x46dc, 0xb6, 0x44, 0x1f, 0x45, 0x67, 0xe7, 0xa6, 0x76); 320internal static readonly Guid CLSID_WICGifEncoder = new Guid(0x114f5598, 0x0b22, 0x40a0, 0x86, 0xa1, 0xc8, 0x3e, 0xa4, 0x95, 0xad, 0xbd); 322internal static readonly Guid CLSID_WICTiffEncoder = new Guid(0x0131be10, 0x2001, 0x4c5f, 0xa9, 0xb0, 0xcc, 0x88, 0xfa, 0xb6, 0x4c, 0xe8); 324internal static readonly Guid CLSID_WICWmpEncoder = new Guid(0xac4ce3cb, 0xe1c1, 0x44cd, 0x82, 0x15, 0x5a, 0x16, 0x65, 0x50, 0x9e, 0xc2); 326internal static readonly Guid GUID_ContainerFormatBmp = new Guid(0x0af1d87e, 0xfcfe, 0x4188, 0xbd, 0xeb, 0xa7, 0x90, 0x64, 0x71, 0xcb, 0xe3); 328internal static readonly Guid GUID_ContainerFormatIco = new Guid(0xa3a860c4, 0x338f, 0x4c17, 0x91, 0x9a, 0xfb, 0xa4, 0xb5, 0x62, 0x8f, 0x21); 330internal static readonly Guid GUID_ContainerFormatGif = new Guid(0x1f8a5601, 0x7d4d, 0x4cbd, 0x9c, 0x82, 0x1b, 0xc8, 0xd4, 0xee, 0xb9, 0xa5); 332internal static readonly Guid GUID_ContainerFormatJpeg = new Guid(0x19e4a5aa, 0x5662, 0x4fc5, 0xa0, 0xc0, 0x17, 0x58, 0x02, 0x8e, 0x10, 0x57); 334internal static readonly Guid GUID_ContainerFormatPng = new Guid(0x1b7cfaf4, 0x713f, 0x473c, 0xbb, 0xcd, 0x61, 0x37, 0x42, 0x5f, 0xae, 0xaf); 336internal static readonly Guid GUID_ContainerFormatTiff = new Guid(0x163bcc30, 0xe2e9, 0x4f0b, 0x96, 0x1d, 0xa3, 0xe9, 0xfd, 0xb7, 0x88, 0xa3); 338internal static readonly Guid GUID_ContainerFormatWmp = new Guid(0x57a37caa, 0x367a, 0x4540, 0x91, 0x6b, 0xf1, 0x83, 0xc5, 0x09, 0x3a, 0x4b);
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Ink\KnownIds.cs (6)
20public static readonly Guid StylusTip = new Guid(0x3526c731, 0xee79, 0x4988, 0xb9, 0x3e, 0x70, 0xd9, 0x2f, 0x89, 0x7, 0xed); 24public static readonly Guid StylusTipTransform = new Guid(0x4b63bc16, 0x7bc4, 0x4fd2, 0x95, 0xda, 0xac, 0xff, 0x47, 0x75, 0x73, 0x2d); 40public static readonly Guid IsHighlighter = new Guid(0xce305e1a, 0xe08, 0x45e3, 0x8c, 0xdc, 0xe4, 0xb, 0xb4, 0x50, 0x6f, 0x21); 224internal static readonly Guid StylusTip = new Guid(0x3526c731, 0xee79, 0x4988, 0xb9, 0x3e, 0x70, 0xd9, 0x2f, 0x89, 0x7, 0xed); 229internal static readonly Guid StylusTipTransform = new Guid(0x4b63bc16, 0x7bc4, 0x4fd2, 0x95, 0xda, 0xac, 0xff, 0x47, 0x75, 0x73, 0x2d); 235internal static readonly Guid IsHighlighter = new Guid(0xce305e1a, 0xe08, 0x45e3, 0x8c, 0xdc, 0xe4, 0xb, 0xb4, 0x50, 0x6f, 0x21);
System\Windows\Input\Stylus\Common\StylusPointPropertyId.cs (22)
18public static readonly Guid X = new Guid(0x598A6A8F, 0x52C0, 0x4BA0, 0x93, 0xAF, 0xAF, 0x35, 0x74, 0x11, 0xA5, 0x61); 23public static readonly Guid Y = new Guid(0xB53F9F75, 0x04E0, 0x4498, 0xA7, 0xEE, 0xC3, 0x0D, 0xBB, 0x5A, 0x90, 0x11); 28public static readonly Guid Z = new Guid(0x735ADB30, 0x0EBB, 0x4788, 0xA0, 0xE4, 0x0F, 0x31, 0x64, 0x90, 0x05, 0x5D); 33public static readonly Guid Width = new Guid(0xbaabe94d, 0x2712, 0x48f5, 0xbe, 0x9d, 0x8f, 0x8b, 0x5e, 0xa0, 0x71, 0x1a); 38public static readonly Guid Height = new Guid(0xe61858d2, 0xe447, 0x4218, 0x9d, 0x3f, 0x18, 0x86, 0x5c, 0x20, 0x3d, 0xf4); 43public static readonly Guid SystemTouch = new Guid(0xe706c804, 0x57f0, 0x4f00, 0x8a, 0x0c, 0x85, 0x3d, 0x57, 0x78, 0x9b, 0xe9); 48public static readonly Guid PacketStatus = new Guid(0x6E0E07BF, 0xAFE7, 0x4CF7, 0x87, 0xD1, 0xAF, 0x64, 0x46, 0x20, 0x84, 0x18); 53public static readonly Guid SerialNumber = new Guid(0x78A81B56, 0x0935, 0x4493, 0xBA, 0xAE, 0x00, 0x54, 0x1A, 0x8A, 0x16, 0xC4); 58public static readonly Guid NormalPressure = new Guid(0x7307502D, 0xF9F4, 0x4E18, 0xB3, 0xF2, 0x2C, 0xE1, 0xB1, 0xA3, 0x61, 0x0C); 63public static readonly Guid TangentPressure = new Guid(0x6DA4488B, 0x5244, 0x41EC, 0x90, 0x5B, 0x32, 0xD8, 0x9A, 0xB8, 0x08, 0x09); 68public static readonly Guid ButtonPressure = new Guid(0x8B7FEFC4, 0x96AA, 0x4BFE, 0xAC, 0x26, 0x8A, 0x5F, 0x0B, 0xE0, 0x7B, 0xF5); 73public static readonly Guid XTiltOrientation = new Guid(0xA8D07B3A, 0x8BF0, 0x40B0, 0x95, 0xA9, 0xB8, 0x0A, 0x6B, 0xB7, 0x87, 0xBF); 78public static readonly Guid YTiltOrientation = new Guid(0x0E932389, 0x1D77, 0x43AF, 0xAC, 0x00, 0x5B, 0x95, 0x0D, 0x6D, 0x4B, 0x2D); 83public static readonly Guid AzimuthOrientation = new Guid(0x029123B4, 0x8828, 0x410B, 0xB2, 0x50, 0xA0, 0x53, 0x65, 0x95, 0xE5, 0xDC); 88public static readonly Guid AltitudeOrientation = new Guid(0x82DEC5C7, 0xF6BA, 0x4906, 0x89, 0x4F, 0x66, 0xD6, 0x8D, 0xFC, 0x45, 0x6C); 93public static readonly Guid TwistOrientation = new Guid(0x0D324960, 0x13B2, 0x41E4, 0xAC, 0xE6, 0x7A, 0xE9, 0xD4, 0x3D, 0x2D, 0x3B); 98public static readonly Guid PitchRotation = new Guid(0x7F7E57B7, 0xBE37, 0x4BE1, 0xA3, 0x56, 0x7A, 0x84, 0x16, 0x0E, 0x18, 0x93); 103public static readonly Guid RollRotation = new Guid(0x5D5D5E56, 0x6BA9, 0x4C5B, 0x9F, 0xB0, 0x85, 0x1C, 0x91, 0x71, 0x4E, 0x56); 108public static readonly Guid YawRotation = new Guid(0x6A849980, 0x7C3A, 0x45B7, 0xAA, 0x82, 0x90, 0xA2, 0x62, 0x95, 0x0E, 0x89); 113public static readonly Guid TipButton = new Guid(0x39143d3, 0x78cb, 0x449c, 0xa8, 0xe7, 0x67, 0xd1, 0x88, 0x64, 0xc3, 0x32); 118public static readonly Guid BarrelButton = new Guid(0xf0720328, 0x663b, 0x418f, 0x85, 0xa6, 0x95, 0x31, 0xae, 0x3e, 0xcd, 0xfa); 123public static readonly Guid SecondaryTipButton = new Guid(0x67743782, 0xee5, 0x419a, 0xa1, 0x2b, 0x27, 0x3a, 0x9e, 0xc0, 0x8f, 0x3d);
System\Windows\Media\Imaging\BitmapDecoder.cs (1)
1124Guid vendorMicrosoft = new Guid(MILGuidData.GUID_VendorMicrosoft);
System\Windows\Media\Imaging\BitmapEncoder.cs (1)
555Guid vendorMicrosoft = new Guid(MILGuidData.GUID_VendorMicrosoft);
System\Windows\Media\Imaging\BitmapMetadata.cs (6)
136Guid guidVendor = new Guid(MILGuidData.GUID_VendorMicrosoft); 254Guid guidVendor = new Guid(MILGuidData.GUID_VendorMicrosoft); 583Guid guid = new Guid(); 642Guid vendorMicrosoft = new Guid(MILGuidData.GUID_VendorMicrosoft); 774Guid guidVendor = new Guid(MILGuidData.GUID_VendorMicrosoft); 1462Guid guid = new Guid();
System\Windows\Media\Imaging\PropVariant.cs (2)
583array[i] = new Guid(guid); 673return new Guid(guid);
System\Windows\Media\PixelFormat.cs (2)
722private static readonly Guid WICPixelFormatPhotonFirst = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x1d); 725private static readonly Guid WICPixelFormatPhotonLast = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x42);
PresentationFramework (56)
Microsoft\Win32\FileDialogCustomPlaces.cs (17)
25get { return new FileDialogCustomPlace(new Guid("3EB685DB-65F9-4CF6-A03A-E3EF65729F3D")); } 31get { return new FileDialogCustomPlace(new Guid("F1B32785-6FBA-4FCF-9D55-7B8E7F157091")); } 37get { return new FileDialogCustomPlace(new Guid("2B0F765D-C0E9-4171-908E-08A611B84FF6")); } 43get { return new FileDialogCustomPlace(new Guid("56784854-C6CB-462b-8169-88E350ACB882")); } 49get { return new FileDialogCustomPlace(new Guid("1777F761-68AD-4D8A-87BD-30B759FA33DD")); } 55get { return new FileDialogCustomPlace(new Guid("A77F5D77-2E2B-44C3-A6A2-ABA601054A51")); } 61get { return new FileDialogCustomPlace(new Guid("4BD8D571-6D19-48D3-BE97-422220080E43")); } 67get { return new FileDialogCustomPlace(new Guid("33E28130-4E1E-4676-835A-98395C3BC3BB")); } 73get { return new FileDialogCustomPlace(new Guid("8983036C-27C0-404B-8F08-102D10DCFD74")); } 79get { return new FileDialogCustomPlace(new Guid("625B53C3-AB48-4EC1-BA1F-A1EF4146FC19")); } 85get { return new FileDialogCustomPlace(new Guid("B97D20BB-F46A-4C97-BA10-5E3608430854")); } 91get { return new FileDialogCustomPlace(new Guid("1AC14E77-02E7-4E5D-B744-2EB1AE5198B7")); } 97get { return new FileDialogCustomPlace(new Guid("A63293E8-664E-48DB-A079-DF759E0509F7")); } 103get { return new FileDialogCustomPlace(new Guid("B4BFCC3A-DB2C-424C-B029-7FE99A87C641")); } 109get { return new FileDialogCustomPlace(new Guid("FDD39AD0-238F-46AF-ADB4-6C85480369C7")); } 115get { return new FileDialogCustomPlace(new Guid("905E63B6-C1BF-494E-B29C-65B732D3D21A")); } 121get { return new FileDialogCustomPlace(new Guid("F7F1ED05-9F6D-47A2-AAAE-29D317C6F066")); }
Microsoft\Win32\OpenFileDialog.cs (1)
206return (IFileDialog)Activator.CreateInstance(Type.GetTypeFromCLSID(new Guid(CLSID.FileOpenDialog)));
Microsoft\Win32\OpenFolderDialog.cs (1)
249return (IFileDialog)Activator.CreateInstance(Type.GetTypeFromCLSID(new Guid(CLSID.FileOpenDialog)));
Microsoft\Win32\SaveFileDialog.cs (1)
219return (IFileDialog)Activator.CreateInstance(Type.GetTypeFromCLSID(new Guid(CLSID.FileSaveDialog)));
MS\Internal\AppModel\ShellProvider.cs (7)
55public static readonly PKEY Title = new PKEY(new Guid("F29F85E0-4FF9-1068-AB91-08002B27B3D9"), 2); 57public static readonly PKEY AppUserModel_ID = new PKEY(new Guid("9F4C2855-9F79-4B39-A8D0-E1D42DE1D5F3"), 5); 59public static readonly PKEY AppUserModel_IsDestListSeparator = new PKEY(new Guid("9F4C2855-9F79-4B39-A8D0-E1D42DE1D5F3"), 6); 61public static readonly PKEY AppUserModel_RelaunchCommand = new PKEY(new Guid("9F4C2855-9F79-4B39-A8D0-E1D42DE1D5F3"), 2); 63public static readonly PKEY AppUserModel_RelaunchDisplayNameResource = new PKEY(new Guid("9F4C2855-9F79-4B39-A8D0-E1D42DE1D5F3"), 4); 65public static readonly PKEY AppUserModel_RelaunchIconResource = new PKEY(new Guid("9F4C2855-9F79-4B39-A8D0-E1D42DE1D5F3"), 3); 970Guid iidShellItem2 = new Guid(IID.ShellItem2);
MS\Internal\IO\Packaging\indexingfiltermarshaler.cs (1)
35internal static Guid PSGUID_STORAGE = new Guid(0xb725f130, 0x47ef, 0x101a, 0xa5, 0xf1, 0x02, 0x60, 0x8c, 0x9e, 0xeb, 0xac);
MS\Internal\IO\Packaging\PackageFilter.cs (1)
371_currentFilter = GetFilterFromClsid(new Guid(filterClsid));
MS\Internal\IO\Packaging\XpsFilter.cs (1)
667private static readonly Guid _filterClsid = new Guid(0x0B8732A6,
MS\Internal\WindowsRuntime\Generated\WinRT\GuidGenerator.cs (3)
125return new Guid(data.Take(16).ToArray()); 128private static Guid wrt_pinterface_namespace = new Guid("d57af411-737b-c042-abae-878b1e16adee"); 135return new Guid(sig);
System\Windows\Controls\Primitives\Popup.cs (1)
3446Guid iid = new Guid(MS.Internal.AppModel.IID.Accessible);
System\Windows\Controls\WebBrowser.cs (2)
78: base(new Guid(CLSID.WebBrowser), true ) 1035return Activator.CreateInstance(Type.GetTypeFromCLSID(new Guid(CLSID.WebBrowser)));
System\Windows\Documents\NLGSpellerInterop.cs (6)
2018private static readonly Guid CLSID_ITextContext = new Guid(0x333E6924, 0x4353, 0x4934, 0xA7, 0xBE, 0x5F, 0xB5, 0xBD, 0xDD, 0xB2, 0xD6); 2021private static readonly Guid IID_ITextContext = new Guid(0xB6797CC0, 0x11AE, 0x4047, 0xA4, 0x38, 0x26, 0xC0, 0xC9, 0x16, 0xEB, 0x8D); 2024private static readonly Guid CLSID_ITextChunk = new Guid(0x89EA5B5A, 0xD01C, 0x4560, 0xA8, 0x74, 0x9F, 0xC9, 0x2A, 0xFB, 0x0E, 0xFA); 2027private static readonly Guid IID_ITextChunk = new Guid(0x549F997E, 0x0EC3, 0x43d4, 0xB4, 0x43, 0x2B, 0xF8, 0x02, 0x10, 0x10, 0xCF); 2029private static readonly Guid CLSID_Lexicon = new Guid("D385FDAD-D394-4812-9CEC-C6575C0B2B38"); 2030private static readonly Guid IID_ILexicon = new Guid("004CD7E2-8B63-4ef9-8D46-080CDBBE47AF");
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
5525DefaultConstructor = delegate () { return new System.Guid(); },
System\Windows\Shell\JumpList.cs (5)
462var destinationList = (ICustomDestinationList)Activator.CreateInstance(Type.GetTypeFromCLSID(new Guid(CLSID.DestinationList))); 478Guid removedIid = new Guid(IID.ObjectArray); 761Guid unknownIid = new Guid(IID.Unknown); 798var shellObjectCollection = (IObjectCollection)Activator.CreateInstance(Type.GetTypeFromCLSID(new Guid(CLSID.EnumerableObjectCollection))); 886var link = (IShellLinkW)Activator.CreateInstance(Type.GetTypeFromCLSID(new Guid(CLSID.ShellLink)));
System\Windows\Standard\ComGuids.cs (1)
69return (T)System.Activator.CreateInstance(System.Type.GetTypeFromCLSID(new System.Guid(clsid)));
System\Windows\Standard\ShellProvider.cs (6)
353public static readonly PKEY Title = new PKEY(new Guid("F29F85E0-4FF9-1068-AB91-08002B27B3D9"), 2); 355public static readonly PKEY AppUserModel_ID = new PKEY(new Guid("9F4C2855-9F79-4B39-A8D0-E1D42DE1D5F3"), 5); 357public static readonly PKEY AppUserModel_IsDestListSeparator = new PKEY(new Guid("9F4C2855-9F79-4B39-A8D0-E1D42DE1D5F3"), 6); 359public static readonly PKEY AppUserModel_RelaunchCommand = new PKEY(new Guid("9F4C2855-9F79-4B39-A8D0-E1D42DE1D5F3"), 2); 361public static readonly PKEY AppUserModel_RelaunchDisplayNameResource = new PKEY(new Guid("9F4C2855-9F79-4B39-A8D0-E1D42DE1D5F3"), 4); 363public static readonly PKEY AppUserModel_RelaunchIconResource = new PKEY(new Guid("9F4C2855-9F79-4B39-A8D0-E1D42DE1D5F3"), 3);
System\Windows\Window.cs (1)
6451taskbarList = (ITaskbarList)Activator.CreateInstance(Type.GetTypeFromCLSID(new Guid(CLSID.TaskbarList)));
PresentationUI (3)
MS\Internal\Documents\Application\NativeDirectoryServicesQueryAPIs.cs (3)
163internal static readonly Guid CLSID_CommonQuery = new Guid(0x83bc5ec0, 0x6f2a, 0x11d0, 0xa1, 0xc4, 0x00, 0xaa, 0x00, 0xc1, 0x6e, 0x65); 164internal static readonly Guid CLSID_DsQuery = new Guid(0x08a23e65e, 0x31c2, 0x11d0, 0x89, 0x1c, 0x00, 0xa0, 0x24, 0xab, 0x2d, 0xbb); 165internal static readonly Guid CLSID_DsFindPeople = new Guid(0x83ee3fe2, 0x57d9, 0x11d0, 0xb9, 0x32, 0x0, 0xa0, 0x24, 0xab, 0x2d, 0xbb);
ReachFramework (4)
packaging\XpsDigitalSignature.cs (1)
154id = new Guid(convertedId);
Packaging\XpsFixedPageReaderWriter.cs (1)
1907Guid guid = new Guid(fileName );
Packaging\XPSSignatureDefinition.cs (1)
483SpotId = new Guid(XmlConvert.DecodeName(attributeValue));
Serialization\XpsFontSubsetter.cs (1)
660return new Guid( fileName );
Roslyn.Test.PdbUtilities (3)
Reader\Token2SourceLineExporter.cs (3)
298guid = unchecked(new Guid((int)a, (short)b, (short)c, d, e, f, g, h, i, j, k)); 1285new Guid(unchecked((int)0xc6ea3fc9), 0x59b3, 0x49d6, 0xbc, 0x25, 0x09, 0x02, 0xbb, 0xab, 0xb4, 0x60); 1364private static readonly Guid s_symDocumentTypeGuid = new Guid("{5a869d0b-6611-11d3-bd2a-0000f80849bd}");
Roslyn.VisualStudio.DiagnosticsWindow (2)
Guids.cs (1)
19public static readonly Guid guidVisualStudioDiagnosticsWindowCmdSet = new Guid(guidVisualStudioDiagnosticsWindowCmdSetString);
Loggers\OutputWindowLogger.cs (1)
51private static readonly Guid s_outputPaneGuid = new Guid("BBAFF416-4AF5-41F2-9F93-91F283E43C3B");
ScenarioTests.Common.Tests (2)
ScenarioTestHelpers.cs (2)
120GuidValue = new Guid("EFEA21A0-F59A-4F43-B5D3-B2C667CA6FB6"), 162GuidValue = new Guid("EFEA21A0-F59A-4F43-B5D3-B2C667CA6FB6"),
SignalR.Client.FunctionalTestApp (1)
TestHub.cs (1)
126Guid = new Guid("00010203-0405-0607-0706-050403020100"),
System.ComponentModel.TypeConverter (15)
System\ComponentModel\Design\StandardCommands.cs (6)
31private static readonly Guid s_ndpCommandSet = new Guid("{74D21313-2AEE-11d1-8BFB-00A0C90F26F7}"); 1345internal static readonly Guid VSStandardCommandSet97 = new Guid("{5efc7975-14bc-11cf-9b2b-00aa00573819}"); 1346internal static readonly Guid guidDsdCmdId = new Guid("{1F0FD094-8e53-11d2-8f9c-0060089fc486}"); 1347internal static readonly Guid SID_SOleComponentUIManager = new Guid("{5efc7974-14bc-11cf-9b2b-00aa00573819}"); 1348internal static readonly Guid GUID_VSTASKCATEGORY_DATADESIGNER = new Guid("{6B32EAED-13BB-11d3-A64F-00C04F683820}"); 1349internal static readonly Guid GUID_PropertyBrowserToolWindow = new Guid(0xeefa5220, 0xe298, 0x11d0, 0x8f, 0x78, 0x0, 0xa0, 0xc9, 0x11, 0x0, 0x57);
System\ComponentModel\Design\StandardToolWindows.cs (8)
15public static readonly Guid ObjectBrowser = new Guid("{970d9861-ee83-11d0-a778-00a0c91110c3}"); 20public static readonly Guid OutputWindow = new Guid("{34e76e81-ee4a-11d0-ae2e-00a0c90fffc3}"); 25public static readonly Guid ProjectExplorer = new Guid("{3ae79031-e1bc-11d0-8f78-00a0c9110057}"); 30public static readonly Guid PropertyBrowser = new Guid("{eefa5220-e298-11d0-8f78-00a0c9110057}"); 35public static readonly Guid RelatedLinks = new Guid("{66dba47c-61df-11d2-aa79-00c04f990343}"); 40public static readonly Guid ServerExplorer = new Guid("{74946827-37a0-11d2-a273-00c04f8ef4ff}"); 45public static readonly Guid TaskList = new Guid("{4a9b7e51-aa16-11d0-a8c5-00a0c921a4d2}"); 50public static readonly Guid Toolbox = new Guid("{b1e99781-ab81-11d0-b683-00aa00a3ee26}");
System\ComponentModel\GuidConverter.cs (1)
43return new Guid(text);
System.Data.Common (8)
System\Data\Common\ObjectStorage.cs (2)
249_values[recordNo] = new Guid((string)value); 333return (new Guid(s));
System\Data\Filter\FunctionNode.cs (1)
501return new Guid((string)argumentValues[0]);
System\Data\SQLTypes\SQLGuid.cs (5)
36_value = new Guid(value); 41_value = new Guid(s); 50: this(new Guid(a, b, c, d, e, f, g, h, i, j, k)) 63_value = new Guid(value); 306_value = new Guid(reader.ReadElementString());
System.Data.Odbc (1)
Common\System\Data\ProviderBase\DbBuffer.cs (1)
667return new Guid(buffer);
System.Diagnostics.StackTrace (13)
System\Diagnostics\SymbolStore\SymDocumentType.cs (1)
8public static readonly Guid Text = new Guid(0x5a869d0b, 0x6611, 0x11d3, 0xbd, 0x2a, 0x0, 0x0, 0xf8, 0x8, 0x49, 0xbd);
System\Diagnostics\SymbolStore\SymLanguageType.cs (11)
8public static readonly Guid C = new Guid(0x63a08714, unchecked((short)0xfc37), 0x11d2, 0x90, 0x4c, 0x0, 0xc0, 0x4f, 0xa3, 0x02, 0xa1); 9public static readonly Guid CPlusPlus = new Guid(0x3a12d0b7, unchecked((short)0xc26c), 0x11d0, 0xb4, 0x42, 0x0, 0xa0, 0x24, 0x4a, 0x1d, 0xd2); 11public static readonly Guid CSharp = new Guid(0x3f5162f8, unchecked((short)0x07c6), 0x11d3, 0x90, 0x53, 0x0, 0xc0, 0x4f, 0xa3, 0x02, 0xa1); 13public static readonly Guid Basic = new Guid(0x3a12d0b8, unchecked((short)0xc26c), 0x11d0, 0xb4, 0x42, 0x0, 0xa0, 0x24, 0x4a, 0x1d, 0xd2); 15public static readonly Guid Java = new Guid(0x3a12d0b4, unchecked((short)0xc26c), 0x11d0, 0xb4, 0x42, 0x0, 0xa0, 0x24, 0x4a, 0x1d, 0xd2); 17public static readonly Guid Cobol = new Guid(unchecked((int)0xaf046cd1), unchecked((short)0xd0e1), 0x11d2, 0x97, 0x7c, 0x0, 0xa0, 0xc9, 0xb4, 0xd5, 0xc); 19public static readonly Guid Pascal = new Guid(unchecked((int)0xaf046cd2), unchecked((short)0xd0e1), 0x11d2, 0x97, 0x7c, 0x0, 0xa0, 0xc9, 0xb4, 0xd5, 0xc); 21public static readonly Guid ILAssembly = new Guid(unchecked((int)0xaf046cd3), unchecked((short)0xd0e1), 0x11d2, 0x97, 0x7c, 0x0, 0xa0, 0xc9, 0xb4, 0xd5, 0xc); 23public static readonly Guid JScript = new Guid(0x3a12d0b6, unchecked((short)0xc26c), 0x11d0, 0xb4, 0x42, 0x00, 0xa0, 0x24, 0x4a, 0x1d, 0xd2); 25public static readonly Guid SMC = new Guid(unchecked((int)0xd9b9f7b), 0x6611, unchecked((short)0x11d3), 0xbd, 0x2a, 0x0, 0x0, 0xf8, 0x8, 0x49, 0xbd); 27public static readonly Guid MCPlusPlus = new Guid(0x4b35fde8, unchecked((short)0x07c6), 0x11d3, 0x90, 0x53, 0x0, 0xc0, 0x4f, 0xa3, 0x02, 0xa1);
System\Diagnostics\SymbolStore\SymLanguageVendor.cs (1)
8public static readonly Guid Microsoft = new Guid(unchecked((int)0x994b45c4), unchecked((short)0xe6e9), 0x11d2, 0x90, 0x3f, 0x00, 0xc0, 0x4f, 0xa3, 0x02, 0xa1);
System.Drawing.Common.Tests (34)
System\Drawing\Imaging\FrameDimensionTests.cs (12)
20yield return new object[] { new Guid("{6aedbd6d-3fb5-418a-83a6-7f45229dc872}"), FrameDimension.Time }; 21yield return new object[] { new Guid("{84236f7b-3bd3-428f-8dab-4ea1439ca315}"), FrameDimension.Resolution }; 22yield return new object[] { new Guid("{7462dc86-6180-4c7e-8e3f-ee7333a7a483}"), FrameDimension.Page }; 23yield return new object[] { new Guid("48749428-316f-496a-ab30-c819a92b3137"), new FrameDimension(new Guid("48749428-316f-496a-ab30-c819a92b3137")) }; 31yield return new object[] { new FrameDimension(new Guid("48749428-316f-496a-ab30-c819a92b3137")), new FrameDimension(new Guid("48749428-316f-496a-ab30-c819a92b3137")), true }; 32yield return new object[] { new FrameDimension(new Guid("48749428-316f-496a-ab30-c819a92b3137")), new FrameDimension(new Guid("b96b3cad-0728-11d3-9d7b-0000f81ef32e")), false }; 33yield return new object[] { new FrameDimension(new Guid("48749428-316f-496a-ab30-c819a92b3137")), null, false }; 34yield return new object[] { new FrameDimension(new Guid("48749428-316f-496a-ab30-c819a92b3137")), new(), false }; 45yield return new object[] { "[FrameDimension: 48749428-316f-496a-ab30-c819a92b3137]", new FrameDimension(new Guid("48749428-316f-496a-ab30-c819a92b3137")) };
System\Drawing\Imaging\ImageCodecInfoTests.cs (2)
62_encoders.TryGetValue(new Guid(clsid), out ImageCodecInfo encoder); 68_decoders.TryGetValue(new Guid(clsid), out ImageCodecInfo decoder);
System\Drawing\Imaging\ImageFormatTests.cs (20)
8private static ImageFormat BmpImageFormat { get; } = new(new Guid("b96b3cab-0728-11d3-9d7b-0000f81ef32e")); 9private static ImageFormat EmfImageFormat { get; } = new(new Guid("b96b3cac-0728-11d3-9d7b-0000f81ef32e")); 10private static ImageFormat ExifImageFormat { get; } = new(new Guid("b96b3cb2-0728-11d3-9d7b-0000f81ef32e")); 11private static ImageFormat GifImageFormat { get; } = new(new Guid("b96b3cb0-0728-11d3-9d7b-0000f81ef32e")); 12private static ImageFormat TiffImageFormat { get; } = new(new Guid("b96b3cb1-0728-11d3-9d7b-0000f81ef32e")); 13private static ImageFormat PngImageFormat { get; } = new(new Guid("b96b3caf-0728-11d3-9d7b-0000f81ef32e")); 14private static ImageFormat MemoryBmpImageFormat { get; } = new(new Guid("b96b3caa-0728-11d3-9d7b-0000f81ef32e")); 15private static ImageFormat IconImageFormat { get; } = new(new Guid("b96b3cb5-0728-11d3-9d7b-0000f81ef32e")); 16private static ImageFormat JpegImageFormat { get; } = new(new Guid("b96b3cae-0728-11d3-9d7b-0000f81ef32e")); 17private static ImageFormat WmfImageFormat { get; } = new(new Guid("b96b3cad-0728-11d3-9d7b-0000f81ef32e")); 18private static ImageFormat HeifImageFormat { get; } = new(new Guid("{b96b3cb6-0728-11d3-9d7b-0000f81ef32e}")); 19private static ImageFormat WebpImageFormat { get; } = new(new Guid("{b96b3cb7-0728-11d3-9d7b-0000f81ef32e}")); 20private static ImageFormat CustomImageFormat { get; } = new(new Guid("48749428-316f-496a-ab30-c819a92b3137")); 42yield return new object[] { new Guid("48749428-316f-496a-ab30-c819a92b3137"), CustomImageFormat }; 85yield return new object[] { new ImageFormat(new Guid("48749428-316f-496a-ab30-c819a92b3137")), new ImageFormat(new Guid("48749428-316f-496a-ab30-c819a92b3137")), true }; 86yield return new object[] { new ImageFormat(new Guid("48749428-316f-496a-ab30-c819a92b3137")), new ImageFormat(new Guid("b96b3cad-0728-11d3-9d7b-0000f81ef32e")), false }; 87yield return new object[] { new ImageFormat(new Guid("48749428-316f-496a-ab30-c819a92b3137")), null, false }; 88yield return new object[] { new ImageFormat(new Guid("48749428-316f-496a-ab30-c819a92b3137")), new(), false };
System.Linq.Expressions (1)
System\Linq\Expressions\SymbolDocumentInfo.cs (1)
35internal static readonly Guid DocumentType_Text = new Guid(0x5a869d0b, 0x6611, 0x11d3, 0xbd, 0x2a, 0, 0, 0xf8, 8, 0x49, 0xbd);
System.Private.CoreLib (15)
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Guid.cs (2)
99value = new Guid((int)i1, (short)i2, (short)i3, (byte)(i4 >> 8), (byte)i4, 250value = new Guid((int)i1, (short)i2, (short)i3, (byte)(i4 >> 8), (byte)i4,
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (2)
1774return new Guid(bytes); 3904Guid id = new Guid("20752bc4-c151-50f5-f27b-df92d8af5a61");
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\RuntimeEventSource.cs (1)
17internal static readonly Guid EventSourceGuid = new Guid("49592C0F-5A05-516D-AA4B-A64E02026C89");
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TraceLoggingEventSource.cs (1)
806metaData.AddRange(new Guid(value).ToByteArray());
src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.cs (1)
1591m_SortVersion = new SortVersion(0, CultureInfo.LOCALE_INVARIANT, new Guid(0, 0, 0, 0, 0, 0, 0,
src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.Icu.cs (1)
950return new SortVersion(sortVersion, LCID, new Guid(sortVersion, 0, 0, 0, 0, 0, 0,
src\libraries\System.Private.CoreLib\src\System\Globalization\SortVersion.cs (1)
36customVersion = new Guid(0, 0, 0, 0, 0, 0, 0, b1, b2, b3, b4);
src\libraries\System.Private.CoreLib\src\System\Guid.cs (5)
42public static Guid AllBitsSet => new Guid(uint.MaxValue, ushort.MaxValue, ushort.MaxValue, byte.MaxValue, byte.MaxValue, byte.MaxValue, byte.MaxValue, byte.MaxValue, byte.MaxValue, byte.MaxValue, byte.MaxValue); 908Guid guid = new Guid(MemoryMarshal.AsBytes(new ReadOnlySpan<Guid>(in this)), false); 926Guid guid = new Guid(MemoryMarshal.AsBytes(new ReadOnlySpan<Guid>(in this)), bigEndian); 945Guid guid = new Guid(MemoryMarshal.AsBytes(new ReadOnlySpan<Guid>(in this)), false); 967Guid guid = new Guid(MemoryMarshal.AsBytes(new ReadOnlySpan<Guid>(in this)), bigEndian);
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TplEventSource.cs (1)
573return new Guid(taskID,
System.Private.CoreLib.Generators (1)
EventSourceGenerator.Parser.cs (1)
124return new Guid(bytes);
System.Private.DataContractSerialization (5)
System\Runtime\Serialization\XmlReaderDelegator.cs (1)
685return new Guid(str);
System\Xml\UniqueId.cs (1)
273guid = new Guid(buffer);
System\Xml\XmlBufferReader.cs (1)
994=> new Guid(_buffer.AsSpan(offset, ValueHandleLength.Guid));
System\Xml\XmlConverter.cs (1)
289return new Guid(value.Trim());
System\Xml\XmlDictionaryReader.cs (1)
896value = new Guid(string.Empty);
System.Private.Windows.Core (6)
Windows\Win32\System\Com\CLSID.cs (5)
9internal static Guid AutoComplete { get; } = new(0x00BB2763, 0x6A77, 0x11D0, 0xA5, 0x35, 0x00, 0xC0, 0x4F, 0xD7, 0xD0, 0x62); 12internal static Guid DragDropHelper { get; } = new(0x4657278A, 0x411B, 0x11D2, 0x83, 0x9A, 0x0, 0xC0, 0x4F, 0xD9, 0x18, 0xD0); 15internal static Guid FileSaveDialog { get; } = new(0xC0B4E2F3, 0xBA21, 0x4773, 0x8D, 0xBA, 0x33, 0x5E, 0xC9, 0x46, 0xEB, 0x8B); 18internal static Guid FileOpenDialog { get; } = new(0xDC1C5A9C, 0xE88A, 0x4DDE, 0xA5, 0xA1, 0x60, 0xF8, 0x2A, 0x20, 0xAE, 0xF7); 21internal static Guid StdGlobalInterfaceTable { get; } = new(0x00000323, 0x0000, 0x0000, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46);
Windows\Win32\System\Com\IComCallableWrapper.cs (1)
15public static Guid IID_Guid { get; } = new(0x73b17daf, 0x0480, 0x4702, 0xaf, 0x7c, 0xaf, 0x3b, 0xd4, 0x71, 0x5d, 0x71);
System.Private.Xml (5)
System\Xml\BinaryXml\XmlBinaryReader.cs (2)
3952Guid v = new Guid(a, b, c, _data[pos + 8], _data[pos + 9], _data[pos + 10], _data[pos + 11], _data[pos + 12], _data[pos + 13], _data[pos + 14], _data[pos + 15]); 4089Guid v = new Guid(a, b, c, _data[pos + 8], _data[pos + 9], _data[pos + 10], _data[pos + 11], _data[pos + 12], _data[pos + 13], _data[pos + 14], _data[pos + 15]);
System\Xml\Serialization\XmlSerializationReader.cs (1)
669value = new Guid(CollapseWhitespace(ReadStringValue()));
System\Xml\XmlConvert.cs (2)
1263return new Guid(s); 1274result = new Guid(s);
System.Reflection.Metadata (3)
System\Reflection\Internal\Utilities\MemoryBlock.cs (1)
254return new Guid(
System\Reflection\Metadata\BlobContentId.cs (1)
109Guid guid = new Guid((int)a, (short)b, (short)c, d, e, f, g, h, i, j, k);
System\Reflection\Metadata\BlobReader.cs (1)
324return new Guid(
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\Types\RoDefinitionType.cs (1)
142return new Guid(guidString);
System.Transactions.Local (3)
System\Transactions\TransactionInteropNonWindows.cs (3)
43public static readonly Guid PromoterTypeDtc = new Guid("14229753-FFE1-428D-82B7-DF73045CB8DA"); 93var txId = new Guid(cookie.AsSpan(16, 16)); 159var txId = new Guid(propagationToken.AsSpan(8, 16));
System.Windows.Forms (14)
System\Windows\Forms\ActiveX\AxHost.cs (5)
59private static readonly Guid s_dataSource_Guid = new("{7C0FFAB3-CD84-11D0-949A-00A0C91110ED}"); 60private static readonly Guid s_windowsMediaPlayer_Clsid = new("{22d6f312-b0f6-11d0-94ab-0080c74c7e95}"); 61private static readonly Guid s_comctlImageCombo_Clsid = new("{a98a24c0-b06f-3684-8c12-c52ae341e0bc}"); 62private static readonly Guid s_maskEdit_Clsid = new("{c932ba85-4374-101b-a56c-00aa003668dc}"); 189_clsid = new Guid(clsid);
System\Windows\Forms\Application.ComponentThreadContext.cs (2)
111Guid sid = new(MsoComponentIds.SID_SMsoComponentManager); 112Guid iid = new(MsoComponentIds.IID_IMsoComponentManager);
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (1)
72private static Guid GUID_COLOR { get; } = new("{66504301-BE0F-101A-8BBB-00AA00300CAB}");
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridCommands.cs (2)
19protected static readonly Guid wfcMenuGroup = new("{a72bd644-1979-4cbc-a620-ea4112198a66}"); 24protected static readonly Guid wfcMenuCommand = new("{5a51cf82-7619-4a5d-b054-47f438425aa7}");
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
79_clsid = new Guid(clsidString);
System\Windows\Forms\Controls\WebBrowser\WebBrowserHelper.cs (3)
39internal static Guid s_windowsMediaPlayer_Clsid = new("{22d6f312-b0f6-11d0-94ab-0080c74c7e95}"); 40internal static Guid s_comctlImageCombo_Clsid = new("{a98a24c0-b06f-3684-8c12-c52ae341e0bc}"); 41internal static Guid s_maskEdit_Clsid = new("{c932ba85-4374-101b-a56c-00aa003668dc}");
System.Windows.Forms.Design (8)
System\Windows\Forms\Design\Behavior\DesignerActionKeyboardBehavior.cs (1)
13private static readonly Guid s_vSStandardCommandSet97 = new("{5efc7975-14bc-11cf-9b2b-00aa00573819}");
System\Windows\Forms\Design\CommandSet.cs (1)
222ds?.SetValue(typeof(CommandID), new CommandID(new Guid("BA09E2AF-9DF2-4068-B2F0-4C7E5CC19E2F"), 0));
System\Windows\Forms\Design\DocumentDesigner.AxToolboxItem.cs (1)
286Guid tlbGuid = new((string)o);
System\Windows\Forms\Design\DocumentDesigner.cs (1)
53private static readonly Guid s_htmlDesignTime = new("73CEF3DD-AE85-11CF-A406-00AA00C00940");
System\Windows\Forms\Design\MenuCommands.cs (4)
64private static readonly Guid s_vsStandardCommandSet97 = new("{5efc7975-14bc-11cf-9b2b-00aa00573819}"); 71private static readonly Guid s_wfMenuGroup = new("{74D21312-2AEE-11d1-8BFB-00A0C90F26F7}"); 76private static readonly Guid s_wfCommandSet = new("{74D21313-2AEE-11d1-8BFB-00A0C90F26F7}"); 81private static readonly Guid s_guidVSStd2K = new("{1496A755-94DE-11D0-8C3F-00C04FC2AAE2}");
System.Windows.Forms.Design.Tests (37)
System\Windows\Forms\Design\CollectionEditVerbManagerTests.cs (1)
33editor.EditItemsVerb.CommandID.Should().Be(new CommandID(new Guid("74d21313-2aee-11d1-8bfb-00a0c90f26f7"), 8192));
System\Windows\Forms\Design\MenuCommandsTests.cs (36)
21yield return new object[] { MenuCommands.ComponentTrayMenu, new CommandID(new Guid("74d21312-2aee-11d1-8bfb-00a0c90f26f7"), 1286) }; 22yield return new object[] { MenuCommands.ContainerMenu, new CommandID(new Guid("74d21312-2aee-11d1-8bfb-00a0c90f26f7"), 1281) }; 23yield return new object[] { MenuCommands.DesignerProperties, new CommandID(new Guid("74d21313-2aee-11d1-8bfb-00a0c90f26f7"), 4097) }; 24yield return new object[] { MenuCommands.EditLabel, new CommandID(new Guid("5efc7975-14bc-11cf-9b2b-00aa00573819"), 338) }; 25yield return new object[] { MenuCommands.KeyCancel, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 103) }; 26yield return new object[] { MenuCommands.KeyDefaultAction, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 3) }; 27yield return new object[] { MenuCommands.KeyEnd, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 17) }; 28yield return new object[] { MenuCommands.KeyHome, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 15) }; 29yield return new object[] { MenuCommands.KeyInvokeSmartTag, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 147) }; 30yield return new object[] { MenuCommands.KeyMoveDown, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 13) }; 31yield return new object[] { MenuCommands.KeyMoveLeft, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 7) }; 32yield return new object[] { MenuCommands.KeyMoveRight, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 9) }; 33yield return new object[] { MenuCommands.KeyMoveUp, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 11) }; 34yield return new object[] { MenuCommands.KeyNudgeDown, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 1225) }; 35yield return new object[] { MenuCommands.KeyNudgeHeightDecrease, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 1229) }; 36yield return new object[] { MenuCommands.KeyNudgeHeightIncrease, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 1228) }; 37yield return new object[] { MenuCommands.KeyNudgeLeft, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 1224) }; 38yield return new object[] { MenuCommands.KeyNudgeRight, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 1226) }; 39yield return new object[] { MenuCommands.KeyNudgeUp, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 1227) }; 40yield return new object[] { MenuCommands.KeyNudgeWidthDecrease, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 1230) }; 41yield return new object[] { MenuCommands.KeyNudgeWidthDecrease, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 1230) }; 42yield return new object[] { MenuCommands.KeyNudgeHeightIncrease, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 1228) }; 43yield return new object[] { MenuCommands.KeyReverseCancel, new CommandID(new Guid("74d21313-2aee-11d1-8bfb-00a0c90f26f7"), 16385) }; 44yield return new object[] { MenuCommands.KeySelectNext, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 4) }; 45yield return new object[] { MenuCommands.KeySelectPrevious, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 5) }; 46yield return new object[] { MenuCommands.KeyShiftEnd, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 18) }; 47yield return new object[] { MenuCommands.KeyShiftHome, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 16) }; 48yield return new object[] { MenuCommands.KeySizeHeightDecrease, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 14) }; 49yield return new object[] { MenuCommands.KeySizeHeightIncrease, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 12) }; 50yield return new object[] { MenuCommands.KeySizeWidthDecrease, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 8) }; 51yield return new object[] { MenuCommands.KeySizeWidthIncrease, new CommandID(new Guid("1496a755-94de-11d0-8c3f-00c04fc2aae2"), 10) }; 52yield return new object[] { MenuCommands.KeyTabOrderSelect, new CommandID(new Guid("74d21313-2aee-11d1-8bfb-00a0c90f26f7"), 16405) }; 53yield return new object[] { MenuCommands.SelectionMenu, new CommandID(new Guid("74d21312-2aee-11d1-8bfb-00a0c90f26f7"), 1280) }; 54yield return new object[] { MenuCommands.SetStatusRectangle, new CommandID(new Guid("74d21313-2aee-11d1-8bfb-00a0c90f26f7"), 16388) }; 55yield return new object[] { MenuCommands.SetStatusText, new CommandID(new Guid("74d21313-2aee-11d1-8bfb-00a0c90f26f7"), 16387) }; 56yield return new object[] { MenuCommands.TraySelectionMenu, new CommandID(new Guid("74d21312-2aee-11d1-8bfb-00a0c90f26f7"), 1283) };
System.Windows.Forms.Interop.Tests (2)
PropertyGridTests.cs (2)
126Guid clsidRawErrorInfoUsageTest = new("0ED8EE0D-22E3-49EA-850C-E69B20D1F296"); 137Guid clsidStandardErrorInfoUsageTest = new("EA1FCB3A-277C-4C79-AB85-E2ED3E858201");
System.Windows.Forms.Primitives (9)
Microsoft\Office\IMsoComponent.cs (1)
103internal static Guid Guid { get; } = new(0x000C0600, 0x0000, 0x0000, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46);
Microsoft\Office\IMsoComponentManager.cs (1)
15internal static Guid Guid { get; } = new(0x000C0601, 0x0000, 0x0000, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46);
Microsoft\VisualStudio\Shell\ICategorizeProperties.cs (1)
13internal static Guid Guid { get; } = new(0x4D07FC10, 0xF931, 0x11CE, 0xB0, 0x01, 0x00, 0xAA, 0x00, 0x68, 0x84, 0xE5);
Microsoft\VisualStudio\Shell\IProvidePropertyBuilder.cs (1)
13internal static Guid Guid { get; } = new(0x33C0C1D8, 0x33CF, 0x11d3, 0xBF, 0xF2, 0x00, 0xC0, 0x4F, 0x99, 0x02, 0x35);
Microsoft\VisualStudio\Shell\IVSMDPerPropertyBrowsing.cs (1)
14internal static Guid Guid { get; } = new(0x7494683C, 0x37A0, 0x11D2, 0xA2, 0x73, 0x00, 0xC0, 0x4F, 0x8E, 0xF4, 0xFF);
Microsoft\VisualStudio\Shell\IVsPerPropertyBrowsing.cs (1)
13public static Guid Guid { get; } = new(0x0FF510A3, 0x5FA5, 0x49F1, 0x8C, 0xCC, 0x19, 0x0D, 0x71, 0x08, 0x3F, 0x3E);
System\Windows\Forms\IExtender.cs (1)
84public static Guid IID_Guid { get; } = new(0x39088D7E, 0xB71E, 0x11D1, 0x8F, 0x39, 0x00, 0xC0, 0x4F, 0xD9, 0x46, 0xD0);
Windows\Win32\System\Com\UnknownDispatch.cs (1)
12private static readonly Guid s_stdole = new("00020430-0000-0000-C000-000000000046");
Windows\Win32\UI\Accessibility\AccessibleDispatch.cs (1)
14private static readonly Guid s_accessibilityTypeLib = new("1ea4dbf0-3c3b-11cf-810c-00aa00389b71");
System.Windows.Forms.Primitives.Tests (3)
Interop\Oleaut32\VARIANTTests.cs (2)
5570yield return new object[] { new Guid("8856f961-340a-11d0-a96b-00c04fd705a2") }; 5669yield return new object[] { new Guid("8856f961-340a-11d0-a96b-00c04fd705a2") };
System\Windows\Forms\FileDialogCustomPlaceTests.cs (1)
84yield return new object[] { new FileDialogCustomPlace(new Guid(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11)), "System.Windows.Forms.FileDialogCustomPlace Path: KnownFolderGuid: 00000001-0002-0003-0405-060708090a0b" };
System.Windows.Forms.Tests (6)
System\Windows\Forms\AxHost.ConnectionPointCookieTests.cs (1)
14private static Guid CLSID_WebBrowser { get; } = new("8856f961-340a-11d0-a96b-00c04fd705a2");
System\Windows\Forms\FileDialogTests.cs (1)
592ClientGuid = new Guid("ad6e2857-4659-4791-aa59-efffa61d4594"),
System\Windows\Forms\FolderBrowserDialogTests.cs (1)
287ClientGuid = new Guid("ad6e2857-4659-4791-aa59-efffa61d4594"),
System\Windows\Forms\WebBrowserTests.cs (2)
2309Type t = Type.GetTypeFromCLSID(new Guid("0002DF01-0000-0000-C000-000000000046")); 2343Type t = Type.GetTypeFromCLSID(new Guid("0002DF01-0000-0000-C000-000000000046"));
TestResources\ComClasses.cs (1)
16new Guid("366D0F1F-2D8A-4C9B-897D-CE1E74EDD6E5"))
System.Windows.Forms.UI.IntegrationTests (1)
DragDropTests.cs (1)
602Guid CLSID_CUIAutomation = new("FF48DBA4-60EF-4201-AA87-54103EEF594E");
UIAutomationClientSideProviders (3)
MS\Win32\UnsafeNativeMethods.cs (3)
78internal static Guid IID_IUnknown = new Guid(0x00000000, 0x0000, 0x0000, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46); 79internal static Guid IID_IDispatch = new Guid(0x00020400, 0x0000, 0x0000, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46); 80internal static Guid IID_IAccessible = new Guid(0x618736e0, 0x3c3d, 0x11cf, 0x81, 0x0c, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
UIAutomationTypes (1)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\NativeMethodsOther.cs (1)
1532public static readonly Guid GUID_MONITOR_POWER_ON = new Guid(0x02731015, 0x4510, 0x4526, 0x99, 0xE6, 0xE5, 0xA1, 0x7E, 0xBD, 0x1A, 0xEA);
WindowsBase.Tests (1)
System\Security\RightsManagement\PublishLicenseTests.cs (1)
91Assert.Equal(new Guid("9257669d-2753-4f8f-94c6-028987c0434b"), license.ContentId);
WinFormsControlsTest (2)
Dialogs.ClientGuidConverter.cs (2)
37new Guid("38EA9AE9-13BE-4992-9482-DAD370894BBD"), 38new Guid("46DFEE70-A89E-4D9A-8842-6D46DBC1F195"),
5772 references to Guid
aspire (1)
DotNetCliRunner.cs (1)
346var uniqueSocketPathSegment = Guid.NewGuid().ToString("N");
Aspire.Azure.Data.Tables.Tests (1)
ConformanceTests.cs (1)
109string tableName = $"a{Guid.NewGuid().ToString("N")}";
Aspire.Azure.Messaging.EventHubs (1)
EventHubsComponent.cs (1)
79var slug = Guid.NewGuid().ToString().Substring(24);
Aspire.Azure.Messaging.EventHubs.Tests (2)
AspireEventHubsExtensionsTests.cs (1)
627ClientRequestId = Guid.NewGuid().ToString(),
tests\Aspire.Azure.Security.KeyVault.Tests\MockTransport.cs (1)
75ClientRequestId = Guid.NewGuid().ToString();
Aspire.Azure.Security.KeyVault.Tests (2)
AspireKeyVaultExtensionsTests.cs (1)
153ClientRequestId = Guid.NewGuid().ToString(),
MockTransport.cs (1)
75ClientRequestId = Guid.NewGuid().ToString();
Aspire.Azure.Storage.Blobs.Tests (1)
ConformanceTests.cs (1)
112string containerName = Guid.NewGuid().ToString();
Aspire.Azure.Storage.Queues.Tests (1)
ConformanceTests.cs (1)
111string queueName = Guid.NewGuid().ToString();
Aspire.Cli.Tests (2)
TestServices\TestProjectLocator.cs (1)
25var fakeProjectFilePath = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString(), "AppHost.csproj");
Utils\TemporaryRepo.cs (1)
61var path = Path.Combine(tempPath, "Aspire.Cli.Tests", "TemporaryWorkspaces", Guid.NewGuid().ToString());
Aspire.Confluent.Kafka.Tests (2)
OtelMetricsTests.cs (1)
66string topic = $"otel-topic-{Guid.NewGuid()}";
OtelTracesTests.cs (1)
67string topic = $"otel-topic-{Guid.NewGuid()}";
Aspire.Dashboard (12)
Components\Controls\GridValue.razor.cs (1)
106private readonly string _cellTextId = $"celltext-{Guid.NewGuid():N}";
Components\Controls\ResourceSelect.razor.cs (1)
16private readonly string _selectId = $"resource-select-{Guid.NewGuid():N}";
Components\Dialogs\TextVisualizerDialog.razor.cs (3)
25private readonly string _copyButtonId = $"copy-{Guid.NewGuid():N}"; 26private readonly string _openSelectFormatButtonId = $"select-format-{Guid.NewGuid():N}"; 27private readonly string _logContainerId = $"log-container-{Guid.NewGuid():N}";
Model\BrowserLinkOutgoingPeerResolver.cs (1)
47if (Guid.TryParse(parts[0], out _) && string.Equals(parts[1], lastSegment, StringComparisons.UrlPath))
Model\DashboardCommandExecutor.cs (1)
108Id = Guid.NewGuid().ToString(),
Otlp\Model\OtlpApplication.cs (2)
267if (Guid.TryParse(instanceId, out var guid))
Otlp\Model\OtlpLogEntry.cs (2)
24public Guid InternalId { get; } 28InternalId = Guid.NewGuid();
Otlp\Storage\TelemetryRepository.cs (1)
1208InternalId = Guid.NewGuid(),
Aspire.Dashboard.Components.Tests (1)
tests\Shared\DashboardModel\ModelTestHelpers.cs (1)
32Uid = Guid.NewGuid().ToString(),
Aspire.Dashboard.Tests (4)
Telemetry\DashboardTelemetryServiceTests.cs (3)
98var userTaskCorrelationId = Guid.NewGuid(); 135Content = new StringContent(JsonSerializer.Serialize(new TelemetryEventCorrelation { Id = Guid.NewGuid() }))
tests\Shared\DashboardModel\ModelTestHelpers.cs (1)
32Uid = Guid.NewGuid().ToString(),
Aspire.EndToEnd.Tests (2)
tests\Shared\TemplatesTesting\BuildEnvironment.cs (1)
158NuGetPackagesPath = UsesCustomDotNet ? Path.Combine(AppContext.BaseDirectory, $"nuget-cache-{Guid.NewGuid()}") : null;
tests\Shared\TemplatesTesting\TemplateCustomHive.cs (1)
10private static readonly string s_tmpDirSuffix = Guid.NewGuid().ToString()[..8];
Aspire.Hosting.Azure (9)
AzureProvisioningResource.cs (1)
59private static RoleAssignment CreateRoleAssignment(string prefix, ProvisionableResource scope, string roleId, string roleName, BicepValue<RoleManagementPrincipalType> principalType, BicepValue<Guid> principalId)
AzureResourcePreparer.cs (2)
305Lazy<BicepValue<Guid>> getPrincipalId, 314public BicepValue<Guid> PrincipalId => getPrincipalId.Value;
IAddRoleAssignmentsContext.cs (1)
32public BicepValue<Guid> PrincipalId { get; }
Provisioning\Provisioners\AzureProvisioner.cs (1)
548return new UserPrincipal(Guid.Parse(oid), upn);
Provisioning\Provisioners\AzureResourceProvisionerOfT.cs (3)
16internal sealed record UserPrincipal(Guid Id, string Name); 82Guid principalId, 98var roleAssignmentId = Guid.NewGuid().ToString();
Provisioning\Provisioners\BicepProvisioner.cs (1)
485Guid g => g.ToString(),
Aspire.Hosting.Azure.CosmosDB (1)
AzureCosmosDBExtensions.cs (1)
515internal static void AddContributorRoleAssignment(AzureResourceInfrastructure infra, CosmosDBAccount cosmosAccount, BicepValue<Guid> principalId)
Aspire.Hosting.Azure.PostgreSQL (1)
AzurePostgresExtensions.cs (1)
511internal static PostgreSqlFlexibleServerActiveDirectoryAdministrator AddActiveDirectoryAdministrator(AzureResourceInfrastructure infra, PostgreSqlFlexibleServer postgres, BicepValue<Guid> principalId, BicepValue<PostgreSqlFlexibleServerPrincipalType> principalType, BicepValue<string> principalName)
Aspire.Hosting.Azure.Redis (1)
AzureRedisExtensions.cs (1)
313internal static void AddContributorPolicyAssignment(AzureResourceInfrastructure infra, CdkRedisResource redis, BicepValue<Guid> principalId, BicepValue<string> principalName)
Aspire.Hosting.Azure.Sql (4)
AzureSqlExtensions.cs (4)
286internal static SqlServerAzureADAdministrator AddActiveDirectoryAdministrator(AzureResourceInfrastructure infra, SqlServer sqlServer, BicepValue<Guid> principalId, BicepValue<string> principalName) 306private BicepValue<Guid>? _sid; 329public BicepValue<Guid> SidOverride 369_sid = DefineProperty<Guid>("Sid", ["properties", "sid"]);
Aspire.Hosting.Azure.Tests (3)
AzureCosmosDBEmulatorFunctionalTests.cs (2)
331public Guid Id { get; set; } = Guid.NewGuid();
AzureStorageEmulatorFunctionalTests.cs (1)
165var blobNameAndContent = Guid.NewGuid().ToString();
Aspire.Hosting.PostgreSQL.Tests (1)
PostgresFunctionalTests.cs (1)
175client.DefaultRequestHeaders.Add("x-session-id", Guid.NewGuid().ToString());
Aspire.Hosting.Tests (10)
ManifestGenerationTests.cs (1)
537var manifestPath = Path.Combine(Path.GetTempPath(), "tempmanifests", Guid.NewGuid().ToString(), "manifest.json");
ProjectResourceTests.cs (1)
134Assert.True(Guid.TryParse(parts[1], out _));
SecretsStoreTests.cs (2)
20var userSecretsId = Guid.NewGuid().ToString("N"); 43var userSecretsId = Guid.NewGuid().ToString("N");
UserSecretsParameterDefaultTests.cs (3)
21var userSecretsId = Guid.NewGuid().ToString("N"); 51var userSecretsId = Guid.NewGuid().ToString("N"); 110return Guid.NewGuid().ToString("N");
Utils\DockerfileUtils.cs (2)
50var cacheBuster = Guid.NewGuid();
Utils\UnixSocketHelper.cs (1)
18var uniqueSocketPathSegment = Guid.NewGuid().ToString("N");
Aspire.StackExchange.Redis.Tests (1)
ConformanceTests.cs (1)
102string id = Guid.NewGuid().ToString();
Aspire.Templates.Tests (2)
tests\Shared\TemplatesTesting\BuildEnvironment.cs (1)
158NuGetPackagesPath = UsesCustomDotNet ? Path.Combine(AppContext.BaseDirectory, $"nuget-cache-{Guid.NewGuid()}") : null;
tests\Shared\TemplatesTesting\TemplateCustomHive.cs (1)
10private static readonly string s_tmpDirSuffix = Guid.NewGuid().ToString()[..8];
AzureAppService.ApiService (3)
Program.cs (3)
39var blobNameAndContent = Guid.NewGuid().ToString(); 79public Guid Id { get; set; } = Guid.NewGuid();
AzureContainerApps.ApiService (3)
Program.cs (3)
44var blobNameAndContent = Guid.NewGuid().ToString(); 100public Guid Id { get; set; } = Guid.NewGuid();
AzureFunctionsEndToEnd.ApiService (1)
Program.cs (1)
47var entry = new { Id = Guid.NewGuid(), Text = RandomString(length) };
AzureStorageEndToEnd.ApiService (1)
Program.cs (1)
23var blobNameAndContent = Guid.NewGuid().ToString();
BasicTestApp (4)
PreserveStateService.cs (4)
23public Guid Guid => _state.TheState; 33_state = new ServiceState { TheState = Guid.NewGuid() }; 37public void NewState() => _state = new ServiceState { TheState = Guid.NewGuid() }; 49public Guid TheState { get; set; }
BasicWebSite (5)
Controllers\DefaultValuesController.cs (2)
25Guid guid = default(Guid),
Controllers\TempDataController.cs (3)
53Guid guidValue) 76var value5 = (Guid)TempData["key5"];
BasketService (2)
BasketService.cs (2)
56Id = Guid.NewGuid().ToString(), 115Id = item.Id ?? Guid.NewGuid().ToString(),
BicepSample.ApiService (2)
Program.cs (2)
223public Guid Id { get; set; } = Guid.NewGuid();
Binding.Tcp.IntegrationTests (5)
OperationContextAsyncFlowTests.cs (5)
104Guid guid = Guid.NewGuid(); 151public async Task OnPingCallbackAsync(Guid guid) 184void Ping(Guid guid); 190Task OnPingCallbackAsync(Guid guid);
BuildActionTelemetryTable (1)
src\Workspaces\Core\Portable\Shared\Extensions\TelemetryExtensions.cs (1)
15public static Guid GetTelemetryId(this Type type, short scope = 0, string? additionalSuffixString = null)
BuildBoss (17)
ProjectEntry.cs (9)
23internal Guid ProjectGuid { get; } 24internal Guid TypeGuid { get; } 32Guid projectGuid, 33Guid typeGuid) 46internal static readonly Guid FolderProjectType = new Guid("2150E333-8FDC-42A3-9474-1A3956D46DE8"); 47internal static readonly Guid VsixProjectType = new Guid("82B43B9B-A64C-4715-B499-D71E9CA2BD60"); 48internal static readonly Guid SharedProject = new Guid("D954291E-2A0B-460D-934E-DC6B0785DB48"); 50internal static readonly Guid ManagedProjectSystemCSharp = new Guid("9A19103F-16F7-4668-BE54-9A1E7A4F7556"); 51internal static readonly Guid ManagedProjectSystemVisualBasic = new Guid("778DAE3C-4631-46EA-AA77-85C1314464D9");
ProjectReferenceEntry.cs (2)
18internal Guid? Project { get; } 22internal ProjectReferenceEntry(string fileName, Guid? project)
ProjectUtil.cs (2)
129Guid? project = null; 133project = Guid.Parse(projectElement.Value.Trim());
SolutionCheckerUtil.cs (2)
112static Guid getExpectedGuid(ProjectData data) 127var guid = getExpectedGuid(data.ProjectData);
SolutionUtil.cs (2)
53projectGuid: Guid.Parse(guid), 54typeGuid: Guid.Parse(typeGuid));
BuildValidator (6)
LocalReferenceResolver.cs (2)
31private readonly Dictionary<Guid, AssemblyInfo> _mvidMap = new(); 105public bool TryGetCachedAssemblyInfo(Guid mvid, [NotNullWhen(true)] out AssemblyInfo? assemblyInfo) => _mvidMap.TryGetValue(mvid, out assemblyInfo);
Program.cs (1)
182var map = new Dictionary<Guid, AssemblyInfo>();
Records.cs (2)
14internal sealed record AssemblyInfo(string FilePath, Guid Mvid) 20internal sealed record PortableExecutableInfo(string FilePath, Guid Mvid, bool IsReadyToRun, bool IsReferenceAssembly);
Util.cs (1)
30internal static Guid? GetMvid(PEReader peReader)
CdkSample.ApiService (4)
Program.cs (4)
92var blobNameAndContent = Guid.NewGuid().ToString(); 179public string Id { get; set; } = Guid.NewGuid().ToString("N"); 202public Guid Id { get; set; } = Guid.NewGuid();
Client.ChannelLayer.IntegrationTests (17)
DuplexChannelShapeTests.4.0.0.cs (2)
49requestMessage.Headers.MessageId = new UniqueId(Guid.NewGuid()); 104requestMessage.Headers.MessageId = new UniqueId(Guid.NewGuid());
DuplexChannelShapeTests.4.1.0.cs (2)
46requestMessage.Headers.MessageId = new UniqueId(Guid.NewGuid()); 106requestMessage.Headers.MessageId = new UniqueId(Guid.NewGuid());
DuplexChannelWithSynchronizationContext.cs (13)
26Guid guid = Guid.NewGuid(); 57Guid returnedGuid = callbackService.CallbackGuid; 86Guid guid = Guid.NewGuid(); 121Guid returnedGuid = callbackService.CallbackGuid; 163Guid guid = Guid.NewGuid(); 192Guid returnedGuid = callbackService.CallbackGuid; 257private TaskCompletionSource<Guid> _tcs = new TaskCompletionSource<Guid>(); 259public void OnPingCallback(Guid guid) 271public Guid CallbackGuid
Client.ClientBase.IntegrationTests (3)
DuplexClientBaseTests.4.1.0.cs (3)
66Guid guid = Guid.NewGuid(); 83Guid returnedGuid = callbackService.CallbackGuid;
Client.ExpectedExceptions.IntegrationTests (9)
ExpectedExceptionTests.4.1.0.cs (9)
98Guid guid = new Guid(uniqueIdentifier); 230Guid guid = Guid.NewGuid(); 252Task<Guid> task = serviceProxy.FaultPing(guid); 255Guid returnedGuid = task.GetAwaiter().GetResult(); 282Guid guid = Guid.NewGuid(); 304Task<Guid> task = serviceProxy.FaultPing(guid); 307Guid returnedGuid = task.GetAwaiter().GetResult();
Client.TypedClient.IntegrationTests (17)
TypedProxyDuplexTests.4.1.0.cs (8)
26Guid guid = Guid.NewGuid(); 39Task<Guid> task = serviceProxy.Ping(guid); 41Guid returnedGuid = task.Result; 61Guid guid = Guid.NewGuid(); 74Task<Guid> task = serviceProxy.Ping(guid); 76Guid returnedGuid = task.Result;
TypedProxyTests.4.0.0.cs (6)
410private TaskCompletionSource<Guid> _tcs; 414_tcs = new TaskCompletionSource<Guid>(); 417public Guid CallbackGuid 429public void OnPingCallback(Guid guid) 439void Ping(Guid guid); 445void OnPingCallback(Guid guid);
TypedProxyTests.4.1.0.cs (3)
53Guid guid = Guid.NewGuid(); 72Guid returnedGuid = callbackService.CallbackGuid;
ClientSample (1)
Tcp\TcpConnection.cs (1)
43public override string ConnectionId { get; set; } = Guid.NewGuid().ToString();
ConfigurationSchemaGenerator (2)
ConfigSchemaGenerator.cs (1)
73path = $"{ConfigSchemaEmitter.RootPathPrefix}{Guid.NewGuid()}";
RuntimeSource\Configuration.Binder\Parser\KnownTypeSymbols.cs (1)
77Guid = compilation.GetBestTypeByMetadataName(typeof(Guid));
ConfigurationSchemaGenerator.Tests (2)
VariousTypes.cs (2)
51/// A value of type <see cref="Guid"/>. 53public Guid PropertyOfGuid { get; set; }
Contract.Data.IntegrationTests (4)
DataContractTests.4.1.0.cs (4)
23Guid guid = Guid.NewGuid(); 61Guid guid = Guid.NewGuid();
Contract.XmlSerializer.IntegrationTests (18)
XmlSerializerFormatTest.cs (18)
188Guid guid = Guid.NewGuid(); 236Guid guid = Guid.NewGuid(); 284Guid guid = Guid.NewGuid(); 337Guid guid = Guid.NewGuid(); 343Guid guid2 = Guid.NewGuid(); 394Guid guid = Guid.NewGuid(); 400Guid guid2 = Guid.NewGuid(); 451Guid guid = Guid.NewGuid(); 457Guid guid2 = Guid.NewGuid();
CookieSessionSample (2)
MemoryCacheTicketStore.cs (2)
22var guid = Guid.NewGuid();
CosmosEndToEnd.ApiService (4)
Program.cs (4)
51var newEntry = new Entry() { Id = Guid.NewGuid().ToString() }; 57var newEntry = new User() { Id = $"user-{Guid.NewGuid()}" }; 98public Guid Id { get; set; } = Guid.NewGuid();
Crossgen2Tasks (1)
PrepareForReadyToRunCompilation.cs (1)
162Guid mvid = mdReader.GetGuid(mdReader.GetModuleDefinition().Mvid);
csc (2)
src\Compilers\Shared\BuildClient.cs (2)
222var requestId = Guid.NewGuid().ToString(); 321var testPipeName = $"mono-{Guid.NewGuid()}";
DatabaseMigration.ApiModel (5)
Migrations\20240216140519_InitialCreate.cs (1)
18Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false)
Migrations\20240216140519_InitialCreate.Designer.cs (1)
29b.Property<Guid>("Id")
Migrations\MyDb1ContextModelSnapshot.cs (1)
26b.Property<Guid>("Id")
MyDb1Context.cs (2)
13public Guid Id { get; set; } = Guid.NewGuid();
Diagnostics.EFCore.FunctionalTests (1)
SqlServerTestStore.cs (1)
10public static SqlTestStore CreateScratch() => new SqlTestStore($"D{Guid.NewGuid()}");
dotnet-svcutil.xmlserializer.IntegrationTests (18)
src\System.Private.ServiceModel\tests\Scenarios\Contract\XmlSerializer\XmlSerializerFormatTest.cs (18)
188Guid guid = Guid.NewGuid(); 236Guid guid = Guid.NewGuid(); 284Guid guid = Guid.NewGuid(); 337Guid guid = Guid.NewGuid(); 343Guid guid2 = Guid.NewGuid(); 394Guid guid = Guid.NewGuid(); 400Guid guid2 = Guid.NewGuid(); 451Guid guid = Guid.NewGuid(); 457Guid guid2 = Guid.NewGuid();
dotnet-svcutil-lib (251)
FrameworkFork\Microsoft.CodeDom\System\CodeChecksumPragma.cs (3)
22private Guid _checksumAlgorithmId; 28public CodeChecksumPragma(string fileName, Guid checksumAlgorithmId, byte[] checksumData) 47public Guid ChecksumAlgorithmId
FrameworkFork\Microsoft.Xml\Xml\BinaryXml\XmlBinaryReader.cs (2)
3986Guid v = new Guid(a, b, c, _data[pos + 8], _data[pos + 9], _data[pos + 10], _data[pos + 11], _data[pos + 12], _data[pos + 13], _data[pos + 14], _data[pos + 15]); 4123Guid v = new Guid(a, b, c, _data[pos + 8], _data[pos + 9], _data[pos + 10], _data[pos + 11], _data[pos + 12], _data[pos + 13], _data[pos + 14], _data[pos + 15]);
FrameworkFork\Microsoft.Xml\Xml\schema\DatatypeImplementation.cs (4)
3950private static readonly Type s_atomicValueType = typeof(Guid); 3951private static readonly Type s_listValueType = typeof(Guid[]); 3961return ((Guid)value1).Equals(value2) ? 0 : -1; 3986Guid guid;
FrameworkFork\Microsoft.Xml\Xml\Serialization\PrimitiveXmlSerializers.cs (2)
186WriteElementStringRaw(@"guid", @"", Microsoft.Xml.XmlConvert.ToString((System.Guid)((System.Guid)o)));
FrameworkFork\Microsoft.Xml\Xml\Serialization\Types.cs (2)
559AddNonXsdPrimitive(typeof(Guid), "guid", UrtTypes.Namespace, "Guid", new XmlQualifiedName("string", XmlSchema.Namespace), new XmlSchemaFacet[] { guidPattern }, TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.XmlEncodingNotRequired | TypeFlags.IgnoreDefault); 602else if (type == typeof(Guid))
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlCodeExporter.cs (2)
306else if (type == typeof(Guid)) 311initExpression = new CodeObjectCreateExpression(new CodeTypeReference(typeof(Guid)), new CodeExpression[] { valueExpression });
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationReader.cs (2)
436return typeof(Guid); 790value = default(Nullable<Guid>);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriter.cs (4)
230else if (type == typeof(Guid)) 341else if (t == typeof(Guid)) 343value = XmlConvert.ToString((Guid)o); 1372if (Convert.GetTypeCode(o) == TypeCode.Object && !(o is Guid) && (t != typeof(XmlQualifiedName)) && !(o is XmlNode[]) && (t != typeof(byte[])))
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializer.cs (2)
833else if (_primitiveType == typeof(Guid)) 907else if (_primitiveType == typeof(Guid))
FrameworkFork\Microsoft.Xml\Xml\XmlConvert.cs (4)
888public static string ToString(Guid value) 1459public static Guid ToGuid(string s) 1464internal static Exception TryToGuid(string s, out Guid result) 1468result = Guid.Empty;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContract.cs (1)
928else if (type == typeof(Guid))
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\Globals.cs (1)
197s_typeOfGuid = typeof(Guid);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\PrimitiveDataContract.cs (2)
772internal GuidDataContract(XmlDictionaryString name, XmlDictionaryString ns) : base(typeof(Guid), name, ns) 781writer.WriteGuid((Guid)obj);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlReaderDelegator.cs (1)
541internal Guid ReadElementContentAsGuid()
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlWriterDelegator.cs (3)
359WriteGuid((Guid)value); 616internal void WriteGuid(Guid value) 623internal void WriteGuid(Guid value, XmlDictionaryString name, XmlDictionaryString ns)
FrameworkFork\System.Runtime.Serialization\System\Xml\ArrayHelper.cs (6)
338internal class GuidArrayHelperWithString : ArrayHelper<string, Guid> 342protected override int ReadArray(XmlDictionaryReader reader, string localName, string namespaceUri, Guid[] array, int offset, int count) 347protected override void WriteArray(XmlDictionaryWriter writer, string prefix, string localName, string namespaceUri, Guid[] array, int offset, int count) 353internal class GuidArrayHelperWithDictionaryString : ArrayHelper<XmlDictionaryString, Guid> 357protected override int ReadArray(XmlDictionaryReader reader, XmlDictionaryString localName, XmlDictionaryString namespaceUri, Guid[] array, int offset, int count) 362protected override void WriteArray(XmlDictionaryWriter writer, string prefix, XmlDictionaryString localName, XmlDictionaryString namespaceUri, Guid[] array, int offset, int count)
FrameworkFork\System.Runtime.Serialization\System\Xml\UniqueId.cs (4)
67public UniqueId() : this(Guid.NewGuid()) 71public UniqueId(Guid guid) : this(guid.ToByteArray()) 333public bool TryGetGuid(out Guid guid) 338guid = Guid.Empty;
FrameworkFork\System.Runtime.Serialization\System\Xml\ValueHandle.cs (3)
211return typeof(Guid); 418public Guid ToGuid() 903private Guid GetGuid()
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBaseReader.cs (5)
1607public override Guid ReadContentAsGuid() 1612Guid value = node.Value.ToGuid(); 1662else if (type == typeof(Guid)) 1828public override Guid[] ReadGuidArray(string localName, string namespaceUri) 1833public override Guid[] ReadGuidArray(XmlDictionaryString localName, XmlDictionaryString namespaceUri)
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBaseWriter.cs (3)
1200else if (value is Guid) 1202WriteValue((Guid)value); 1387public override void WriteValue(Guid value)
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBinaryReader.cs (6)
252public override Guid ReadElementContentAsGuid() 259Guid value = BufferReader.ReadGuid(); 1170type = typeof(Guid); 1471private int ReadArray(Guid[] array, int offset, int count) 1483public override int ReadArray(string localName, string namespaceUri, Guid[] array, int offset, int count) 1490public override int ReadArray(XmlDictionaryString localName, XmlDictionaryString namespaceUri, Guid[] array, int offset, int count)
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBinaryWriter.cs (5)
888public override void WriteGuidText(Guid guid) 962public void WriteGuidArray(Guid[] array, int offset, int count) 1212else if (type == typeof(Guid)) 1582public override void WriteArray(string prefix, string localName, string namespaceUri, Guid[] array, int offset, int count) 1595public override void WriteArray(string prefix, XmlDictionaryString localName, XmlDictionaryString namespaceUri, Guid[] array, int offset, int count)
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBufferReader.cs (3)
508public Guid ReadGuid() 512Guid guid = GetGuid(offset); 1134public Guid GetGuid(int offset)
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlConverter.cs (5)
318static public Guid ToGuid(string value) 338static public Guid ToGuid(byte[] buffer, int offset, int count) 426static public string ToString(Guid value) { return value.ToString(); } 452else if (value is Guid) 453return ToString((Guid)value);
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlDictionaryAsyncCheckWriter.cs (3)
369public override void WriteValue(Guid value) 504public override void WriteArray(string prefix, string localName, string namespaceUri, Guid[] array, int offset, int count) 510public override void WriteArray(string prefix, XmlDictionaryString localName, XmlDictionaryString namespaceUri, Guid[] array, int offset, int count)
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlDictionaryReader.cs (10)
482if (type == typeof(Guid[])) 485Guid[] guids = new Guid[values.Length]; 556public virtual Guid ReadContentAsGuid() 778public virtual Guid ReadElementContentAsGuid() 781Guid value; 1145public virtual Guid[] ReadGuidArray(string localName, string namespaceUri) 1150public virtual Guid[] ReadGuidArray(XmlDictionaryString localName, XmlDictionaryString namespaceUri) 1155public virtual int ReadArray(string localName, string namespaceUri, Guid[] array, int offset, int count) 1167public virtual int ReadArray(XmlDictionaryString localName, XmlDictionaryString namespaceUri, Guid[] array, int offset, int count)
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlDictionaryWriter.cs (5)
179public virtual void WriteValue(Guid value) 274else if (type == typeof(Guid)) 303else if (type == typeof(Guid)) 554public virtual void WriteArray(string prefix, string localName, string namespaceUri, Guid[] array, int offset, int count) 565public virtual void WriteArray(string prefix, XmlDictionaryString localName, XmlDictionaryString namespaceUri, Guid[] array, int offset, int count)
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlNodeWriter.cs (1)
88public abstract void WriteGuidText(Guid value);
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlUTF8TextWriter.cs (1)
730public override void WriteGuidText(Guid value)
FrameworkFork\System.ServiceModel\Internals\FxTrace.cs (1)
18private static Guid s_etwProviderId;
FrameworkFork\System.ServiceModel\Internals\System\Runtime\ActionItem.cs (4)
107private Guid _activityId; 156Guid currentActivityId = EtwDiagnosticTrace.ActivityId; 169Guid previous = Guid.Empty;
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Diagnostics\DiagnosticTraceBase.cs (1)
209public static Guid ActivityId
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Diagnostics\EtwDiagnosticTrace.cs (7)
23private static Guid s_defaultEtwProviderId = Guid.Empty; 33s_defaultEtwProviderId = Guid.Empty; 38public EtwDiagnosticTrace(string traceSourceName, Guid etwProviderId) 43static public Guid DefaultEtwProviderId 116public void SetAndTraceTransfer(Guid newId, bool emitTransfer) 128public void TraceTransfer(Guid newId)
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Diagnostics\EventTraceActivity.cs (7)
14public Guid ActivityId; 18: this(Guid.NewGuid(), setOnThread) 22public EventTraceActivity(Guid guid, bool setOnThread = false) 38s_empty = new EventTraceActivity(Guid.Empty); 55return new EventTraceActivity(Guid.Empty); 61public static Guid GetActivityIdFromThread() 66public void SetActivityId(Guid guid)
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Fx.cs (5)
292public static Guid CreateGuid(string guidString) 295Guid result = Guid.Empty; 315public static bool TryCreateGuid(string guidString, out Guid result) 318result = Guid.Empty;
FrameworkFork\System.ServiceModel\Internals\WcfEventSource.cs (8)
303public void MessageReceivedByTransport(EventTraceActivity eventTraceActivity, string ListenAddress, Guid relatedActivityId) 343public void ClientOperationPrepared(EventTraceActivity eventTraceActivity, string Action, string ContractName, string Destination, Guid relatedActivityId) 396public void MessageSentToTransport(Guid CorrelationId, string HostReference, string AppDomain) 402public void MessageSentToTransport(EventTraceActivity eventTraceActivity, Guid CorrelationId) 416public void MessageReceivedFromTransport(Guid CorrelationId, string HostReference, string AppDomain) 422public void MessageReceivedFromTransport(EventTraceActivity eventTraceActivity, Guid CorrelationId, string HostReference) 1194public void ListenerOpenStart(EventTraceActivity eventTraceActivity, string Uri, Guid relatedActivityId) 2142Guid oldGuid;
FrameworkFork\System.ServiceModel\SMDiagnostics\System\ServiceModel\Diagnostics\Activity.cs (8)
11protected Guid parentId; 12private Guid _currentId; 15protected Activity(Guid activityId, Guid parentId) 23internal static Activity CreateActivity(Guid activityId) 26if (activityId != Guid.Empty) 28Guid currentActivityId = DiagnosticTraceBase.ActivityId; 47protected Guid Id
FrameworkFork\System.ServiceModel\SMDiagnostics\System\ServiceModel\Diagnostics\ExceptionUtility.cs (3)
28private static Guid s_activityId; 129internal static void UseActivityId(Guid activityId) 136ExceptionUtility.s_activityId = Guid.Empty;
FrameworkFork\System.ServiceModel\System\IdentityModel\SecurityUniqueId.cs (1)
13private static string s_commonPrefix = "uuid-" + Guid.NewGuid().ToString() + "-";
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\SamlAssertion.cs (1)
23private string _assertionId = /*TODO: SamlConstants.AssertionIdPrefix*/ "SamlSecurityToken-" + Guid.NewGuid().ToString();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\CommunicationObject.cs (35)
103throw TraceUtility.ThrowHelperError(this.CreateBaseClassMethodNotCalledException("OnClosing"), Guid.Empty, this); 109throw TraceUtility.ThrowHelperError(this.CreateBaseClassMethodNotCalledException("OnClosed"), Guid.Empty, this); 177throw TraceUtility.ThrowHelperError(this.CreateFaultedException(), Guid.Empty, this); 190throw TraceUtility.ThrowHelperError(this.CreateBaseClassMethodNotCalledException("OnClosing"), Guid.Empty, this); 196throw TraceUtility.ThrowHelperError(this.CreateBaseClassMethodNotCalledException("OnClosed"), Guid.Empty, this); 264throw TraceUtility.ThrowHelperError(this.CreateNotOpenException(), Guid.Empty, this); 267throw TraceUtility.ThrowHelperError(this.CreateNotOpenException(), Guid.Empty, this); 346throw TraceUtility.ThrowHelperError(this.CreateBaseClassMethodNotCalledException("OnOpening"), Guid.Empty, this); 353throw TraceUtility.ThrowHelperError(this.CreateBaseClassMethodNotCalledException("OnOpened"), Guid.Empty, this); 524throw TraceUtility.ThrowHelperError(this.CreateFaultedException(), Guid.Empty, this); 535throw TraceUtility.ThrowHelperError(CreateAbortedException(), Guid.Empty, this); 570throw TraceUtility.ThrowHelperError(this.CreateClosedException(), Guid.Empty, this); 573throw TraceUtility.ThrowHelperError(this.CreateFaultedException(), Guid.Empty, this); 601throw TraceUtility.ThrowHelperError(this.CreateClosedException(), Guid.Empty, this); 604throw TraceUtility.ThrowHelperError(this.CreateClosedException(), Guid.Empty, this); 607throw TraceUtility.ThrowHelperError(this.CreateFaultedException(), Guid.Empty, this); 627throw TraceUtility.ThrowHelperError(this.CreateImmutableException(), Guid.Empty, this); 630throw TraceUtility.ThrowHelperError(this.CreateImmutableException(), Guid.Empty, this); 633throw TraceUtility.ThrowHelperError(this.CreateClosedException(), Guid.Empty, this); 636throw TraceUtility.ThrowHelperError(this.CreateFaultedException(), Guid.Empty, this); 653throw TraceUtility.ThrowHelperError(this.CreateImmutableException(), Guid.Empty, this); 656throw TraceUtility.ThrowHelperError(this.CreateImmutableException(), Guid.Empty, this); 659throw TraceUtility.ThrowHelperError(this.CreateClosedException(), Guid.Empty, this); 662throw TraceUtility.ThrowHelperError(this.CreateClosedException(), Guid.Empty, this); 665throw TraceUtility.ThrowHelperError(this.CreateFaultedException(), Guid.Empty, this); 679throw TraceUtility.ThrowHelperError(this.CreateNotOpenException(), Guid.Empty, this); 682throw TraceUtility.ThrowHelperError(this.CreateNotOpenException(), Guid.Empty, this); 688throw TraceUtility.ThrowHelperError(this.CreateClosedException(), Guid.Empty, this); 691throw TraceUtility.ThrowHelperError(this.CreateClosedException(), Guid.Empty, this); 694throw TraceUtility.ThrowHelperError(this.CreateFaultedException(), Guid.Empty, this); 704throw TraceUtility.ThrowHelperError(this.CreateNotOpenException(), Guid.Empty, this); 714throw TraceUtility.ThrowHelperError(this.CreateNotOpenException(), Guid.Empty, this); 717throw TraceUtility.ThrowHelperError(this.CreateNotOpenException(), Guid.Empty, this); 726throw TraceUtility.ThrowHelperError(this.CreateClosedException(), Guid.Empty, this); 729throw TraceUtility.ThrowHelperError(this.CreateFaultedException(), Guid.Empty, this);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannel.cs (6)
647Guid previousId = rpc.EventTraceActivity != null ? rpc.EventTraceActivity.ActivityId : Guid.Empty; 914if (TraceUtility.MessageFlowTracingOnly && rpc.ActivityId != Guid.Empty) 977if (rpc.ActivityId != Guid.Empty) 980DiagnosticTraceBase.ActivityId = Guid.Empty; 981rpc.ActivityId = Guid.Empty;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransportDuplexSessionChannel.cs (1)
471Guid relatedActivityId = EventTraceActivity.GetActivityIdFromThread();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\UriGenerator.cs (1)
33_prefix = string.Concat(scheme, ":", Guid.NewGuid().ToString(), delimiter, "id=");
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceEndpoint.cs (1)
166_id = Guid.NewGuid().ToString();
FrameworkFork\System.ServiceModel\System\ServiceModel\Diagnostics\ActivityIdHeader.cs (12)
14private Guid _guid; 15private Guid _headerId; 17internal ActivityIdHeader(Guid activityId) 21_headerId = Guid.NewGuid(); 34internal static Guid ExtractActivityId(Message message) 36Guid guid = Guid.Empty; 65internal static bool ExtractActivityAndCorrelationId(Message message, out Guid activityId, out Guid correlationId) 71activityId = Guid.Empty; 72correlationId = Guid.Empty; 87return activityId != Guid.Empty;
FrameworkFork\System.ServiceModel\System\ServiceModel\Diagnostics\EventTraceActivityHelper.cs (3)
49Guid activityId; 91private static bool GetMessageId(Message message, out Guid guid) 96guid = Guid.Empty;
FrameworkFork\System.ServiceModel\System\ServiceModel\Diagnostics\ServiceModelActivity.cs (14)
25private Guid _activityId; 51private ServiceModelActivity(Guid activityId) 118return ServiceModelActivity.CreateActivity(Guid.NewGuid(), true); 127ServiceModelActivity activity = ServiceModelActivity.CreateActivity(Guid.NewGuid(), true); 189internal static ServiceModelActivity CreateBoundedActivity(Guid activityId) 203internal static ServiceModelActivity CreateBoundedActivityWithTransferInOnly(Guid activityId) 221internal static ServiceModelActivity CreateLightWeightAsyncActivity(Guid activityId) 226internal static ServiceModelActivity CreateActivity(Guid activityId) 233if (activityId != Guid.Empty) 244internal static ServiceModelActivity CreateActivity(Guid activityId, bool autoStop) 293internal Guid Id 388private TransferActivity(Guid activityId, Guid parentId) 393internal static TransferActivity CreateActivity(Guid activityId, bool addTransfer)
FrameworkFork\System.ServiceModel\System\ServiceModel\Diagnostics\TraceUtility.cs (18)
99internal static Guid ExtractActivityId(Message message) 107return activity == null ? Guid.Empty : activity.Id; 110internal static Guid GetReceivedActivityId(OperationContext operationContext) 119return (Guid)activityIdFromProprties; 239internal static Exception ThrowHelperError(Exception exception, Guid activityId, object source) 325Guid activityId; 376Guid activityId; 377Guid correlationId; 399Guid activityId; 400Guid correlationId; 408activityId = Guid.NewGuid(); 412DiagnosticTraceBase.ActivityId = Guid.Empty; 442Guid guid = Guid.Empty; 450if (guid == Guid.Empty) 452guid = Guid.NewGuid(); 534private Guid _activityId; 547internal Guid ActivityId
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ChannelDispatcher.cs (1)
578(this.Listener != null) ? this.Listener.Uri.ToString() : string.Empty, Guid.Empty);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\DispatchOperationRuntime.cs (2)
328else if (TraceUtility.ShouldPropagateActivity && reply != null && rpc.ResponseActivityId != Guid.Empty) 344if (rpc.ResponseActivityId != Guid.Empty)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\MessageRpc.cs (5)
26internal Guid ResponseActivityId; 133this.ResponseActivityId = Guid.Empty; 301if (Guid.Empty == DiagnosticTraceBase.ActivityId) 303Guid receivedActivityId = TraceUtility.ExtractActivityId(this.Request); 304if (Guid.Empty != receivedActivityId)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ProxyRpc.cs (2)
16internal Guid ActivityId; 41this.ActivityId = Guid.Empty;
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\SyncMethodInvoker.cs (4)
119Guid activityId = TraceUtility.GetReceivedActivityId(OperationContext.Current); 120if (activityId != Guid.Empty) 128Guid activityId = ActivityIdHeader.ExtractActivityId(OperationContext.Current.IncomingMessage); 129if (activityId != Guid.Empty)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\TaskMethodInvoker.cs (4)
178Guid activityId = TraceUtility.GetReceivedActivityId(OperationContext.Current); 179if (activityId != Guid.Empty) 187Guid activityId = ActivityIdHeader.ExtractActivityId(OperationContext.Current.IncomingMessage); 188if (activityId != Guid.Empty)
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityUtils.cs (1)
1016private static string s_commonPrefix = "uuid-" + Guid.NewGuid().ToString() + "-";
dotnet-user-jwts (3)
Helpers\JwtIssuer.cs (1)
31var id = Guid.NewGuid().ToString().GetHashCode().ToString("x", CultureInfo.InvariantCulture);
Helpers\SigningKeysHandler.cs (1)
77var shortId = Guid.NewGuid().ToString("N").Substring(0, 8);
src\Tools\Shared\SecretsHelpers\UserSecretsCreator.cs (1)
22? Guid.NewGuid().ToString()
dotnet-user-secrets (1)
src\Tools\Shared\SecretsHelpers\UserSecretsCreator.cs (1)
22? Guid.NewGuid().ToString()
Extensibility.WebSockets.IntegrationTests (9)
WebSocketTests.4.1.0.cs (9)
708Guid guid = Guid.NewGuid(); 725Guid returnedGuid = callbackService.CallbackGuid; 748Guid guid = Guid.NewGuid(); 765Guid returnedGuid = callbackService.CallbackGuid; 788Guid guid = Guid.NewGuid(); 808Guid returnedGuid = callbackService.CallbackGuid;
FormatterWebSite (1)
Models\BookModelWithNoValidation.cs (1)
11public Guid Id { get; set; }
Identity.DefaultUI.WebSite (4)
src\Identity\test\Shared\PocoModel\PocoRole.cs (2)
16Id = Guid.NewGuid().ToString(); 72public virtual string ConcurrencyStamp { get; set; } = Guid.NewGuid().ToString();
src\Identity\test\Shared\PocoModel\PocoUser.cs (2)
16Id = Guid.NewGuid().ToString(); 96public virtual string ConcurrencyStamp { get; set; } = Guid.NewGuid().ToString();
IIS.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\ClientCertificateFixture.cs (1)
30_certIssuerPrefix + Guid.NewGuid().ToString(),
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (1)
24LogFolderPath = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());
IIS.LongTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\ClientCertificateFixture.cs (1)
30_certIssuerPrefix + Guid.NewGuid().ToString(),
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (1)
24LogFolderPath = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());
IIS.NewHandler.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\ClientCertificateFixture.cs (1)
30_certIssuerPrefix + Guid.NewGuid().ToString(),
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (1)
24LogFolderPath = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());
IIS.NewShim.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\ClientCertificateFixture.cs (1)
30_certIssuerPrefix + Guid.NewGuid().ToString(),
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (1)
24LogFolderPath = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());
IIS.ShadowCopy.Tests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\ClientCertificateFixture.cs (1)
30_certIssuerPrefix + Guid.NewGuid().ToString(),
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (1)
24LogFolderPath = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());
IISExpress.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\ClientCertificateFixture.cs (1)
30_certIssuerPrefix + Guid.NewGuid().ToString(),
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (1)
24LogFolderPath = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());
illink (1)
InMemory.FunctionalTests (35)
EventSourceTests.cs (22)
88Assert.NotEqual(Guid.Empty, connectionStart.ActivityId); 96Assert.NotEqual(Guid.Empty, firstRequestStart.ActivityId); 106Assert.Equal(Guid.Empty, firstRequestStop.RelatedActivityId); 114Assert.NotEqual(Guid.Empty, secondRequestStart.ActivityId); 124Assert.Equal(Guid.Empty, secondRequestStop.RelatedActivityId); 132Assert.Equal(Guid.Empty, connectionStop.RelatedActivityId); 213Assert.NotEqual(Guid.Empty, connectionStart.ActivityId); 220Assert.NotEqual(Guid.Empty, tlsHandshakeStart.ActivityId); 230Assert.Equal(Guid.Empty, tlsHandshakeStop.RelatedActivityId); 240Assert.NotEqual(Guid.Empty, requestStart.ActivityId); 250Assert.Equal(Guid.Empty, requestStop.RelatedActivityId); 259Assert.Equal(Guid.Empty, connectionStop.RelatedActivityId); 317Assert.NotEqual(Guid.Empty, connectionStart.ActivityId); 324Assert.NotEqual(Guid.Empty, tlsHandshakeStart.ActivityId); 333Assert.Equal(Guid.Empty, tlsHandshakeFailed.RelatedActivityId); 341Assert.Equal(Guid.Empty, tlsHandshakeStop.RelatedActivityId); 349Assert.Equal(Guid.Empty, connectionStop.RelatedActivityId); 398Assert.NotEqual(Guid.Empty, connectionStart.ActivityId); 406Assert.Equal(Guid.Empty, connectionRejected.RelatedActivityId); 414Assert.Equal(Guid.Empty, connectionStop.RelatedActivityId); 503public Guid ActivityId { get; } 504public Guid RelatedActivityId { get; }
HttpsConnectionMiddlewareTests.cs (13)
530await stream.AuthenticateAsClientAsync(Guid.NewGuid().ToString()); 571await stream.AuthenticateAsClientAsync(Guid.NewGuid().ToString()); 615await stream.AuthenticateAsClientAsync(Guid.NewGuid().ToString()); 658await stream.AuthenticateAsClientAsync(Guid.NewGuid().ToString()); 699await stream.AuthenticateAsClientAsync(Guid.NewGuid().ToString()); 747await stream.AuthenticateAsClientAsync(Guid.NewGuid().ToString()); 791TargetHost = Guid.NewGuid().ToString(), 914await stream.AuthenticateAsClientAsync(Guid.NewGuid().ToString()); 940TargetHost = Guid.NewGuid().ToString(), 973TargetHost = Guid.NewGuid().ToString(), 1006TargetHost = Guid.NewGuid().ToString(), 1055await stream.AuthenticateAsClientAsync(Guid.NewGuid().ToString()); 1100await stream.AuthenticateAsClientAsync(Guid.NewGuid().ToString());
InteractiveHost.UnitTests (2)
AbstractInteractiveHostTests.cs (1)
178var mark = markPrefix + Guid.NewGuid().ToString();
InteractiveHostDesktopTests.cs (1)
291await Host.AddReferenceAsync("nonexistingassembly" + Guid.NewGuid());
Interop.FunctionalTests (1)
H2SpecCommands.cs (1)
217var tempFile = Path.GetTempPath() + Guid.NewGuid() + ".xml";
KeyManagementSimulator (9)
Program.cs (9)
104var defaultKeyIds = new Guid[instanceCount]; // This is redundant with descriptors, but we need it in this form 315private readonly Dictionary<Guid, DateTimeOffset> _missingSinceMap = new(); 319private HashSet<Guid> _knownKeyIds; // As of _now 400public void UpdateMetrics(DateTimeOffset now, IReadOnlyCollection<Guid> defaultKeyIds) 405foreach (var keyId in knownKeyIds) 415foreach (var defaultKeyId in defaultKeyIds) 429public bool UpdateSingleKeyMetric(DateTimeOffset now, Guid defaultKeyId) 459readonly struct KeyRingDescriptor(Guid defaultKeyId, DateTimeOffset expirationTimeUtc) 461public readonly Guid DefaultKeyId => defaultKeyId;
Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Tests (3)
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (1)
21Root = Path.Combine(ResolveLinks(Path.GetTempPath()), "dotnet-tool-tests", Guid.NewGuid().ToString("N"));
UserJwtsTestFixture.cs (2)
64var projectPath = Directory.CreateDirectory(Path.Combine(Path.GetTempPath(), "userjwtstest", Guid.NewGuid().ToString())); 66TestSecretsId = Guid.NewGuid().ToString("N");
Microsoft.AspNetCore.Authentication.Test (7)
CookieTests.cs (2)
158var guid = Guid.NewGuid();
OpenIdConnect\OpenIdConnectChallengeTests.cs (2)
290var newClientId = Guid.NewGuid().ToString(); 332TestAuthorizeEndpoint = $"http://example.com/{Guid.NewGuid()}/oauth2/signin"
OpenIdConnect\OpenIdConnectConfigurationTests.cs (2)
456o.ClientId = Guid.NewGuid().ToString(); 457o.SignInScheme = Guid.NewGuid().ToString();
OpenIdConnect\TestServerBuilder.cs (1)
32ClientId = Guid.NewGuid().ToString(),
Microsoft.AspNetCore.Authentication.Twitter (1)
TwitterHandler.cs (1)
188{ "oauth_nonce", Guid.NewGuid().ToString("N") },
Microsoft.AspNetCore.Authorization.Test (6)
AuthorizationMiddlewareResultHandlerTests.cs (6)
62var firstScheme = Guid.NewGuid().ToString(); 63var secondScheme = Guid.NewGuid().ToString(); 64var thirdScheme = Guid.NewGuid().ToString(); 101var firstScheme = Guid.NewGuid().ToString(); 102var secondScheme = Guid.NewGuid().ToString(); 103var thirdScheme = Guid.NewGuid().ToString();
Microsoft.AspNetCore.BrowserTesting (1)
ContextInformation.cs (1)
57var identifier = Guid.NewGuid().ToString("N");
Microsoft.AspNetCore.Components (26)
BindConverter.cs (8)
1574internal static readonly BindParser<Guid> ConvertToGuid = ConvertToGuidCore; 1575internal static readonly BindParser<Guid?> ConvertToNullableGuid = ConvertToNullableGuidCore; 1577private static bool ConvertToGuidCore(object? obj, CultureInfo? culture, out Guid value) 1584private static bool ConvertToNullableGuidCore(object? obj, CultureInfo? culture, out Guid? value) 1593if (!Guid.TryParse(text, out var converted)) 1973else if (typeof(T) == typeof(Guid)) 1977else if (typeof(T) == typeof(Guid?))
ChangeDetection.cs (1)
56=> type == typeof(Guid)
ElementReference.cs (1)
68return Guid.NewGuid().ToString("D", CultureInfo.InvariantCulture);
NavigationManagerExtensions.cs (6)
36[typeof(Guid)] = value => Format((Guid)value), 86private static string Format(Guid value) 89private static string? Format(Guid? value) 446public static string GetUriWithQueryParameter(this NavigationManager navigationManager, string name, Guid value) 460public static string GetUriWithQueryParameter(this NavigationManager navigationManager, string name, Guid? value)
Routing\RouteTable.cs (1)
126routeValues[parameter.Name] = Guid.Parse((string)parameterValue!, CultureInfo.InvariantCulture);
Routing\UrlValueConstraint.cs (6)
82var x when x == typeof(Guid) => new TypedUrlValueConstraint<Guid>(Guid.TryParse), 83var x when x == typeof(Guid?) => new NullableTypedUrlValueConstraint<Guid>(Guid.TryParse),
src\Http\Routing\src\Constraints\GuidRouteConstraint.cs (2)
43if (value is Guid) 57return Guid.TryParse(valueString, out _);
SupplyParameterFromPersistentComponentStateValueProvider.cs (1)
264|| keyType == typeof(Guid)
Microsoft.AspNetCore.Components.Endpoints (11)
DependencyInjection\ServerComponentInvocationSequence.cs (1)
21public Guid Value { get; }
FormMapping\WellKnownConverters.cs (6)
45{ typeof(Guid), new ParsableConverter<Guid>() }, 77converters.Add(typeof(Guid?), new NullableConverter<Guid>((FormDataConverter<Guid>)converters[typeof(Guid)]));
Rendering\EndpointHtmlRenderer.Streaming.cs (1)
34var id = Guid.NewGuid().ToString();
src\Shared\Components\ComponentMarker.cs (1)
90=> Guid.NewGuid().ToString("N");
src\Shared\Components\ServerComponent.cs (2)
20Guid invocationId) => 43public Guid InvocationId { get; set; }
Microsoft.AspNetCore.Components.Endpoints.Tests (13)
Binding\FormDataMapperTests.cs (4)
2131{ "a55eb3df-e984-42b5-85ca-4f68da8567d1", typeof(Guid?), new Guid?(new Guid("a55eb3df-e984-42b5-85ca-4f68da8567d1")) }, 2173{ typeof(Guid?) }, 2216{ "a55eb3df-e984-42b5-85ca-4f68da8567d1", typeof(Guid), new Guid("a55eb3df-e984-42b5-85ca-4f68da8567d1") }
EndpointHtmlRendererTest.cs (9)
399Assert.NotEqual(Guid.Empty, serverComponent.InvocationId); 433Assert.NotEqual(Guid.Empty, serverComponent.InvocationId); 493Assert.NotEqual(Guid.Empty, firstServerComponent.InvocationId); 550Assert.NotEqual(Guid.Empty, serverComponent.InvocationId); 589Assert.NotEqual(Guid.Empty, serverComponent.InvocationId); 630Assert.NotEqual(Guid.Empty, serverComponent.InvocationId); 681Assert.NotEqual(Guid.Empty, serverComponent.InvocationId); 1191Assert.NotEqual(Guid.Empty, serverComponent.InvocationId); 1220Assert.NotEqual(Guid.Empty, serverComponent.InvocationId);
Microsoft.AspNetCore.Components.Server (5)
Circuits\ServerComponentDeserializer.cs (2)
68private readonly HashSet<Guid> _expiredInvocationIds = new(); 70private Guid? _currentInvocationId;
src\Shared\Components\ComponentMarker.cs (1)
90=> Guid.NewGuid().ToString("N");
src\Shared\Components\ServerComponent.cs (2)
20Guid invocationId) => 43public Guid InvocationId { get; set; }
Microsoft.AspNetCore.Components.Server.Tests (5)
Circuits\ServerComponentDeserializerTest.cs (1)
428new ServerComponent(0, null, assembly, type, Array.Empty<ComponentParameter>(), Array.Empty<object>(), Guid.NewGuid()),
Circuits\TestCircuitHost.cs (3)
32clientProxy = clientProxy ?? new CircuitClientProxy(Mock.Of<IClientProxy>(), Guid.NewGuid().ToString()); 57circuitId is null ? new CircuitId(Guid.NewGuid().ToString(), Guid.NewGuid().ToString()) : circuitId.Value,
src\Components\Endpoints\src\DependencyInjection\ServerComponentInvocationSequence.cs (1)
21public Guid Value { get; }
Microsoft.AspNetCore.Components.Tests (46)
BindConverterTest.cs (12)
305var expected = Guid.NewGuid(); 309var successfullyConverted = BindConverter.TryConvertTo<Guid>(incomingValue, CultureInfo.CurrentCulture, out var actual); 323var successfullyConverted = BindConverter.TryConvertTo<Guid>(incomingValue, CultureInfo.CurrentCulture, out var actual); 327Assert.Equal(Guid.Empty, actual); 334var expected = Guid.NewGuid(); 338var successfullyConverted = BindConverter.TryConvertTo<Guid?>(incomingValue, CultureInfo.CurrentCulture, out var actual); 351var successfullyConverted = BindConverter.TryConvertTo<Guid?>(incomingValue, CultureInfo.CurrentCulture, out var actual); 365var successfullyConverted = BindConverter.TryConvertTo<Guid?>(value, CultureInfo.CurrentCulture, out var actual);
EventCallbackFactoryBinderExtensionsTest.cs (10)
544var value = Guid.NewGuid(); 546Action<Guid> setter = (_) => value = _; 550var expectedValue = Guid.NewGuid(); 564var value = (Guid?)Guid.NewGuid(); 566Action<Guid?> setter = (_) => value = _; 570var expectedValue = Guid.NewGuid();
RendererTest.cs (1)
5684builder.AddContent(1, $"Id: {component.TestId} BuildRenderTree, {Guid.NewGuid()}");
RenderTreeDiffBuilderTest.cs (1)
1754tree.AddComponentParameter(1, "MyGuid", Guid.Empty);
Routing\QueryParameterValueSupplierTest.cs (19)
39AssertKeyValuePair<Guid>("GuidVal", new Guid("9e7257ad-03aa-42c7-9819-be08b177fef9")); 47AssertKeyValuePair<Guid?>("NullableGuidVal", new Guid("1e7257ad-03aa-42c7-9819-be08b177fef9")); 70AssertKeyValuePair<Guid>("GuidVal", null); 78AssertKeyValuePair<Guid?>("NullableGuidVal", null); 113AssertKeyValuePair<Guid[]>("GuidVals", new[] { new Guid("9e7257ad-03aa-42c7-9819-be08b177fef9") }); 121AssertKeyValuePair<Guid?[]>("NullableGuidVals", new[] { new Guid("1e7257ad-03aa-42c7-9819-be08b177fef9") }); 140AssertKeyValuePair<Guid[]>("GuidVals", Array.Empty<Guid>()); 148AssertKeyValuePair<Guid?[]>("NullableGuidVals", Array.Empty<Guid?>()); 160[InlineData("GuidVal", "123456-789-0", typeof(Guid))] 168[InlineData("NullableGuidVal", "123456-789-0", typeof(Guid?))] 185[InlineData("GuidVals", "9e7257ad-03aa-42c7-9819-be08b177fef9", "123456-789-0", typeof(Guid))] 193[InlineData("NullableGuidVals", "9e7257ad-03aa-42c7-9819-be08b177fef9", "123456-789-0", typeof(Guid?))] 210[InlineData("GuidVal", typeof(Guid))] 241AssertKeyValuePair<Guid?>("NullableGuidVal", null); 275[InlineData("GuidVals", typeof(Guid))] 307AssertKeyValuePair<Guid?[]>("NullableGuidVals", new Guid?[] { null });
Routing\RouteTableFactoryTests.cs (1)
379new object[] { "/{value:guid}", "/1FCEF085-884F-416E-B0A1-71B15F3E206B", Guid.Parse("1FCEF085-884F-416E-B0A1-71B15F3E206B", CultureInfo.InvariantCulture) },
SupplyParameterFromPersistentComponentStateValueProviderTests.cs (2)
235{ Guid.NewGuid(), Guid.NewGuid() },
Microsoft.AspNetCore.Components.Web (2)
Forms\InputRadioGroup.cs (1)
15private readonly string _defaultGroupName = Guid.NewGuid().ToString("N");
Routing\NavigationLock.cs (1)
14private readonly string _id = Guid.NewGuid().ToString("D", CultureInfo.InvariantCulture);
Microsoft.AspNetCore.Components.Web.Tests (11)
Forms\InputRadioTest.cs (1)
42Assert.All(inputRadioComponents, inputRadio => Assert.True(Guid.TryParseExact(inputRadio.GroupName, "N", out _)));
Forms\InputSelectTest.cs (10)
90var rootComponent = new TestInputHostComponent<Guid, TestInputSelect<Guid>> 98var guid = Guid.NewGuid(); 111var rootComponent = new TestInputHostComponent<Guid?, TestInputSelect<Guid?>> 119var guid = Guid.NewGuid(); 224public Guid NotNullableGuid { get; set; } 226public Guid? NullableGuid { get; set; }
Microsoft.AspNetCore.Components.WebAssembly (10)
HotReload\HotReloadAgent.cs (4)
25private readonly ConcurrentDictionary<Guid, List<UpdateDelta>> _deltas = new(); 125if (TryGetModuleId(assembly) is Guid moduleId && moduleId == delta.ModuleId) 145var assembly = AppDomain.CurrentDomain.GetAssemblies().FirstOrDefault(assembly => TryGetModuleId(assembly) is Guid moduleId && moduleId == delta.ModuleId); 190private static Guid? TryGetModuleId(Assembly loadedAssembly)
HotReload\UpdateDelta.cs (2)
6internal readonly struct UpdateDelta(Guid moduleId, byte[] metadataDelta, byte[] ilDelta, byte[] pdbDelta, int[] updatedTypes) 8public Guid ModuleId { get; } = moduleId;
HotReload\WebAssemblyHotReload.cs (3)
115update.Deltas.Select(d => new UpdateDelta(Guid.Parse(d.ModuleId, CultureInfo.InvariantCulture), d.MetadataDelta, d.ILDelta, d.PdbDelta, d.UpdatedTypes))); 144[new UpdateDelta(Guid.Parse(moduleIdString, CultureInfo.InvariantCulture), metadataDelta, ilDelta, pdbBytes, updatedTypes ?? [])]); 156deltas.Select(d => new UpdateDelta(Guid.Parse(d.ModuleId, CultureInfo.InvariantCulture), d.MetadataDelta, d.ILDelta, d.PdbDelta, d.UpdatedTypes)));
src\Shared\Components\ComponentMarker.cs (1)
90=> Guid.NewGuid().ToString("N");
Microsoft.AspNetCore.ConcurrencyLimiter.Tests (2)
ConcurrencyLimiterEventSourceTests.cs (2)
20Assert.Equal(Guid.Parse("a605548a-6963-55cf-f000-99a6013deb01", CultureInfo.InvariantCulture), eventSource.Guid); 135return new ConcurrencyLimiterEventSource(Guid.NewGuid().ToString());
Microsoft.AspNetCore.Connections.Abstractions (1)
DefaultConnectionContext.cs (1)
34this(Guid.NewGuid().ToString())
Microsoft.AspNetCore.Cryptography.Internal.Tests (11)
Cng\BCryptUtilTests.cs (11)
19byte[] bytes = new byte[sizeof(Guid) + 6]; 23bytes[sizeof(Guid) + 3] = 0xEA; // trailing canary 24bytes[sizeof(Guid) + 4] = 0xF2; 25bytes[sizeof(Guid) + 5] = 0x6A; 32BCryptUtil.GenRandom(pBytes, (uint)sizeof(Guid)); 38Assert.Equal(0xEA, bytes[sizeof(Guid) + 3]); 39Assert.Equal(0xF2, bytes[sizeof(Guid) + 4]); 40Assert.Equal(0x6A, bytes[sizeof(Guid) + 5]); 44Guid newGuid = new Guid(bytes.Skip(3).Take(sizeof(Guid)).ToArray()); 45Assert.NotEqual(Guid.Empty, newGuid);
Microsoft.AspNetCore.DataProtection (89)
AuthenticatedEncryption\AuthenticatedEncryptorExtensions.cs (3)
42var plaintextAsGuid = Guid.NewGuid(); 44var aad = Guid.NewGuid().ToByteArray();
Cng\DpapiSecretSerializerHelper.cs (2)
32Guid dummy; 33using var secret = new Secret((byte*)&dummy, sizeof(Guid));
EphemeralDataProtectionProvider.cs (3)
85public Guid DefaultKeyId { get; } 87public IAuthenticatedEncryptor? GetAuthenticatedEncryptorByKeyId(Guid keyId, out bool isRevoked) 90return (keyId == default(Guid)) ? DefaultAuthenticatedEncryptor : null;
Error.cs (4)
57public static CryptographicException Common_KeyNotFound(Guid id) 63public static CryptographicException Common_KeyRevoked(Guid id) 89public static InvalidOperationException XmlKeyManager_DuplicateKey(Guid keyId) 95public static InvalidOperationException KeyRingProvider_DefaultKeyRevoked(Guid id)
KeyManagement\IKey.cs (1)
46Guid KeyId { get; }
KeyManagement\IKeyEscrowSink.cs (1)
25void Store(Guid keyId, XElement element);
KeyManagement\IKeyManager.cs (1)
63void RevokeKey(Guid keyId, string? reason = null);
KeyManagement\Internal\IInternalXmlKeyManager.cs (2)
21IKey CreateNewKey(Guid keyId, DateTimeOffset creationDate, DateTimeOffset activationDate, DateTimeOffset expirationDate); 33void RevokeSingleKey(Guid keyId, DateTimeOffset revocationDate, string? reason);
KeyManagement\Internal\IKeyRing.cs (2)
25Guid DefaultKeyId { get; } 34IAuthenticatedEncryptor? GetAuthenticatedEncryptorByKeyId(Guid keyId, out bool isRevoked);
KeyManagement\Key.cs (5)
36Guid keyId, 58Guid keyId, 78Guid keyId, 96Guid keyId, 124public Guid KeyId { get; }
KeyManagement\KeyEscrowServiceProviderExtensions.cs (1)
33public void Store(Guid keyId, XElement element)
KeyManagement\KeyRing.cs (5)
18private readonly Dictionary<Guid, KeyHolder> _keyIdToKeyHolderMap; 22_keyIdToKeyHolderMap = new Dictionary<Guid, KeyHolder>(); 48public Guid DefaultKeyId { get; } 51internal IReadOnlyCollection<Guid> GetAllKeyIds() 56public IAuthenticatedEncryptor? GetAuthenticatedEncryptorByKeyId(Guid keyId, out bool isRevoked)
KeyManagement\KeyRingBasedDataProtector.cs (14)
101var defaultKeyId = currentKeyRing.DefaultKeyId; 118preBufferSize: (uint)(sizeof(uint) + sizeof(Guid)), 120CryptoUtil.Assert(retVal != null && retVal.Length >= sizeof(uint) + sizeof(Guid), "retVal != null && retVal.Length >= sizeof(uint) + sizeof(Guid)"); 143private static Guid ReadGuid(void* ptr) 147return new Guid(new ReadOnlySpan<byte>(ptr, sizeof(Guid))); 197if (protectedData.Length < sizeof(uint) /* magic header */ + sizeof(Guid) /* key id */) 207Guid keyIdFromPayload; 281ArraySegment<byte> ciphertext = new ArraySegment<byte>(protectedData, sizeof(uint) + sizeof(Guid), protectedData.Length - (sizeof(uint) + sizeof(Guid))); // chop off magic header + encryptor id 296private static void WriteGuid(void* ptr, Guid value) 299var span = new Span<byte>(ptr, sizeof(Guid)); 329public byte[] GetAadForKey(Guid keyId, bool isProtecting) 334Debug.Assert(existingTemplate.Length >= sizeof(uint) /* MAGIC_HEADER */ + sizeof(Guid) /* keyId */); 367var keySize = sizeof(Guid);
KeyManagement\XmlKeyManager.cs (17)
61private readonly ConcurrentDictionary<Guid, Key> _knownKeyMap = new(); // Grows unboundedly, like the key ring 151keyId: Guid.NewGuid(), 184Dictionary<Guid, Key> keyIdToKeyMap = []; 185HashSet<Guid>? revokedKeyIds = null; 212if (revocationInfo is Guid revocationGuid) 244foreach (var revokedKeyId in revokedKeyIds) 295Guid keyId = (Guid)keyElement.Attribute(IdAttributeName)!; 361var keyId = XmlConvert.ToGuid(keyIdAsString); 402public void RevokeKey(Guid keyId, string? reason = null) 437var allKeyIds = new HashSet<Guid>(); 438var deletedKeyIds = new HashSet<Guid>(); 445var keyId = key.KeyId; 468if (processed[i] is Guid revocationId) 504IKey IInternalXmlKeyManager.CreateNewKey(Guid keyId, DateTimeOffset creationDate, DateTimeOffset activationDate, DateTimeOffset expirationDate) 622void IInternalXmlKeyManager.RevokeSingleKey(Guid keyId, DateTimeOffset revocationDate, string? reason) 730public void Store(Guid keyId, XElement element)
LoggingExtensions.cs (25)
44public static partial void UsingFallbackKeyWithExpirationAsDefaultKey(this ILogger logger, Guid keyId, DateTimeOffset expirationDate); 47public static partial void UsingKeyAsDefaultKey(this ILogger logger, Guid keyId); 56public static partial void PerformingUnprotectOperationToKeyWithPurposes(this ILogger logger, Guid keyId, string purposes); 59public static partial void KeyWasNotFoundInTheKeyRingUnprotectOperationCannotProceed(this ILogger logger, Guid keyId); 62public static partial void KeyWasRevokedCallerRequestedUnprotectOperationProceedRegardless(this ILogger logger, Guid keyId); 65public static partial void KeyWasRevokedUnprotectOperationCannotProceed(this ILogger logger, Guid keyId); 77public static partial void KeyIsIneligibleToBeTheDefaultKeyBecauseItsMethodFailed(this ILogger logger, Guid keyId, string methodName, Exception exception); 80public static partial void ConsideringKeyWithExpirationDateAsDefaultKey(this ILogger logger, Guid keyId, DateTimeOffset expirationDate); 83public static partial void KeyIsNoLongerUnderConsiderationAsDefault(this ILogger logger, Guid keyId); 89public static partial void MarkedKeyAsRevokedInTheKeyring(this ILogger logger, Guid keyId); 92public static partial void TriedToProcessRevocationOfKeyButNoSuchKeyWasFound(this ILogger logger, Guid keyId); 95public static partial void FoundKey(this ILogger logger, Guid keyId); 101public static partial void FoundRevocationOfKey(this ILogger logger, Guid keyId); 131public static partial void PerformingProtectOperationToKeyWithPurposes(this ILogger logger, Guid keyId, string purposes); 134public static partial void DescriptorDeserializerTypeForKeyIs(this ILogger logger, Guid keyId, string assemblyQualifiedName); 137public static partial void KeyEscrowSinkFoundWritingKeyToEscrow(this ILogger logger, Guid keyId); 140public static partial void NoKeyEscrowSinkFoundNotWritingKeyToEscrow(this ILogger logger, Guid keyId); 143public static partial void NoXMLEncryptorConfiguredKeyMayBePersistedToStorageInUnencryptedForm(this ILogger logger, Guid keyId); 146public static partial void RevokingKeyForReason(this ILogger logger, Guid keyId, DateTimeOffset revocationDate, string? reason); 215public static partial void CreatingKey(this ILogger logger, Guid keyId, DateTimeOffset creationDate, DateTimeOffset activationDate, DateTimeOffset expirationDate); 233public static partial void KeyRingWasLoadedOnStartup(this ILogger logger, Guid keyId); 254public static partial void KeyRingDefaultKeyIsRevoked(this ILogger logger, Guid keyId); 257public static partial void RetryingMethodOfKeyAfterFailure(this ILogger logger, Guid keyId, string methodName, Exception exception); 272public static partial void KeyRevokedMultipleTimes(this ILogger logger, Guid keyId); 278public static partial void DeletingKey(this ILogger logger, Guid keyId);
Repositories\FileSystemXmlRepository.cs (2)
124var newFriendlyName = Guid.NewGuid().ToString(); 140var tempFilename = Path.Combine(Directory.FullName, Guid.NewGuid().ToString() + ".tmp");
Repositories\RegistryXmlRepository.cs (1)
142var newFriendlyName = Guid.NewGuid().ToString();
Microsoft.AspNetCore.DataProtection.Tests (81)
AuthenticatedEncryption\ConfigurationModel\AuthenticatedEncryptorDescriptorDeserializerTests.cs (1)
48Guid.NewGuid(),
AuthenticatedEncryption\ConfigurationModel\AuthenticatedEncryptorDescriptorTests.cs (1)
203Guid.NewGuid(),
AuthenticatedEncryption\ConfigurationModel\CngCbcAuthenticatedEncryptorDescriptorDeserializerTests.cs (1)
55Guid.NewGuid(),
AuthenticatedEncryption\ConfigurationModel\CngGcmAuthenticatedEncryptorDescriptorDeserializerTests.cs (1)
52keyId: Guid.NewGuid(),
AuthenticatedEncryption\ConfigurationModel\ManagedAuthenticatedEncryptorDescriptorDeserializerTests.cs (1)
153Guid.NewGuid(),
Internal\KeyManagementOptionsSetupTest.cs (3)
101string uniqueName = Guid.NewGuid().ToString(); 136public void Store(Guid keyId, XElement element) 144public void Store(Guid keyId, XElement element)
KeyManagement\DefaultKeyResolverTests.cs (7)
289Guid.NewGuid(), 328var keyId1 = Guid.NewGuid(); 334var keyId2 = Guid.NewGuid(); 425Guid.NewGuid(), 461mockKey.Setup(o => o.KeyId).Returns(Guid.NewGuid());
KeyManagement\DeferredKeyTests.cs (4)
19var keyId = Guid.NewGuid(); 50var key = new Key(Guid.Empty, now, now, now, new Mock<IInternalXmlKeyManager>().Object, XElement.Parse(@"<node />"), new[] { encryptorFactory }); 73var key = new Key(Guid.Empty, now, now, now, mockKeyManager.Object, XElement.Parse(@"<node />"), new[] { encryptorFactory });
KeyManagement\KeyEscrowServiceProviderExtensionsTests.cs (6)
36mockKeyEscrowSink.Setup(o => o.Store(It.IsAny<Guid>(), It.IsAny<XElement>())) 37.Callback<Guid, XElement>((keyId, element) => 61mockKeyEscrowSink1.Setup(o => o.Store(It.IsAny<Guid>(), It.IsAny<XElement>())) 62.Callback<Guid, XElement>((keyId, element) => 68mockKeyEscrowSink2.Setup(o => o.Store(It.IsAny<Guid>(), It.IsAny<XElement>())) 69.Callback<Guid, XElement>((keyId, element) =>
KeyManagement\KeyRingBasedDataProtectorTests.cs (22)
39Guid defaultKey = new Guid("ba73c9ce-d322-4e45-af90-341307e11c38"); 77Guid defaultKey = new Guid("ba73c9ce-d322-4e45-af90-341307e11c38"); 150byte[] badProtectedPayload = BuildProtectedDataFromCiphertext(Guid.NewGuid(), new byte[0]); 168byte[] badProtectedPayload = BuildProtectedDataFromCiphertext(Guid.NewGuid(), new byte[0]); 186byte[] badProtectedPayload = BuildProtectedDataFromCiphertext(Guid.NewGuid(), new byte[0]); 198Guid notFoundKeyId = new Guid("654057ab-2491-4471-a72a-b3b114afda38"); 209Key key = new Key(Guid.Empty, DateTimeOffset.Now, DateTimeOffset.Now, DateTimeOffset.Now, mockDescriptor.Object, new[] { mockEncryptorFactory.Object }); 251Guid notFoundKeyId = new Guid("654057ab-2491-4471-a72a-b3b114afda38"); 262Key key = new Key(Guid.Empty, DateTimeOffset.Now, DateTimeOffset.Now, DateTimeOffset.Now, mockDescriptor.Object, new[] { mockEncryptorFactory.Object }); 282Guid notFoundKeyId = new Guid("654057ab-2491-4471-a72a-b3b114afda38"); 293Key key = new Key(Guid.Empty, DateTimeOffset.Now, DateTimeOffset.Now, DateTimeOffset.Now, mockDescriptor.Object, new[] { mockEncryptorFactory.Object }); 318Guid notFoundKeyId = new Guid("654057ab-2491-4471-a72a-b3b114afda38"); 329Key key = new Key(Guid.Empty, DateTimeOffset.Now, DateTimeOffset.Now, DateTimeOffset.Now, mockDescriptor.Object, new[] { mockEncryptorFactory.Object }); 385Guid keyId = new Guid("654057ab-2491-4471-a72a-b3b114afda38"); 416Guid defaultKeyId = new Guid("ba73c9ce-d322-4e45-af90-341307e11c38"); 463Guid defaultKeyId = new Guid("ba73c9ce-d322-4e45-af90-341307e11c38"); 511Guid defaultKeyId = new Guid("ba73c9ce-d322-4e45-af90-341307e11c38"); 512Guid embeddedKeyId = new Guid("9b5d2db3-299f-4eac-89e9-e9067a5c1853"); 563Key key = new Key(Guid.NewGuid(), DateTimeOffset.Now, DateTimeOffset.Now, DateTimeOffset.Now, new AuthenticatedEncryptorConfiguration().CreateNewDescriptor(), new[] { encryptorFactory }); 588Guid defaultKey = new Guid("ba73c9ce-d322-4e45-af90-341307e11c38"); 622private static byte[] BuildAadFromPurposeStrings(Guid keyId, params string[] purposes) 640private static byte[] BuildProtectedDataFromCiphertext(Guid keyId, byte[] ciphertext)
KeyManagement\KeyRingProviderTests.cs (1)
939mockKey.Setup(o => o.KeyId).Returns(Guid.NewGuid());
KeyManagement\KeyRingTests.cs (2)
105KeyId = Guid.NewGuid(); 113public Guid KeyId { get; }
KeyManagement\KeyTests.cs (3)
16var keyId = Guid.NewGuid(); 40var key = new Key(Guid.Empty, now, now, now, new Mock<IAuthenticatedEncryptorDescriptor>().Object, new[] { encryptorFactory });
KeyManagement\XmlKeyManagerTests.cs (9)
81var keyId = new Guid("3d6d01fd-c0e7-44ae-82dd-013b996b4093"); 168var keyId = new Guid("3d6d01fd-c0e7-44ae-82dd-013b996b4093"); 172Guid? keyIdStoredInEscrow = null; 192.Setup(o => o.Store(It.IsAny<Guid>(), It.IsAny<XElement>())) 193.Callback<Guid, XElement>((innerKeyId, el) => 299.Setup(o => o.CreateNewKey(It.IsAny<Guid>(), It.IsAny<DateTimeOffset>(), activationDate, expirationDate)) 300.Callback<Guid, DateTimeOffset, DateTimeOffset, DateTimeOffset>((innerKeyId, innerCreationDate, innerActivationDate, innerExpirationDate) => 721var keyToRevoke = new Guid("a11f35fc-1fed-4bd4-b727-056a63b70932"); 727.Callback<Guid, DateTimeOffset, string>((innerKeyId, innerRevocationDate, innerReason) =>
RegistryPolicyResolverTests.cs (3)
273string uniqueName = Guid.NewGuid().ToString(); 308public void Store(Guid keyId, XElement element) 316public void Store(Guid keyId, XElement element)
Repositories\FileSystemXmlRepositoryTests.cs (4)
112Guid parsedGuid = Guid.Parse(filenameNoSuffix, CultureInfo.InvariantCulture); 113Assert.NotEqual(Guid.Empty, parsedGuid); 318string uniqueTempPath = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());
Repositories\RegistryXmlRepositoryTests.cs (4)
98Guid parsedGuid = Guid.Parse(valueName as string, CultureInfo.InvariantCulture); 99Assert.NotEqual(Guid.Empty, parsedGuid); 224string uniqueName = Guid.NewGuid().ToString();
SecretTests.cs (8)
174Guid* pGuids = stackalloc Guid[2]; 176Assert.NotEqual(Guid.Empty, pGuids[0]); 177Assert.NotEqual(Guid.Empty, pGuids[1]); 189Guid* pGuids = stackalloc Guid[2]; 191Assert.NotEqual(Guid.Empty, pGuids[0]); 192Assert.NotEqual(Guid.Empty, pGuids[1]);
Microsoft.AspNetCore.DeveloperCertificates.XPlat.Tests (6)
CertificateManagerTests.cs (6)
133var certificatePassword = Guid.NewGuid().ToString(); 165var certificatePassword = Guid.NewGuid().ToString(); 229var certificatePassword = Guid.NewGuid().ToString(); 262var certificatePassword = Guid.NewGuid().ToString(); 289var certificatePassword = Guid.NewGuid().ToString(); 497var certificatePassword = Guid.NewGuid().ToString();
Microsoft.AspNetCore.Hosting.Tests (10)
GenericWebHostBuilderTests.cs (2)
20var randomEnvKey = Guid.NewGuid().ToString(); 33var randomEnvKey = Guid.NewGuid().ToString();
HostingApplicationDiagnosticsTests.cs (6)
28var hostingEventSource = new HostingEventSource(Guid.NewGuid().ToString()); 145var hostingEventSource = new HostingEventSource(Guid.NewGuid().ToString()); 241var hostingEventSource = new HostingEventSource(Guid.NewGuid().ToString()); 299var hostingEventSource = new HostingEventSource(Guid.NewGuid().ToString()); 359var hostingEventSource = new HostingEventSource(Guid.NewGuid().ToString()); 414var hostingEventSource = new HostingEventSource(Guid.NewGuid().ToString());
Internal\HostingEventSourceTests.cs (2)
23Assert.Equal(Guid.Parse("9ded64a4-414c-5251-dcf7-1e4e20c15e70", CultureInfo.InvariantCulture), eventSource.Guid); 244return new HostingEventSource(Guid.NewGuid().ToString());
Microsoft.AspNetCore.Http.Abstractions (1)
Validation\RuntimeValidatableParameterInfoResolver.cs (1)
86type == typeof(Guid) ||
Microsoft.AspNetCore.Http.Abstractions.Tests (4)
Validation\RuntimeValidatableParameterInfoResolverTests.cs (1)
40[InlineData(typeof(Guid))]
Validation\ValidatableTypeInfoTests.cs (3)
415CreatePropertyInfo(typeof(BaseEntity), typeof(Guid), "Id", "Id", []) 673public Guid Id { get; set; } = Guid.NewGuid();
Microsoft.AspNetCore.Http.Connections.Tests (4)
HttpConnectionDispatcherTests.cs (2)
3194SymmetricSecurityKey SecurityKey = new SymmetricSecurityKey(SHA256.HashData(Guid.NewGuid().ToByteArray())); 3356var SecurityKey = new SymmetricSecurityKey(SHA256.HashData(Guid.NewGuid().ToByteArray()));
Internal\HttpConnectionsEventSourceTests.cs (2)
24Assert.Equal(Guid.Parse("c26fe4b6-8790-5d41-5900-0f2b6b74efaa", CultureInfo.InvariantCulture), eventSource.Guid); 110return new HttpConnectionsEventSource(Guid.NewGuid().ToString());
Microsoft.AspNetCore.Http.Extensions (6)
src\Components\Endpoints\src\FormMapping\WellKnownConverters.cs (6)
45{ typeof(Guid), new ParsableConverter<Guid>() }, 77converters.Add(typeof(Guid?), new NullableConverter<Guid>((FormDataConverter<Guid>)converters[typeof(Guid)]));
Microsoft.AspNetCore.Http.Extensions.Tests (10)
ProblemDetailsDefaultWriterTest.cs (1)
578context.ProblemDetails.Extensions["new-extension"] = new { TraceId = Guid.NewGuid() };
RequestDelegateFactoryTests.cs (4)
329new object[] { (Action<HttpContext, Guid[]>)Store, new[] { "00000000-0000-0000-0000-000000000000" },new[] { Guid.Empty } }, 380new object[] { (Action<HttpContext, Guid>)Store, "00000000-0000-0000-0000-000000000000", Guid.Empty },
RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (2)
129outputNameOverride: $"TestProject-{Guid.NewGuid()}"); 313var projectName = $"TestProject-{Guid.NewGuid()}";
RequestDelegateGenerator\RequestDelegateCreationTests.Arrays.cs (1)
136new object[] { "Guid[]", new[] { "00000000-0000-0000-0000-000000000000" },new[] { Guid.Empty } },
RequestDelegateGenerator\RequestDelegateCreationTests.TryParse.cs (1)
47new object[] { "Guid", "00000000-0000-0000-0000-000000000000", Guid.Empty },
ValidationsGenerator\ValidationsGeneratorTestBase.cs (1)
113outputAssemblyName = $"TestProject-{Guid.NewGuid()}";
Microsoft.AspNetCore.Http.Microbenchmarks (2)
src\Http\Http.Extensions\test\RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (2)
129outputNameOverride: $"TestProject-{Guid.NewGuid()}"); 313var projectName = $"TestProject-{Guid.NewGuid()}";
Microsoft.AspNetCore.Identity.EntityFrameworkCore (3)
RoleStore.cs (1)
152role.ConcurrencyStamp = Guid.NewGuid().ToString();
UserOnlyStore.cs (1)
172user.ConcurrencyStamp = Guid.NewGuid().ToString();
UserStore.cs (1)
174user.ConcurrencyStamp = Guid.NewGuid().ToString();
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (82)
CustomPocoTest.cs (18)
30using (var db = new CustomDbContext<Guid>( 31new DbContextOptionsBuilder().UseSqlite($"DataSource=D{Guid.NewGuid()}.db").Options)) 35var oldName = Guid.NewGuid().ToString(); 36var user = new User<Guid> { UserName = oldName, Id = Guid.NewGuid() }; 39var newName = Guid.NewGuid().ToString(); 53new DbContextOptionsBuilder().UseSqlite($"DataSource=D{Guid.NewGuid()}.db").Options)) 57var oldName = Guid.NewGuid().ToString(); 58var user = new User<string> { UserName = oldName, Id = Guid.NewGuid().ToString() }; 61var newName = Guid.NewGuid().ToString(); 75new DbContextOptionsBuilder().UseSqlite($"DataSource=D{Guid.NewGuid()}.db").Options)) 95new DbContextOptionsBuilder().UseSqlite($"DataSource=D{Guid.NewGuid()}.db").Options)) 116new DbContextOptionsBuilder().UseSqlite($"DataSource=D{Guid.NewGuid()}.db").Options)) 120var oldName = Guid.NewGuid().ToString(); 124var newName = Guid.NewGuid().ToString(); 138new DbContextOptionsBuilder().UseSqlite($"DataSource=D{Guid.NewGuid()}.db").Options)) 142var oldName = Guid.NewGuid().ToString(); 146var newName = Guid.NewGuid().ToString();
SqlStoreOnlyUsersTestBase.cs (1)
36UserName = useNamePrefixAsUserName ? namePrefix : string.Format(CultureInfo.InvariantCulture, "{0}{1}", namePrefix, Guid.NewGuid()),
SqlStoreTestBase.cs (6)
69UserName = useNamePrefixAsUserName ? namePrefix : string.Format(CultureInfo.InvariantCulture, "{0}{1}", namePrefix, Guid.NewGuid()), 79var roleName = useRoleNamePrefixAsRoleName ? roleNamePrefix : string.Format(CultureInfo.InvariantCulture, "{0}{1}", roleNamePrefix, Guid.NewGuid()); 161var roleName = "delete" + Guid.NewGuid().ToString(); 185var roleName = "deleteUserRemove" + Guid.NewGuid().ToString(); 245var admin = CreateTestRole("Admin" + Guid.NewGuid().ToString()); 246var local = CreateTestRole("Local" + Guid.NewGuid().ToString());
src\Identity\test\Shared\PocoModel\PocoRole.cs (2)
16Id = Guid.NewGuid().ToString(); 72public virtual string ConcurrencyStamp { get; set; } = Guid.NewGuid().ToString();
src\Identity\test\Shared\PocoModel\PocoUser.cs (2)
16Id = Guid.NewGuid().ToString(); 96public virtual string ConcurrencyStamp { get; set; } = Guid.NewGuid().ToString();
UserOnlyTest.cs (2)
72var userA = new IdentityUser(Guid.NewGuid().ToString()); 76var userB = new IdentityUser(Guid.NewGuid().ToString());
UserStoreEncryptPersonalDataTest.cs (4)
74var name = Guid.NewGuid().ToString(); 78var newName = Guid.NewGuid().ToString(); 180using (var connection = new SqliteConnection($"DataSource=D{Guid.NewGuid()}.db")) 201var guid = Guid.NewGuid().ToString();
UserStoreGuidKeyTest.cs (11)
9public class GuidUser : IdentityUser<Guid> 13Id = Guid.NewGuid(); 18public class GuidRole : IdentityRole<Guid> 22Id = Guid.NewGuid(); 27public class UserStoreGuidTest : SqlStoreTestBase<GuidUser, GuidRole, Guid> 34public class ApplicationUserStore : UserStore<GuidUser, GuidRole, TestDbContext, Guid> 39public class ApplicationRoleStore : RoleStore<GuidRole, TestDbContext, Guid> 78var builder = services.AddIdentityCore<IdentityUser<Guid>>().AddRoles<IdentityRole<Guid>>().AddEntityFrameworkStores<TestDbContext>(); 83Assert.NotNull(sp.GetRequiredService<UserManager<IdentityUser<Guid>>>()); 84Assert.NotNull(sp.GetRequiredService<RoleManager<IdentityRole<Guid>>>());
UserStoreIntKeyTest.cs (2)
13UserName = Guid.NewGuid().ToString(); 21Name = Guid.NewGuid().ToString();
UserStoreStringKeyTest.cs (2)
13Id = Guid.NewGuid().ToString(); 22Id = Guid.NewGuid().ToString();
UserStoreTest.cs (27)
33var guid = Guid.NewGuid().ToString(); 166var guid = Guid.NewGuid().ToString(); 176var userA = new IdentityUser(Guid.NewGuid().ToString()); 178var userB = new IdentityUser(Guid.NewGuid().ToString()); 188var userA = new IdentityUser(Guid.NewGuid().ToString()); 191var userB = new IdentityUser(Guid.NewGuid().ToString()); 211var options = new DbContextOptionsBuilder().UseSqlite($"Data Source=D{Guid.NewGuid()}.db").Options; 230user1.UserName = Guid.NewGuid().ToString(); 231user2.UserName = Guid.NewGuid().ToString(); 242var options = new DbContextOptionsBuilder().UseSqlite($"Data Source=D{Guid.NewGuid()}.db").Options; 259user.UserName = Guid.NewGuid().ToString(); 260user2.UserName = Guid.NewGuid().ToString(); 271var options = new DbContextOptionsBuilder().UseSqlite($"Data Source=D{Guid.NewGuid()}.db").Options; 290user1.UserName = Guid.NewGuid().ToString(); 301var options = new DbContextOptionsBuilder().UseSqlite($"Data Source=D{Guid.NewGuid()}.db").Options; 302var role = new IdentityRole(Guid.NewGuid().ToString()); 320role1.Name = Guid.NewGuid().ToString(); 321role2.Name = Guid.NewGuid().ToString(); 332var options = new DbContextOptionsBuilder().UseSqlite($"Data Source=D{Guid.NewGuid()}.db").Options; 333var role = new IdentityRole(Guid.NewGuid().ToString()); 350role.Name = Guid.NewGuid().ToString(); 351role2.Name = Guid.NewGuid().ToString(); 362var options = new DbContextOptionsBuilder().UseSqlite($"Data Source=D{Guid.NewGuid()}.db").Options; 363var role = new IdentityRole(Guid.NewGuid().ToString()); 381role1.Name = Guid.NewGuid().ToString(); 394UserName = useNamePrefixAsUserName ? namePrefix : string.Format(CultureInfo.InvariantCulture, "{0}{1}", namePrefix, Guid.NewGuid()), 404var roleName = useRoleNamePrefixAsRoleName ? roleNamePrefix : string.Format(CultureInfo.InvariantCulture, "{0}{1}", roleNamePrefix, Guid.NewGuid());
UserStoreWithGenericsTest.cs (4)
49UserName = useNamePrefixAsUserName ? namePrefix : string.Format(CultureInfo.InvariantCulture, "{0}{1}", namePrefix, Guid.NewGuid()), 59var roleName = useRoleNamePrefixAsRoleName ? roleNamePrefix : string.Format(CultureInfo.InvariantCulture, "{0}{1}", roleNamePrefix, Guid.NewGuid()); 195Id = Guid.NewGuid().ToString(); 305Id = Guid.NewGuid().ToString();
Utilities\ScratchDatabaseFixture.cs (1)
16_connection = new SqliteConnection($"DataSource=D{Guid.NewGuid()}.db");
Microsoft.AspNetCore.Identity.FunctionalTests (53)
LoginTests.cs (18)
29var userName = $"{Guid.NewGuid()}@example.com"; 52var userName = $"{Guid.NewGuid()}@example.com"; 69var userName = $"{Guid.NewGuid()}@example.com"; 95var userName = $"{Guid.NewGuid()}@example.com"; 115var userName = $"{Guid.NewGuid()}@example.com"; 140var userName = $"{Guid.NewGuid()}@example.com"; 167var userName = $"{Guid.NewGuid()}@example.com"; 192var userName = $"{Guid.NewGuid()}@example.com"; 216var userName = $"{Guid.NewGuid()}@example.com"; 243var userName = $"{Guid.NewGuid()}@example.com"; 271var userName = $"{Guid.NewGuid()}@example.com"; 296var guid = Guid.NewGuid(); 318var guid = Guid.NewGuid(); 341var userName = $"{Guid.NewGuid()}@example.com"; 371var userName = $"{Guid.NewGuid()}@example.com"; 400var userName = $"{Guid.NewGuid()}@example.com";
ManagementTests.cs (15)
31var userName = $"{Guid.NewGuid()}@example.com"; 47var userName = $"{Guid.NewGuid()}@example.com"; 68var userName = $"{Guid.NewGuid()}@example.com"; 94var userName = $"{Guid.NewGuid()}@example.com"; 125var userName = $"{Guid.NewGuid()}@example.com"; 163var guid = Guid.NewGuid(); 201var guid = Guid.NewGuid(); 226var userName = Guid.NewGuid().ToString(); 252var userName = $"{Guid.NewGuid()}@example.com"; 284var userName = $"{Guid.NewGuid()}@example.com"; 285var guid = Guid.NewGuid(); 356var userName = $"{Guid.NewGuid()}@example.com";
MapIdentityApiTests.cs (2)
35private static string Email { get; } = $"{Guid.NewGuid()}@example.com"; 410var newUsername = $"{Guid.NewGuid()}@example.com";
RegistrationTests.cs (16)
33var userName = $"{Guid.NewGuid()}@example.com"; 51var userName = $"{Guid.NewGuid()}@example.com"; 84var userName = $"{Guid.NewGuid()}@example.com"; 105var userName = $"{Guid.NewGuid()}@example.com"; 124var guid = Guid.NewGuid(); 146var guid = Guid.NewGuid(); 171var guid = Guid.NewGuid(); 192var guid = Guid.NewGuid(); 213var guid = Guid.NewGuid(); 237var guid = Guid.NewGuid();
UserStories.cs (2)
18userName = userName ?? $"{Guid.NewGuid()}@example.com"; 29userName = userName ?? $"{Guid.NewGuid()}@example.com";
Microsoft.AspNetCore.Identity.InMemory.Test (7)
InMemoryStoreTest.cs (2)
38UserName = useNamePrefixAsUserName ? namePrefix : string.Format(CultureInfo.InvariantCulture, "{0}{1}", namePrefix, Guid.NewGuid()), 48var roleName = useRoleNamePrefixAsRoleName ? roleNamePrefix : string.Format(CultureInfo.InvariantCulture, "{0}{1}", roleNamePrefix, Guid.NewGuid());
InMemoryUserStoreTest.cs (1)
34UserName = useNamePrefixAsUserName ? namePrefix : string.Format(CultureInfo.InvariantCulture, "{0}{1}", namePrefix, Guid.NewGuid()),
src\Identity\test\Shared\PocoModel\PocoRole.cs (2)
16Id = Guid.NewGuid().ToString(); 72public virtual string ConcurrencyStamp { get; set; } = Guid.NewGuid().ToString();
src\Identity\test\Shared\PocoModel\PocoUser.cs (2)
16Id = Guid.NewGuid().ToString(); 96public virtual string ConcurrencyStamp { get; set; } = Guid.NewGuid().ToString();
Microsoft.AspNetCore.Identity.Specification.Tests (20)
IdentitySpecificationTestBase.cs (11)
131var roleName = "create" + Guid.NewGuid().ToString(); 218var roleName = "delete" + Guid.NewGuid().ToString(); 288var roleName = "FindByNameAsync" + Guid.NewGuid().ToString(); 304var roleName = "update" + Guid.NewGuid().ToString(); 346var roleName = "dupeRole" + Guid.NewGuid().ToString(); 365var roleName = "AddUserTest" + Guid.NewGuid().ToString(); 481var roleName = "addUserDupeTest" + Guid.NewGuid().ToString(); 501var roleName = "addUserDupeTest" + Guid.NewGuid().ToString(); 522var roleName = "addUserDupeTest" + Guid.NewGuid().ToString(); 540var roleName = "findRoleByNameTest" + Guid.NewGuid().ToString(); 554var roleName = "findRoleTest" + Guid.NewGuid().ToString();
UserManagerSpecificationTests.cs (9)
221var name = Guid.NewGuid().ToString(); 224var newName = Guid.NewGuid().ToString(); 240var username = "UpdateAsync" + Guid.NewGuid().ToString(); 241var newUsername = "New" + Guid.NewGuid().ToString(); 268var username = "UpdateAsync" + Guid.NewGuid().ToString(); 269var newUsername = "New" + Guid.NewGuid().ToString(); 286var username = "Create" + Guid.NewGuid().ToString(); 556var username = "CreateUserTest" + Guid.NewGuid(); 840var username = "AddDupeUserNameFails" + Guid.NewGuid();
Microsoft.AspNetCore.Identity.Test (6)
src\Identity\test\Shared\PocoModel\PocoRole.cs (2)
16Id = Guid.NewGuid().ToString(); 72public virtual string ConcurrencyStamp { get; set; } = Guid.NewGuid().ToString();
src\Identity\test\Shared\PocoModel\PocoUser.cs (2)
16Id = Guid.NewGuid().ToString(); 96public virtual string ConcurrencyStamp { get; set; } = Guid.NewGuid().ToString();
UserManagerTest.cs (2)
736store.Setup(x => x.GetUserIdAsync(It.IsAny<PocoUser>(), It.IsAny<CancellationToken>())).Returns(Task.FromResult(Guid.NewGuid().ToString())); 1004var user = new PocoUser() { UserName = Guid.NewGuid().ToString() };
Microsoft.AspNetCore.InternalTesting.Tests (2)
AssemblyTestLogTests.cs (1)
368var tempDir = Path.Combine(Path.GetTempPath(), $"TestLogging_{Guid.NewGuid():N}");
TestableAssembly.cs (1)
65var testAssemblyName = $"Test{Guid.NewGuid():n}";
Microsoft.AspNetCore.JsonPatch.SystemTextJson.Tests (15)
IntegrationTests\SimpleObjectIntegrationTest.cs (6)
115GuidValue = Guid.NewGuid() 118var newGuid = Guid.NewGuid(); 135GuidValue = Guid.NewGuid() 138var newGuid = Guid.NewGuid();
Internal\DictionaryAdapterTest.cs (7)
73var guidKey = new Guid(); 160var guidKey = new Guid(); 161var dictionary = new Dictionary<Guid, object>(); 163var dictionaryAdapter = new DictionaryAdapter<Guid, object>(); 180var guidKey = new Guid(); 181var dictionary = new Dictionary<Guid, int>(); 183var dictionaryAdapter = new DictionaryAdapter<Guid, int>();
JsonPatchDocumentTest.cs (1)
209GuidValue = Guid.NewGuid(),
TestObjectModels\SimpleObject.cs (1)
21public Guid GuidValue { get; set; }
Microsoft.AspNetCore.JsonPatch.Tests (17)
IntegrationTests\ExpandoObjectIntegrationTest.cs (3)
368targetObject.GuidValue = Guid.NewGuid(); 370var newGuid = Guid.NewGuid();
IntegrationTests\SimpleObjectIntegrationTest.cs (6)
115GuidValue = Guid.NewGuid() 118var newGuid = Guid.NewGuid(); 135GuidValue = Guid.NewGuid() 138var newGuid = Guid.NewGuid();
Internal\DictionaryAdapterTest.cs (7)
76var guidKey = new Guid(); 163var guidKey = new Guid(); 164var dictionary = new Dictionary<Guid, object>(); 166var dictionaryAdapter = new DictionaryAdapter<Guid, object>(); 183var guidKey = new Guid(); 184var dictionary = new Dictionary<Guid, int>(); 186var dictionaryAdapter = new DictionaryAdapter<Guid, int>();
TestObjectModels\SimpleObject.cs (1)
21public Guid GuidValue { get; set; }
Microsoft.AspNetCore.MiddlewareAnalysis (2)
AnalysisMiddleware.cs (2)
15private readonly Guid _instanceId = Guid.NewGuid();
Microsoft.AspNetCore.Mvc.Abstractions (1)
Abstractions\ActionDescriptor.cs (1)
20Id = Guid.NewGuid().ToString();
Microsoft.AspNetCore.Mvc.Abstractions.Test (10)
ModelBinding\BindingInfoTest.cs (10)
104var modelType = typeof(Guid); 131var modelType = typeof(Guid?); 153var modelType = typeof(Guid); 178var modelType = typeof(Guid); 204var modelType = typeof(Guid); 231var modelType = typeof(Guid); 257var modelType = typeof(Guid?); 279var modelType = typeof(Guid); 300var modelType = typeof(Guid); 322var modelType = typeof(Guid);
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
EndpointModelMetadata.cs (1)
67|| underlyingType == typeof(Guid)
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (8)
DefaultApiDescriptionProviderTest.cs (4)
1635Assert.Equal(typeof(Guid), id.Type); 1654Assert.Equal(typeof(Guid?), id.Type); 2528private void AcceptsTryParsablePrimitiveType([FromQuery] Guid id) 2546private void AcceptsTryParsableNullablePrimitiveType([FromQuery] Guid? id)
EndpointMetadataApiDescriptionProviderTest.cs (4)
589AssertPathParameter(GetApiDescription((Guid foo) => { }, "/{foo}"), typeof(Guid)); 610AssertPathParameter(GetApiDescription((Guid? foo) => { }, "/{foo}"), typeof(Guid?));
Microsoft.AspNetCore.Mvc.Core.Test (21)
ApiExplorer\ApiConventionResultTest.cs (3)
206public IActionResult GetUser(Guid id) => null; 210public IActionResult PutUser(Guid userId, User user) => null; 212public IActionResult Delete(Guid userId) => null;
ApplicationModels\ApiConventionApplicationModelConventionTest.cs (1)
123controllerAttributes: new[] { new ProducesErrorResponseTypeAttribute(typeof(Guid)) });
ApplicationModels\DefaultApplicationModelProviderTest.cs (4)
259var detailsProvider = new BindingSourceMetadataProvider(typeof(Guid), BindingSource.Special); 287var detailsProvider = new BindingSourceMetadataProvider(typeof(Guid), BindingSource.Special); 1837public IActionResult PostAction1(Guid guid) => null; 1839public IActionResult PostAction2([FromQuery] Guid fromQuery) => null;
ApplicationParts\RelatedAssemblyPartTest.cs (1)
18var name = new AssemblyName($"DynamicAssembly-{Guid.NewGuid()}");
Infrastructure\ParameterDefaultValuesTest.cs (3)
38new object[] { default(Guid), default(TimeSpan), default(DateTime), default(DateTimeOffset) }, 75Guid guid = default(Guid),
ModelBinding\Binders\HeaderModelBinderTests.cs (2)
110var guid = new Guid("3916A5B1-5FE4-4E09-9812-5CDC127FA5B1"); 123{ guid.ToString(), typeof(Guid), guid },
ModelBinding\Binders\SimpleTypeModelBinderTest.cs (1)
75typeof(Guid),
ModelBinding\Binders\TryParseTypeModelBinderTest.cs (1)
24typeof(Guid),
ModelBinding\Metadata\DefaultModelMetadataTest.cs (3)
345[InlineData(typeof(Guid))] 810[InlineData(typeof(Guid))] // TypeConverter 811[InlineData(typeof(Guid?))] // Nullable + TypeConverter
ModelBinding\ModelBindingHelperTest.cs (2)
1230Guid.Parse("c6687d3a-51f9-4159-8771-a66d2b7d7038", CultureInfo.InvariantCulture) 1240[InlineData(typeof(Guid))]
Microsoft.AspNetCore.Mvc.FunctionalTests (9)
DefaultValuesTest.cs (3)
89var expected = $"{default(Guid)}, {default(TimeSpan)}"; 103Guid guid = Guid.NewGuid();
RazorPagesTest.cs (1)
1407expected = $"id: 10, guid: {default(Guid)}, boolean: {default(bool)}, dateTime: {default(DateTime)}";
RequestServicesTestBase.cs (3)
52var requestId = Guid.NewGuid().ToString(); 75var requestId = Guid.NewGuid().ToString(); 104var requestId2 = Guid.NewGuid().ToString();
TempDataTestBase.cs (2)
153var testGuid = Guid.NewGuid();
Microsoft.AspNetCore.Mvc.NewtonsoftJson (2)
BsonTempDataSerializer.cs (2)
37{ JTokenType.Guid, typeof(Guid) }, 244type.Equals(typeof(Guid)) ||
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (18)
BsonTempDataSerializerTest.cs (8)
48{ new Dictionary<Uri, Guid>(), typeof(Uri) }, 79{ Guid.NewGuid() }, 137var value = Guid.NewGuid(); 149var roundTripValue = Assert.IsType<Guid>(values[key]); 211var value = Guid.NewGuid();
src\Mvc\Mvc.ViewFeatures\test\Infrastructure\TempDataSerializerTestBase.cs (10)
159var value = Guid.NewGuid(); 170var roundTripValue = Assert.IsType<Guid>(values[key]); 203var value = Guid.NewGuid(); 225var value = Guid.NewGuid(); 236var roundTripValue = Assert.IsType<Guid>(values[key]);
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (1)
AssemblyPartExtensionTest.cs (1)
48var name = new AssemblyName($"DynamicAssembly-{Guid.NewGuid()}");
Microsoft.AspNetCore.Mvc.Razor.Test (2)
RazorPageActivatorTest.cs (2)
189Assert.IsType<ViewDataDictionary<Guid>>(viewContext.ViewData); 302public Type ModelType { get; set; } = typeof(Guid);
Microsoft.AspNetCore.Mvc.RazorPages.Test (9)
ApplicationModels\DefaultPageApplicationModelProviderTest.cs (1)
553[ServiceFilter(typeof(Guid))]
PageModelTest.cs (4)
2020var result = pageModel.ViewComponent(typeof(Guid)); 2024Assert.Equal(typeof(Guid), result.ViewComponentType); 2036var result = pageModel.ViewComponent(typeof(Guid), arguments); 2041Assert.Equal(typeof(Guid), result.ViewComponentType);
PageTest.cs (4)
1795var result = page.ViewComponent(typeof(Guid)); 1799Assert.Equal(typeof(Guid), result.ViewComponentType); 1819var result = page.ViewComponent(typeof(Guid), arguments); 1824Assert.Equal(typeof(Guid), result.ViewComponentType);
Microsoft.AspNetCore.Mvc.TagHelpers.Test (10)
AttributeMatcherTest.cs (1)
99uniqueId: Guid.NewGuid().ToString("N"));
CacheTagKeyTest.cs (2)
27var id = Guid.NewGuid().ToString(); 47var id = Guid.NewGuid().ToString();
ComponentTagHelperTest.cs (1)
67Guid.NewGuid().ToString("N"));
EnvironmentTagHelperTest.cs (1)
216uniqueId: Guid.NewGuid().ToString("N"));
ImageTagHelperTest.cs (1)
340uniqueId: Guid.NewGuid().ToString("N"));
LinkTagHelperTest.cs (1)
1151uniqueId: Guid.NewGuid().ToString("N"));
PartialTagHelperTest.cs (1)
855Guid.NewGuid().ToString("N"));
PersistComponentStateTagHelperTest.cs (1)
244Guid.NewGuid().ToString("N"));
ScriptTagHelperTest.cs (1)
1100uniqueId: Guid.NewGuid().ToString("N"));
Microsoft.AspNetCore.Mvc.ViewFeatures (4)
Infrastructure\DefaultTempDataSerializer.cs (3)
44if (item.Value.TryGetGuid(out var guid)) 178case Guid guid: 229type == typeof(Guid) ||
ViewComponents\ViewComponentDescriptor.cs (1)
22Id = Guid.NewGuid().ToString();
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (11)
Infrastructure\TempDataSerializerTestBase.cs (10)
159var value = Guid.NewGuid(); 170var roundTripValue = Assert.IsType<Guid>(values[key]); 203var value = Guid.NewGuid(); 225var value = Guid.NewGuid(); 236var roundTripValue = Assert.IsType<Guid>(values[key]);
TemplateRendererTest.cs (1)
23{ typeof(Guid), new string[] { "Guid", "String" } },
Microsoft.AspNetCore.OpenApi (3)
Extensions\JsonNodeSchemaExtensions.cs (1)
44[typeof(Guid)] = new() { Type = JsonSchemaType.String, Format = "uuid" },
Extensions\JsonTypeInfoExtensions.cs (1)
29[typeof(Guid)] = "Guid",
Services\OpenApiConstants.cs (1)
62typeof(Guid),
Microsoft.AspNetCore.OpenApi.SourceGenerators.Tests (1)
SnapshotTestHelper.cs (1)
118outputNameOverride: $"TestProject-{Guid.NewGuid()}");
Microsoft.AspNetCore.OpenApi.Tests (11)
Services\OpenApiDocumentService\OpenApiDocumentServiceTests.Parameters.cs (3)
50builder.MapGet("/api/todos/{guid}", (Guid? guid) => { }); 102builder.MapGet("/api/users", ([FromHeader(Name = "X-Header")] Guid? header) => { }); 131builder.MapGet("/api/todos/{guid}", (Guid? guid) => { });
Services\OpenApiDocumentService\OpenApiDocumentServiceTests.RequestBody.cs (3)
890private void ActionWithGuidForm([FromForm] Guid model) { } 954builder.MapGet("/api/", ([FromForm] Todo todo, IFormFile formFile, [FromForm] Guid guid) => { }); 1079private void ActionWithMixedFormTypes([FromForm] Todo todo, IFormFile formFile, [FromForm] Guid guid) { }
Services\OpenApiSchemaService\OpenApiSchemaService.ParameterSchemas.cs (4)
84[(Guid id) => {}, JsonSchemaType.String, "uuid"], 441builder.MapGet("/api-3", ([Required] Guid guid) => { }); 523public Guid Id { get; set; } 532public Guid Id { get; set; }
Services\OpenApiSchemaService\OpenApiSchemaService.RequestBodySchemas.cs (1)
263builder.MapGet("/array-parsable", (Guid[] guids) => { });
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (1)
EndToEndBenchmarks.cs (1)
50Key = Guid.NewGuid().ToString();
Microsoft.AspNetCore.OutputCaching.Tests (21)
OutputCacheKeyProviderTests.cs (9)
89context.CacheVaryByRules.CacheKeyPrefix = Guid.NewGuid().ToString("n"); 184context.CacheVaryByRules.CacheKeyPrefix = Guid.NewGuid().ToString("n"); 197context.CacheVaryByRules.CacheKeyPrefix = Guid.NewGuid().ToString("n"); 210context.CacheVaryByRules.CacheKeyPrefix = Guid.NewGuid().ToString("n"); 223context.CacheVaryByRules.CacheKeyPrefix = Guid.NewGuid().ToString("n"); 238context.CacheVaryByRules.CacheKeyPrefix = Guid.NewGuid().ToString("n"); 253context.CacheVaryByRules.CacheKeyPrefix = Guid.NewGuid().ToString("n"); 272context.CacheVaryByRules.CacheKeyPrefix = Guid.NewGuid().ToString("n"); 420context.CacheVaryByRules.CacheKeyPrefix = Guid.NewGuid().ToString("n");
OutputCacheMiddlewareTests.cs (1)
1025await c.Response.WriteAsync(Guid.NewGuid().ToString());
OutputCacheTests.cs (7)
981var guid = await RunClient(server, -1); 983var clients = new Task<Guid>[1024]; 997static async Task<Guid> RunClient(TestServer server, int id) 1008Guid value; 1013Assert.True(Guid.TryParse(s, out value)); 1017Assert.True(Guid.TryParse(s.Substring(s.Length - 36), out value)); 1021value = Guid.NewGuid(); // not reached
TestUtils.cs (4)
48var uniqueId = Guid.NewGuid().ToString(); 58var uniqueId = Guid.NewGuid().ToString(); 68var uniqueId = Guid.NewGuid().ToString(); 83var uniqueId = Guid.NewGuid().ToString();
Microsoft.AspNetCore.ResponseCaching (1)
FastGuid.cs (1)
33var guidBytes = Guid.NewGuid().ToByteArray();
Microsoft.AspNetCore.ResponseCaching.Tests (3)
TestUtils.cs (3)
73var uniqueId = Guid.NewGuid().ToString(); 83var uniqueId = Guid.NewGuid().ToString(); 93var uniqueId = Guid.NewGuid().ToString();
Microsoft.AspNetCore.Rewrite.Tests (1)
IISUrlRewrite\MiddleWareTests.cs (1)
617var response = await server.CreateClient().GetStringAsync($"http://localhost/{Guid.NewGuid()}/foo/bar");
Microsoft.AspNetCore.Routing (3)
Constraints\GuidRouteConstraint.cs (3)
16/// Constrains a route parameter to represent only <see cref="Guid"/> values. 43if (value is Guid) 57return Guid.TryParse(valueString, out _);
Microsoft.AspNetCore.Routing.Microbenchmarks (1)
Matching\JumpTableMultipleEntryBenchmark.cs (1)
155var guid = Guid.NewGuid().ToString();
Microsoft.AspNetCore.Routing.Tests (1)
Constraints\GuidRouteConstraintTests.cs (1)
23parameterValue = Guid.Parse(parameterValue.ToString(), CultureInfo.InvariantCulture);
Microsoft.AspNetCore.Server.HttpSys (2)
RequestProcessing\RequestContext.cs (2)
74public unsafe Guid TraceIdentifier 80var guid = new Guid(0xffcb4c93, 0xa57f, 0x453c, 0xb6, 0x3f, 0x84, 0x71, 0xc, 0x79, 0x67, 0xbb);
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (31)
DelegateTests.cs (7)
43var queueName = Guid.NewGuid().ToString(); 74var queueName = Guid.NewGuid().ToString(); 107var queueName = Guid.NewGuid().ToString(); 140var queueName = Guid.NewGuid().ToString(); 192var queueName = Guid.NewGuid().ToString(); 227var queueName = Guid.NewGuid().ToString(); 288var queueName = Guid.NewGuid().ToString();
Listener\ServerOnExistingQueueTests.cs (1)
240var queueName = Guid.NewGuid().ToString();
ResponseCachingTests.cs (19)
57address += Guid.NewGuid().ToString(); // Avoid cache collisions for failed tests. 77address += Guid.NewGuid().ToString(); // Avoid cache collisions for failed tests. 98address += Guid.NewGuid().ToString(); // Avoid cache collisions for failed tests. 119address += Guid.NewGuid().ToString(); // Avoid cache collisions for failed tests. 144address += Guid.NewGuid().ToString(); // Avoid cache collisions for failed tests. 164address += Guid.NewGuid().ToString(); // Avoid cache collisions for failed tests. 184address += Guid.NewGuid().ToString(); // Avoid cache collisions for failed tests. 204address += Guid.NewGuid().ToString(); // Avoid cache collisions for failed tests. 224address += Guid.NewGuid().ToString(); // Avoid cache collisions for failed tests. 245address += Guid.NewGuid().ToString(); // Avoid cache collisions for failed tests. 269address += Guid.NewGuid().ToString(); // Avoid cache collisions for failed tests. 292address += Guid.NewGuid().ToString(); // Avoid cache collisions for failed tests. 312address += Guid.NewGuid().ToString(); // Avoid cache collisions for failed tests. 333address += Guid.NewGuid().ToString(); // Avoid cache collisions for failed tests. 354address += Guid.NewGuid().ToString(); // Avoid cache collisions for failed tests. 376address += Guid.NewGuid().ToString(); // Avoid cache collisions for failed tests. 395address += Guid.NewGuid().ToString(); // Avoid cache collisions for failed tests. 415address += Guid.NewGuid().ToString(); // Avoid cache collisions for failed tests. 448var query = "?" + Guid.NewGuid().ToString(); // Avoid cache collisions for failed tests.
ResponseSendFileTests.cs (1)
308var emptyFilePath = Path.Combine(Directory.GetCurrentDirectory(), "zz_" + Guid.NewGuid().ToString() + "EmptyTestFile.txt");
ServerTests.cs (3)
44var queueName = Guid.NewGuid().ToString(); 94var queueName = Guid.NewGuid().ToString(); 603var queueName = Guid.NewGuid().ToString();
Microsoft.AspNetCore.Server.HttpSys.NonHelixTests (1)
DelegateOutOfProcTests.cs (1)
42var queueName = Guid.NewGuid().ToString();
Microsoft.AspNetCore.Server.IIS (1)
Core\IISHttpContext.IHttpRequestIdentifierFeature.cs (1)
32var guid = new Guid(0xffcb4c93, 0xa57f, 0x453c, 0xb6, 0x3f, 0x84, 0x71, 0xc, 0x79, 0x67, 0xbb);
Microsoft.AspNetCore.Server.IntegrationTesting (3)
ApplicationPublisher.cs (1)
122var tempPath = Path.GetTempPath() + Guid.NewGuid().ToString("N");
Deployers\NginxDeployer.cs (1)
138var pidFile = Path.Combine(DeploymentParameters.ApplicationPath, $"{Guid.NewGuid()}.nginx.pid");
Deployers\RemoteWindowsDeployer\RemoteWindowsDeployer.cs (1)
90var folderId = Guid.NewGuid().ToString();
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (1)
IISDeployer.cs (1)
308_configPath = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString("D"));
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
KestrelEventSourceTests.cs (1)
26Assert.Equal(Guid.Parse("bdeb4676-a36e-5442-db99-4764e2326c7d", CultureInfo.InvariantCulture), EventSource.GetGuid(esType));
Microsoft.AspNetCore.Shared.Tests (3)
PropertyHelperTest.cs (3)
379Assert.Equal(typeof(Guid), result[0].Property.PropertyType); 428Assert.Equal(typeof(Guid), result[0].Property.PropertyType); 858public new Guid Id { get; set; }
Microsoft.AspNetCore.SignalR.Client (1)
src\Shared\CodeAnalysis\StringSyntaxAttribute.cs (1)
46/// <summary>The syntax identifier for strings containing <see cref="Guid"/> format specifiers.</summary>
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (1)
Startup.cs (1)
27private readonly SymmetricSecurityKey SecurityKey = new SymmetricSecurityKey(SHA256.HashData(Guid.NewGuid().ToByteArray()));
Microsoft.AspNetCore.SignalR.Microbenchmarks (4)
BroadcastBenchmark.cs (1)
45var connection = new DefaultConnectionContext(Guid.NewGuid().ToString(), pair.Application, pair.Transport);
DefaultHubDispatcherBenchmark.cs (1)
43var connection = new DefaultConnectionContext(Guid.NewGuid().ToString(), pair.Application, pair.Transport);
HubConnectionContextBenchmark.cs (1)
41var connection = new DefaultConnectionContext(Guid.NewGuid().ToString(), _pipe, _pipe);
RedisProtocolBenchmark.cs (1)
117ids[i] = Guid.NewGuid().ToString("N");
Microsoft.AspNetCore.SignalR.Specification.Tests (2)
src\SignalR\common\testassets\Tests.Utils\TestClient.cs (2)
46Connection = new DefaultConnectionContext(Guid.NewGuid().ToString(), pair.Transport, pair.Application); 319return Guid.NewGuid().ToString("N");
Microsoft.AspNetCore.SignalR.StackExchangeRedis (2)
RedisHubLifetimeManager.cs (2)
814return $"{Environment.MachineName}_{Guid.NewGuid():N}"; 820var success = Guid.NewGuid().TryWriteBytes(buffer);
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (2)
RedisEndToEnd.cs (2)
72var groupName = $"TestGroup_{transportType}_{protocolName}_{Guid.NewGuid()}"; 163var groupName = $"TestGroup_{transportType}_{protocolName}_{Guid.NewGuid()}";
Microsoft.AspNetCore.SignalR.Tests (2)
HubConnectionHandlerTests.cs (1)
2053var invocationId = Guid.NewGuid().ToString("N");
Startup.cs (1)
24private readonly SymmetricSecurityKey SecurityKey = new SymmetricSecurityKey(SHA256.HashData(Guid.NewGuid().ToByteArray()));
Microsoft.AspNetCore.SignalR.Tests.Utils (2)
TestClient.cs (2)
46Connection = new DefaultConnectionContext(Guid.NewGuid().ToString(), pair.Transport, pair.Application); 319return Guid.NewGuid().ToString("N");
Microsoft.AspNetCore.SpaProxy (1)
SpaProxyLaunchManager.cs (1)
267var fileName = Guid.NewGuid().ToString("N") + ".sh";
Microsoft.AspNetCore.Testing (1)
FakeSslCertificateFactory.cs (1)
53new CspParameters(24, "Microsoft Enhanced RSA and AES Cryptographic Provider", Guid.NewGuid().ToString()))
Microsoft.AspNetCore.Tests (4)
WebApplicationTests.cs (4)
466var contentRoot = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); 1631var guid = Guid.NewGuid().ToString(); 1651var guid = Guid.NewGuid().ToString(); 2896Data["Random"] = Guid.NewGuid().ToString();
Microsoft.AspNetCore.WebUtilities (2)
FileBufferingReadStream.cs (1)
243_tempFileName = Path.Combine(_tempFileDirectory, "ASPNETCORE_" + Guid.NewGuid().ToString() + ".tmp");
FileBufferingWriteStream.cs (1)
270var tempFileName = Path.Combine(tempFileDirectory, "ASPNETCORE_" + Guid.NewGuid() + ".tmp");
Microsoft.Build (23)
BackEnd\Components\RequestBuilder\AssemblyLoadsTracker.cs (1)
152Guid mvid = args.LoadedAssembly.ManifestModule.ModuleVersionId;
BackEnd\Shared\BuildRequestConfiguration.cs (1)
525var key = $"{MSBuildConstants.MSBuildDummyGlobalPropertyHeader}{Guid.NewGuid():N}";
BuildCheck\Checks\UntrustedLocationCheck.cs (1)
94[MarshalAs(UnmanagedType.LPStruct)] Guid rfid, uint dwFlags,
Construction\Solution\SolutionFile.cs (2)
428private static string ToProjectGuidFormat(Guid id) => id.ToString("B").ToUpper(); 1516proj.ProjectName = $"EmptyProjectName.{Guid.NewGuid()}";
Definition\ProjectCollection.cs (2)
841internal Guid CollectionId { get; } = Guid.NewGuid();
Evaluation\Evaluator.cs (1)
1938FileUtilities.NormalizePath(Guid.NewGuid() + projectNameEnding);
Evaluation\Expander\WellKnownFunctions.cs (3)
851else if (receiverType == typeof(Guid)) 853if (string.Equals(methodName, nameof(Guid.NewGuid), StringComparison.OrdinalIgnoreCase)) 857returnVal = Guid.NewGuid();
ExceptionHandling.cs (2)
346Guid guid = Guid.NewGuid();
FileUtilities.cs (2)
77string pathWithUpperCase = Path.Combine(Path.GetTempPath(), $"CASESENSITIVETEST{Guid.NewGuid():N}"); 195string testFilePath = Path.Combine(directory, $"MSBuild_{Guid.NewGuid():N}_testFile.txt");
Logging\BinaryLogger\BuildEventArgsReader.cs (2)
1241Guid mvid = ReadGuid(); 1742private Guid ReadGuid()
Logging\BinaryLogger\BuildEventArgsWriter.cs (2)
1227private unsafe void Write(Guid guid) 1230for (int i = 0; i < sizeof(Guid); i++, ptr++)
PrintLineDebuggerWriters.cs (1)
32var errorFile = Path.Combine(LogFileRoot, $"LoggingException_{Guid.NewGuid()}");
Resources\Constants.cs (1)
348availableStaticMethods.TryAdd("System.Guid", new Tuple<string, Type>(null, typeof(Guid)));
TempFileUtilities.cs (2)
85string temporaryDirectory = Path.Combine(TempFileDirectory, $"Temporary{Guid.NewGuid():N}", subfolder ?? string.Empty); 181fileName = $"tmp{Guid.NewGuid():N}";
Microsoft.Build.CommandLine.UnitTests (12)
XMake_Tests.cs (12)
1367directory = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString("N")); 1986string projectDirectory = Directory.CreateDirectory(Path.Combine(ObjectModelHelpers.TempProjectDir, Guid.NewGuid().ToString("N"))).FullName; 2009string projectDirectory = Directory.CreateDirectory(Path.Combine(ObjectModelHelpers.TempProjectDir, Guid.NewGuid().ToString("N"))).FullName; 2280string guid = Guid.NewGuid().ToString("N"); 2285<RestoreFirstProps>{Guid.NewGuid():N}.props</RestoreFirstProps> 2313string guid1 = Guid.NewGuid().ToString("N"); 2314string guid2 = Guid.NewGuid().ToString("N"); 2315string restoreFirstProps = $"{Guid.NewGuid():N}.props"; 2360string guid1 = Guid.NewGuid().ToString("N"); 2361string guid2 = Guid.NewGuid().ToString("N"); 2362string restoreFirstProps = $"{Guid.NewGuid():N}.props"; 2769dest = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString("N"));
Microsoft.Build.Engine.OM.UnitTests (17)
Construction\ProjectFormatting_Tests.cs (2)
409directory = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); 464directory = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());
Construction\ProjectRootElement_Tests.cs (1)
634directory = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString("N"));
Definition\DefinitionEditing_Tests.cs (4)
330? @"c:\" + Guid.NewGuid().ToString() + @"\**\i1" 331: "/" + Guid.NewGuid().ToString() + "/**/i1"); 2252NativeMethodsShared.IsWindows ? @"c:\" + Guid.NewGuid().ToString() + @"\**\i1" : "/" + Guid.NewGuid().ToString() + "/**/i1");
Definition\Project_Tests.cs (3)
206string file = Path.GetTempPath() + Path.DirectorySeparatorChar + Guid.NewGuid().ToString("N"); 2490directory = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); 4111string importPath = Path.Combine(pre.DirectoryPath, Guid.NewGuid().ToString());
ExceptionHandling.cs (2)
346Guid guid = Guid.NewGuid();
FileUtilities.cs (2)
77string pathWithUpperCase = Path.Combine(Path.GetTempPath(), $"CASESENSITIVETEST{Guid.NewGuid():N}"); 195string testFilePath = Path.Combine(directory, $"MSBuild_{Guid.NewGuid():N}_testFile.txt");
PrintLineDebuggerWriters.cs (1)
32var errorFile = Path.Combine(LogFileRoot, $"LoggingException_{Guid.NewGuid()}");
TempFileUtilities.cs (2)
85string temporaryDirectory = Path.Combine(TempFileDirectory, $"Temporary{Guid.NewGuid():N}", subfolder ?? string.Empty); 181fileName = $"tmp{Guid.NewGuid():N}";
Microsoft.Build.Engine.UnitTests (42)
BackEnd\BuildManager_Tests.cs (1)
3639string rootProjectPath = Path.Combine(shutdownProjectDirectory, String.Format(CultureInfo.InvariantCulture, "RootProj_{0}.proj", Guid.NewGuid().ToString("N")));
BackEnd\BuildRequest_Tests.cs (1)
148var moniker = nameof(TestTranslationRemoteHostObjects) + Guid.NewGuid();
BackEnd\NodePackets_Tests.cs (2)
67AssemblyLoadBuildEventArgs assemblyLoad = new(AssemblyLoadingContext.Evaluation, null, null, "path", Guid.NewGuid(), null); 291new AssemblyLoadBuildEventArgs(AssemblyLoadingContext.Evaluation, "init", "aname", "path", Guid.NewGuid(), "domain", MessageImportance.Normal),
BackEnd\SdkResolverService_Tests.cs (1)
265var sdkName = Guid.NewGuid().ToString();
BuildEnvironmentHelper_Tests.cs (1)
516TempFolderRoot = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString("N"));
BuildEventArgsSerialization_Tests.cs (11)
518string assemblyName = Guid.NewGuid().ToString(); 519string assemblyPath = Guid.NewGuid().ToString(); 520Guid mvid = Guid.NewGuid(); 521string loadingInitiator = Guid.NewGuid().ToString(); 522string appDomainName = Guid.NewGuid().ToString(); 577senderName: withOptionalData ? $"UnitTest {Guid.NewGuid()}" : null, 908helpKeyword: Guid.NewGuid().ToString(), 909senderName: Guid.NewGuid().ToString()); 929helpKeyword: Guid.NewGuid().ToString(), 930senderName: Guid.NewGuid().ToString());
Construction\ProjectRootElement_Tests.cs (4)
32ObjectModelHelpers.CreateFileInTempProjectDirectory(Guid.NewGuid().ToString("N"), contents, Encoding.UTF8) : 33ObjectModelHelpers.CreateFileInTempProjectDirectory(Guid.NewGuid().ToString("N"), contents); 52ObjectModelHelpers.CreateFileInTempProjectDirectory(Guid.NewGuid().ToString("N"), contents, Encoding.UTF8) : 53ObjectModelHelpers.CreateFileInTempProjectDirectory(Guid.NewGuid().ToString("N"), contents);
Construction\SolutionProjectGenerator_Tests.cs (6)
2598string baseDirectory = Guid.NewGuid().ToString("N"); 2600string solutionFilePath = ObjectModelHelpers.CreateFileInTempProjectDirectory(Path.Combine(baseDirectory, $"{Guid.NewGuid():N}.sln"), 2657string baseDirectory = Guid.NewGuid().ToString("N"); 2659string solutionFilePath = ObjectModelHelpers.CreateFileInTempProjectDirectory(Path.Combine(baseDirectory, $"{Guid.NewGuid():N}.sln"), 2735string baseDirectory = Guid.NewGuid().ToString("N"); 2737string solutionFilePath = ObjectModelHelpers.CreateFileInTempProjectDirectory(Path.Combine(baseDirectory, $"{Guid.NewGuid():N}.sln"),
Evaluation\Evaluator_Tests.cs (3)
1258string filename1 = Guid.NewGuid().ToString("N"); 1259string filename2 = Guid.NewGuid().ToString("N"); 5052var tempPath = env.CreateFile(Guid.NewGuid().ToString(), testTargets);
Evaluation\Expander_Tests.cs (2)
4426Assert.True(Guid.TryParse(result, out Guid guid));
Evaluation\Preprocessor_Tests.cs (1)
707directory = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());
FileLogger_Tests.cs (1)
338string directory = Path.Combine(ObjectModelHelpers.TempProjectDir, Guid.NewGuid().ToString("N"));
Graph\IsolateProjects_Tests.cs (1)
142_env.SetTempPath(Path.Combine(Directory.GetCurrentDirectory(), Guid.NewGuid().ToString("N")), deleteTempDirectory: true);
Instance\HostServices_Tests.cs (3)
452var moniker = Guid.NewGuid().ToString(); 455var newMoniker = Guid.NewGuid().ToString(); 503globals["UniqueDummy"] = Guid.NewGuid().ToString();
InvalidProjectFileException_Tests.cs (2)
30string file = Path.GetTempPath() + Guid.NewGuid().ToString("N"); 62string file = Path.GetTempPath() + Guid.NewGuid().ToString("N");
ProjectCache\ProjectCacheTests.cs (1)
650sb.AppendLine($"<ProjectConfiguration Project=\"{Guid.NewGuid()}\" AbsolutePath=\"{projectPath}\" {buildProjectInSolutionAttribute}>{projectName}Debug|{projectName}x64{projectDependencyElement}</ProjectConfiguration>");
SolutionFileBuilder.cs (1)
111Guid.NewGuid()
Microsoft.Build.Framework (11)
AssemblyLoadBuildEventArgs.cs (2)
24Guid mvid, 41public Guid MVID { get; private set; }
BinaryReaderExtensions.cs (2)
99public static unsafe Guid ReadGuid(this BinaryReader reader) 101return new Guid(reader.ReadBytes(sizeof(Guid)));
BinaryWriterExtensions.cs (3)
103public static void WriteGuid(this BinaryWriter writer, Guid value) 105Guid val = value; 109for (int i = 0; i < sizeof(Guid); i++, ptr++)
Polyfills\StringSyntaxAttribute.cs (1)
46/// <summary>The syntax identifier for strings containing <see cref="Guid"/> format specifiers.</summary>
Telemetry\BuildCheckTelemetry.cs (3)
17private Guid _submissionId = Guid.NewGuid(); 92_submissionId = Guid.NewGuid();
Microsoft.Build.Framework.UnitTests (11)
AssemblyLoadBuildEventArgs_Tests.cs (6)
16string assemblyName = Guid.NewGuid().ToString(); 17string assemblyPath = Guid.NewGuid().ToString(); 18Guid mvid = Guid.NewGuid(); 19string loadingInitiator = Guid.NewGuid().ToString(); 20string appDomainName = Guid.NewGuid().ToString();
ExtendedBuildEventArgs_Tests.cs (5)
23senderName: withOptionalData ? $"UnitTest {Guid.NewGuid()}" : null, 60senderName: withOptionalData ? $"UnitTest {Guid.NewGuid()}" : null, 99senderName: withOptionalData ? $"UnitTest {Guid.NewGuid()}" : null, 137senderName: withOptionalData ? $"UnitTest {Guid.NewGuid()}" : null, 175senderName: withOptionalData ? $"UnitTest {Guid.NewGuid()}" : null,
Microsoft.Build.Tasks.CodeAnalysis (13)
CopyRefAssembly.cs (6)
44var source = Guid.Empty; 54if (source.Equals(Guid.Empty)) 62Guid destination = ExtractMvid(DestinationPath); 64if (!source.Equals(Guid.Empty) && source.Equals(destination)) 99private Guid ExtractMvid(string path)
ManagedCompiler.cs (1)
606return $"Unnamed compilation {Guid.NewGuid()}";
MvidReader.cs (6)
13private static readonly Guid s_empty = Guid.Empty; 15public static Guid ReadAssemblyMvidOrEmpty(Stream stream) 20private static Guid ReadAssemblyMvidOrEmpty(BinaryReader reader) 90private static Guid FindMvidInSections(ushort count, BinaryReader reader) 139private static Guid ReadMvidSection(BinaryReader reader, uint pointerToMvidSection)
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (1)
TestUtilities\DotNetSdkTestBase.cs (1)
211binlogName ??= $"{Guid.NewGuid()}.binlog";
Microsoft.Build.Tasks.Core (35)
ExceptionHandling.cs (2)
346Guid guid = Guid.NewGuid();
FileUtilities.cs (2)
77string pathWithUpperCase = Path.Combine(Path.GetTempPath(), $"CASESENSITIVETEST{Guid.NewGuid():N}"); 195string testFilePath = Path.Combine(directory, $"MSBuild_{Guid.NewGuid():N}_testFile.txt");
ManifestUtil\ComImporter.cs (4)
69Guid tlbid = typeLibAttr.guid; 93Guid clsid = tinfoAttr.guid; 167private ClassInfo GetRegisteredClassInfo(Guid clsid) 205private bool GetRegisteredClassInfo(RegistryKey rootKey, Guid clsid, ref ClassInfo info)
ManifestUtil\FileReference.cs (3)
162internal ComClass(Guid tlbId, Guid clsId, string progId, string threadingModel, string description) 249internal TypeLib(Guid tlbId, Version version, string helpDirectory, int resourceId, int flags)
ManifestUtil\NativeMethods.cs (1)
47public static extern object GetAssemblyIdentityFromFile([In, MarshalAs(UnmanagedType.LPWStr)] string filePath, [In] ref Guid riid);
NativeMethods.cs (18)
52void CreateInstance([MarshalAs(UnmanagedType.IUnknown)] Object pUnkOuter, [In] ref Guid riid, [MarshalAs(UnmanagedType.IUnknown), Out] out Object ppvObj); 99object DefineScope([In] ref Guid rclsid, [In] UInt32 dwCreateFlags, [In] ref Guid riid); 102object OpenScope([In][MarshalAs(UnmanagedType.LPWStr)] string szScope, [In] UInt32 dwOpenFlags, [In] ref Guid riid); 105object OpenScopeOnMemory([In] IntPtr pData, [In] UInt32 cbData, [In] UInt32 dwOpenFlags, [In] ref Guid riid); 296void CreateInstance([MarshalAs(UnmanagedType.IUnknown)] object pUnkOuter, ref Guid riid, [MarshalAs(UnmanagedType.IUnknown), Out] out object ppvObject); 424int Reserved(ref Guid guid, 546internal static Guid GUID_TYPELIB_NAMESPACE = new Guid("{0F21F359-AB84-41E8-9A78-36D110E6D2F9}"); 547internal static Guid GUID_ExportedFromComPlus = new Guid("{90883f05-3d28-11d2-8f17-00a0c9a6186d}"); 549internal static Guid IID_IUnknown = new Guid("{00000000-0000-0000-C000-000000000046}"); 550internal static Guid IID_IDispatch = new Guid("{00020400-0000-0000-C000-000000000046}"); 551internal static Guid IID_ITypeInfo = new Guid("{00020401-0000-0000-C000-000000000046}"); 552internal static Guid IID_IEnumVariant = new Guid("{00020404-0000-0000-C000-000000000046}"); 553internal static Guid IID_IDispatchEx = new Guid("{A6EF9860-C720-11D0-9337-00A0C90DCAA9}"); 555internal static Guid IID_StdOle = new Guid("{00020430-0000-0000-C000-000000000046}"); 888[In] ref Guid guid, 906internal static extern object LoadRegTypeLib([In] ref Guid clsid, [In] short majorVersion, [In] short minorVersion, [In] int lcid); 913internal static extern string QueryPathOfRegTypeLib([In] ref Guid clsid, [In] short majorVersion, [In] short minorVersion, [In] int lcid);
PrintLineDebuggerWriters.cs (1)
32var errorFile = Path.Combine(LogFileRoot, $"LoggingException_{Guid.NewGuid()}");
ResolveProjectBase.cs (1)
65if (!Guid.TryParse(attrValue, out _))
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (1)
689string fileNameInBinlog = $"{Guid.NewGuid()}-{_taskName}-compilation-file.tmp";
TempFileUtilities.cs (2)
85string temporaryDirectory = Path.Combine(TempFileDirectory, $"Temporary{Guid.NewGuid():N}", subfolder ?? string.Empty); 181fileName = $"tmp{Guid.NewGuid():N}";
Microsoft.Build.Tasks.UnitTests (16)
AssemblyDependency\ResolveAssemblyReferenceCacheSerialization.cs (1)
28_rarCacheFile = Path.Combine(tempPath, Guid.NewGuid() + ".UnitTest.RarCache");
AssemblyDependency\ResolveAssemblyReferenceTestFixture.cs (2)
2990string redistListPath = Path.Combine(tempPath, Guid.NewGuid() + ".xml"); 2991string rarCacheFile = Path.Combine(tempPath, Guid.NewGuid() + ".RarCache");
Copy_Tests.cs (1)
1914string sourceFileEscaped = Path.GetTempPath() + "a%253A_" + Guid.NewGuid().ToString("N") + ".txt";
FileStateTests.cs (6)
366string file = Guid.NewGuid().ToString("N"); 376string file = Guid.NewGuid().ToString("N"); 384string file = Guid.NewGuid().ToString("N"); // presumably doesn't exist 394string file = Guid.NewGuid().ToString("N"); // presumably doesn't exist 402string file = Guid.NewGuid().ToString("N"); // presumably doesn't exist 410string file = Guid.NewGuid().ToString("N") + "\\x"; // presumably doesn't exist
NativeMethodsShared_Tests.cs (1)
125nonexistentDirectory = $"{Path.Combine(currentDirectory, "foo", "bar", "baz")}{Guid.NewGuid()}";
WriteLinesToFile_Tests.cs (2)
37File = new TaskItem("c:\\" + Guid.NewGuid().ToString()), 301var file = Path.Combine(directory.Path, $"{Guid.NewGuid().ToString("N")}.tmp");
XslTransformation_Tests.cs (2)
950var otherXmlPath = new TaskItem(Path.Combine(dir, Guid.NewGuid().ToString())); 1051var otherXslPath = new TaskItem(Path.Combine(dir, Guid.NewGuid().ToString() + ".xslt"));
ZipDirectory_Tests.cs (1)
133SourceDirectory = new TaskItem(Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString("N")))
Microsoft.Build.UnitTests.Shared (5)
EngineTestEnvironment.cs (1)
198string binaryLoggerFilePath = Path.GetFullPath(Path.Combine(TestRoot, Guid.NewGuid().ToString() + ".binlog"));
ObjectModelHelpers.cs (4)
738Guid guid = Guid.NewGuid(); 843s_tempProjectDir = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString("N")); 1629return Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());
Microsoft.Build.Utilities.Core (8)
ExceptionHandling.cs (2)
346Guid guid = Guid.NewGuid();
FileUtilities.cs (2)
77string pathWithUpperCase = Path.Combine(Path.GetTempPath(), $"CASESENSITIVETEST{Guid.NewGuid():N}"); 195string testFilePath = Path.Combine(directory, $"MSBuild_{Guid.NewGuid():N}_testFile.txt");
LockCheck.cs (1)
148private static readonly int RM_SESSION_KEY_LEN = Guid.Empty.ToByteArray().Length; // 16-byte
PrintLineDebuggerWriters.cs (1)
32var errorFile = Path.Combine(LogFileRoot, $"LoggingException_{Guid.NewGuid()}");
TempFileUtilities.cs (2)
85string temporaryDirectory = Path.Combine(TempFileDirectory, $"Temporary{Guid.NewGuid():N}", subfolder ?? string.Empty); 181fileName = $"tmp{Guid.NewGuid():N}";
Microsoft.Build.Utilities.UnitTests (1)
NativeMethodsShared_Tests.cs (1)
125nonexistentDirectory = $"{Path.Combine(currentDirectory, "foo", "bar", "baz")}{Guid.NewGuid()}";
Microsoft.CodeAnalysis (130)
AssemblyUtilitiesCore.cs (2)
27public static Guid ReadMvid(string filePath) 35var fileMvid = metadataReader.GetGuid(mvidHandle);
CommandLine\CommonCompiler.CompilerEmitStreamProvider.cs (1)
81var newFilePath = Path.Combine(Path.GetDirectoryName(_filePath)!, Guid.NewGuid().ToString() + "_" + Path.GetFileName(_filePath));
Compilation.EmitStream.cs (1)
147tempFilePath = Path.Combine(tempDir, Guid.NewGuid().ToString("N"));
Compilation\Compilation.cs (5)
2203Guid moduleVersionId = default(Guid)) 2563internal abstract Guid DebugSourceDocumentLanguageId { get; } 3453var encId = Guid.NewGuid();
Compilation\DeterministicKeyBuilder.cs (2)
195internal static string GetGuidValue(in Guid guid) => guid.ToString("D"); 485writer.Write("nondeterministicMvid", GetGuidValue(Guid.NewGuid()));
DiagnosticAnalyzer\AnalyzerImageReference.cs (1)
34_id = Guid.NewGuid().ToString();
DiagnosticAnalyzer\ShadowCopyAnalyzerPathResolver.cs (1)
82var shadowDirectoryName = Guid.NewGuid().ToString("N").ToLowerInvariant();
DiaSymReader\Metadata\IMetadataImport.cs (2)
61[Out] Guid* mvid); 114[In] ref Guid scopeInterfaceId,
DiaSymReader\Metadata\MetadataAdapterBase.cs (2)
64int IMetadataImport.GetScopeProps(char* name, int bufferLength, int* nameLength, Guid* mvid) => throw new NotImplementedException(); 67int IMetadataImport.ResolveTypeRef(int typeRef, ref Guid scopeInterfaceId, out object scope, out int typeDef) => throw new NotImplementedException();
DiaSymReader\SymUnmanagedFactory.cs (10)
46private static extern void CreateSymReader32(ref Guid id, [MarshalAs(UnmanagedType.IUnknown)] out object symReader); 50private static extern void CreateSymReaderAmd64(ref Guid id, [MarshalAs(UnmanagedType.IUnknown)] out object symReader); 54private static extern void CreateSymReaderArm64(ref Guid id, [MarshalAs(UnmanagedType.IUnknown)] out object symReader); 58private static extern void CreateSymWriter32(ref Guid id, [MarshalAs(UnmanagedType.IUnknown)] out object symWriter); 62private static extern void CreateSymWriterAmd64(ref Guid id, [MarshalAs(UnmanagedType.IUnknown)] out object symWriter); 66private static extern void CreateSymWriterArm64(ref Guid id, [MarshalAs(UnmanagedType.IUnknown)] out object symWriter); 77private delegate void NativeFactory(ref Guid id, [MarshalAs(UnmanagedType.IUnknown)] out object instance); 112private static object TryLoadFromAlternativePath(Guid clsid, string factoryName) 153private static Type GetComTypeType(ref Type lazyType, Guid clsid) 172var clsid = new Guid(createReader ? SymReaderClsid : SymWriterClsid);
DiaSymReader\Writer\ISymUnmanagedDocumentWriter.cs (1)
19void SetCheckSum(Guid algorithmId, uint checkSumSize, byte* checkSum);
DiaSymReader\Writer\ISymUnmanagedWriter.cs (4)
34ISymUnmanagedDocumentWriter DefineDocument(string url, ref Guid language, ref Guid languageVendor, ref Guid documentType); 133void UpdateSignature(Guid pdbId, uint stamp, int age);
DiaSymReader\Writer\SymUnmanagedWriter.cs (6)
52public abstract int DefineDocument(string name, Guid language, Guid vendor, Guid type, Guid algorithmId, ReadOnlySpan<byte> checksum, ReadOnlySpan<byte> source); 161public abstract void UpdateSignature(Guid guid, uint stamp, int age); 168public abstract void GetSignature(out Guid guid, out uint stamp, out int age);
DiaSymReader\Writer\SymUnmanagedWriterImpl.cs (7)
149public override int DefineDocument(string name, Guid language, Guid vendor, Guid type, Guid algorithmId, ReadOnlySpan<byte> checksum, ReadOnlySpan<byte> source) 172if (algorithmId != default(Guid) && checksum.Length > 0) 591public override void UpdateSignature(Guid guid, uint stamp, int age) 712public override unsafe void GetSignature(out Guid guid, out uint stamp, out int age)
DocumentationComments\XmlDocumentationCommentTextReader.XmlStream.cs (2)
40private static readonly string s_rootElementName = "_" + Guid.NewGuid().ToString("N"); 41private static readonly string s_currentElementName = "_" + Guid.NewGuid().ToString("N");
Emit\EditAndContinue\DeltaMetadataWriter.cs (6)
27private readonly Guid _encId; 74Guid encId, 90Debug.Assert(encId != default(Guid)); 169internal EmitBaseline GetDelta(Compilation compilation, Guid encId, MetadataSizes metadataSizes) 304protected override Guid EncId 309protected override Guid EncBaseId
Emit\EditAndContinue\EmitBaseline.cs (5)
215internal readonly Guid ModuleVersionId; 228internal readonly Guid EncId; 293Guid moduleVersionId, 295Guid encId, 395Guid encId,
Emit\ErrorType.cs (2)
27private static readonly string s_name = "Error" + Guid.NewGuid().ToString("B"); 216name: "Error" + Guid.NewGuid().ToString("B"),
Emit\ModulePropertiesForSerialization.cs (2)
43public readonly Guid PersistentIdentifier; 117Guid persistentIdentifier,
InternalUtilities\FatalError.cs (1)
229private static readonly object s_reportedMarker = Guid.NewGuid();
InternalUtilities\FileLockCheck.cs (1)
153char* key = stackalloc char[sizeof(Guid) * 2 + 1];
Interop\ClrStrongName.cs (7)
19[MarshalAs(UnmanagedType.LPStruct)] Guid clsid, 20[MarshalAs(UnmanagedType.LPStruct)] Guid riid); 24var metaHostClsid = new Guid(unchecked((int)0x9280188D), 0xE8E, 0x4867, 0xB3, 0xC, 0x7F, 0xA8, 0x38, 0x84, 0xE8, 0xDE); 25var metaHostGuid = new Guid(unchecked((int)0xD332DB9E), unchecked((short)0xB9B3), 0x4125, 0x82, 0x07, 0xA1, 0x48, 0x84, 0xF5, 0x32, 0x16); 26var clrStrongNameClsid = new Guid(unchecked((int)0xB79B0ACD), unchecked((short)0xF5CD), 0x409b, 0xB5, 0xA5, 0xA1, 0x62, 0x44, 0x61, 0x0B, 0x92); 27var clrRuntimeInfoGuid = new Guid(unchecked((int)0xBD39D1D2), unchecked((short)0xBA2F), 0x486A, 0x89, 0xB0, 0xB4, 0xB0, 0xCB, 0x46, 0x68, 0x91); 28var clrStrongNameGuid = new Guid(unchecked((int)0x9FD93CCF), 0x3280, 0x4391, 0xB3, 0xA9, 0x96, 0xE1, 0xCD, 0xE7, 0x7C, 0x8D);
Interop\IClrMetaHost.cs (2)
22[In, MarshalAs(UnmanagedType.LPStruct)] Guid interfaceId); 44[In, MarshalAs(UnmanagedType.LPStruct)] Guid interfaceId);
Interop\IClrRuntimeInfo.cs (2)
47[In, MarshalAs(UnmanagedType.LPStruct)] Guid coClassId, 48[In, MarshalAs(UnmanagedType.LPStruct)] Guid interfaceId);
MetadataReader\MetadataReaderExtensions.cs (1)
88internal static Guid GetModuleVersionIdOrThrow(this MetadataReader reader)
MetadataReader\PEModule.cs (1)
366internal Guid GetModuleVersionIdOrThrow()
MetadataReference\ModuleMetadata.cs (1)
337public Guid GetModuleVersionId()
NativePdbWriter\PdbWriter.cs (2)
573_symWriter.GetSignature(out Guid guid, out uint stamp, out int age); 602Guid algorithmId;
PEWriter\DebugSourceDocument.cs (12)
16internal static readonly Guid CorSymLanguageTypeCSharp = new Guid("{3f5162f8-07c6-11d3-9053-00c04fa302a1}"); 17internal static readonly Guid CorSymLanguageTypeBasic = new Guid("{3a12d0b8-c26c-11d0-b442-00a0244a1dd2}"); 18private static readonly Guid s_corSymLanguageVendorMicrosoft = new Guid("{994b45c4-e6e9-11d2-903f-00c04fa302a1}"); 19private static readonly Guid s_corSymDocumentTypeText = new Guid("{5a869d0b-6611-11d3-bd2a-0000f80849bd}"); 22private readonly Guid _language; 26public DebugSourceDocument(string location, Guid language) 37public DebugSourceDocument(string location, Guid language, Func<DebugSourceInfo> sourceInfo) 47public DebugSourceDocument(string location, Guid language, ImmutableArray<byte> checksum, Guid algorithm) 53public Guid DocumentType 58public Guid Language 63public Guid LanguageVendor
PEWriter\DebugSourceInfo.cs (2)
20public readonly Guid ChecksumAlgorithmId; 42Guid checksumAlgorithmId,
PEWriter\FullMetadataWriter.cs (4)
118protected override Guid EncId 120get { return Guid.Empty; } 123protected override Guid EncBaseId 125get { return Guid.Empty; }
PEWriter\MetadataWriter.cs (6)
158protected abstract Guid EncId { get; } 164protected abstract Guid EncBaseId { get; } 1707Debug.Assert(module.SerializationProperties.PersistentIdentifier != default(Guid)); 2713Guid mvid = this.module.SerializationProperties.PersistentIdentifier; 2714if (mvid != default(Guid)) 3318Debug.Assert(guidStringLength == default(Guid).ToString().Length);
PEWriter\MetadataWriter.DynamicAnalysis.cs (4)
37private readonly Dictionary<Guid, GuidHandle> _guids; 54_guids = new Dictionary<Guid, GuidHandle>(documentCountEstimate); 101private GuidHandle GetOrAddGuid(Guid guid) 103if (guid == Guid.Empty)
PEWriter\PeWriter.cs (2)
107Debug.Assert(properties.PersistentIdentifier == default(Guid)); 335private static void PatchModuleVersionIds(Blob guidFixup, Blob guidSectionFixup, Blob stringFixup, Guid mvid)
SourceGeneration\GeneratorTimerExtensions.cs (2)
20var id = Guid.NewGuid().ToString(); 34var id = Guid.NewGuid().ToString();
src\Dependencies\CodeAnalysis.Debugging\PortableCustomDebugInfoKinds.cs (14)
11public static readonly Guid AsyncMethodSteppingInformationBlob = new("54FD2AC5-E925-401A-9C2A-F94F171072F8"); 12public static readonly Guid StateMachineHoistedLocalScopes = new("6DA9A61E-F8C7-4874-BE62-68BC5630DF71"); 13public static readonly Guid DynamicLocalVariables = new("83C563C4-B4F3-47D5-B824-BA5441477EA8"); 14public static readonly Guid TupleElementNames = new("ED9FDF71-8879-4747-8ED3-FE5EDE3CE710"); 15public static readonly Guid DefaultNamespace = new("58b2eab6-209f-4e4e-a22c-b2d0f910c782"); 16public static readonly Guid EncLocalSlotMap = new("755F52A8-91C5-45BE-B4B8-209571E552BD"); 17public static readonly Guid EncLambdaAndClosureMap = new("A643004C-0240-496F-A783-30D64F4979DE"); 18public static readonly Guid EncStateMachineStateMap = new("8B78CD68-2EDE-420B-980B-E15884B8AAA3"); 19public static readonly Guid SourceLink = new("CC110556-A091-4D38-9FEC-25AB9A351A6A"); 20public static readonly Guid EmbeddedSource = new("0E8A571B-6926-466E-B4AD-8AB04611F5FE"); 21public static readonly Guid CompilationMetadataReferences = new("7E4D4708-096E-4C5C-AEDA-CB10BA6A740D"); 22public static readonly Guid CompilationOptions = new("B5FEEC05-8CD0-4A83-96DA-466284BB4BD8"); 23public static readonly Guid TypeDefinitionDocuments = new("932E74BC-DBA9-4478-8D46-0F32A7BAB3D3"); 24public static readonly Guid PrimaryConstructorInformationBlob = new("9D40ACE1-C703-4D0E-BF41-7243060A8FB5");
Text\SourceHashAlgorithms.cs (4)
25private static readonly Guid s_guidSha1 = unchecked(new Guid((int)0xff1816ec, (short)0xaa5e, 0x4d10, 0x87, 0xf7, 0x6f, 0x49, 0x63, 0x83, 0x34, 0x60)); 26private static readonly Guid s_guidSha256 = unchecked(new Guid((int)0x8829d00f, 0x11b8, 0x4213, 0x87, 0x8b, 0x77, 0x0e, 0x85, 0x97, 0xac, 0x16)); 36public static Guid GetAlgorithmGuid(SourceHashAlgorithm algorithm) 44public static SourceHashAlgorithm GetSourceHashAlgorithm(Guid guid)
Microsoft.CodeAnalysis.CodeStyle (24)
src\Analyzers\Core\Analyzers\NamingStyle\NamingStyleDiagnosticAnalyzerBase.cs (3)
47var idToCachedResult = new ConcurrentDictionary<Guid, ConcurrentDictionary<string, string?>>( 106private static readonly Func<Guid, ConcurrentDictionary<string, string?>> s_createCache = 114ConcurrentDictionary<Guid, ConcurrentDictionary<string, string?>> idToCachedResult)
src\Compilers\Core\Portable\InternalUtilities\FatalError.cs (1)
229private static readonly object s_reportedMarker = Guid.NewGuid();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_NamingStyle.cs (1)
64id: Guid.NewGuid(),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_SymbolSpec.cs (1)
63id: Guid.NewGuid(),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (3)
27public Guid ID { get; init; } 45Guid id, 474id: Guid.Parse(namingStyleElement.Attribute(nameof(ID)).Value),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (4)
59var referencedElements = new HashSet<Guid>(); 119private static ImmutableDictionary<Guid, string> AssignNamesToNamingStyleElements( 124var builder = ImmutableDictionary.CreateBuilder<Guid, string>(); 170private static ImmutableDictionary<NamingRule, string> AssignNamesToNamingStyleRules(ImmutableArray<NamingRule> namingRules, ImmutableDictionary<Guid, string> serializedNameMap)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SerializableNamingRule.cs (4)
16public Guid SymbolSpecificationID { get; init; } 19public Guid NamingStyleID { get; init; } 39NamingStyleID = Guid.Parse(namingRuleElement.Attribute(nameof(NamingStyleID))!.Value), 40SymbolSpecificationID = Guid.Parse(namingRuleElement.Attribute(nameof(SymbolSpecificationID))!.Value)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (4)
29Guid id, 38public Guid ID { get; } = id; 62id: Guid.NewGuid(), 284id: Guid.Parse(symbolSpecificationElement.Attribute(nameof(ID)).Value),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
144public Guid ReadGuid()
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (2)
161public Guid Guid; 169public void WriteGuid(Guid guid)
Microsoft.CodeAnalysis.CodeStyle.Fixes (13)
src\Analyzers\Core\CodeFixes\Naming\FallbackNamingRules.cs (13)
22Guid.NewGuid(), 30new NamingStyle(Guid.NewGuid(), capitalizationScheme: Capitalization.CamelCase), 34Guid.NewGuid(), 37new NamingStyle(Guid.NewGuid(), prefix: "_", capitalizationScheme: Capitalization.CamelCase), 41new NamingStyle(Guid.NewGuid(), capitalizationScheme: Capitalization.PascalCase), 62new SymbolSpecification(Guid.NewGuid(), "endswithasync", kinds, accessibilityList: default, modifiers), 63new NamingStyle(Guid.NewGuid(), prefix: "Get", suffix: "Async"), 71new SymbolSpecification(Guid.NewGuid(), "camelcasefields", kinds, accessibilityList: default, modifiers: default), 72new NamingStyle(Guid.NewGuid(), capitalizationScheme: Capitalization.CamelCase), 81new SymbolSpecification(Guid.NewGuid(), "endswithasynct", kinds, accessibilityList: default, modifiers), 82new NamingStyle(Guid.NewGuid(), suffix: "Async"), 90new SymbolSpecification(Guid.NewGuid(), "startswithget", kinds, accessibilityList: default, modifiers: default), 91new NamingStyle(Guid.NewGuid(), prefix: "Get"),
Microsoft.CodeAnalysis.CodeStyle.UnitTestUtilities (42)
src\Features\DiagnosticsTestUtilities\NamingStyles\NamingStylesTestOptionSets.cs (42)
134Guid.NewGuid(), 141Guid.NewGuid(), 164Guid.NewGuid(), 171Guid.NewGuid(), 196Guid.NewGuid(), 203Guid.NewGuid(), 228Guid.NewGuid(), 235Guid.NewGuid(), 260Guid.NewGuid(), 267Guid.NewGuid(), 298Guid.NewGuid(), 305Guid.NewGuid(), 329Guid.NewGuid(), 336Guid.NewGuid(), 360Guid.NewGuid(), 367Guid.NewGuid(), 391Guid.NewGuid(), 398Guid.NewGuid(), 422Guid.NewGuid(), 429Guid.NewGuid(), 454Guid.NewGuid(), 461Guid.NewGuid(), 486Guid.NewGuid(), 493Guid.NewGuid(), 518Guid.NewGuid(), 525Guid.NewGuid(), 550Guid.NewGuid(), 557Guid.NewGuid(), 582Guid.NewGuid(), 589Guid.NewGuid(), 614Guid.NewGuid(), 621Guid.NewGuid(), 646Guid.NewGuid(), 653Guid.NewGuid(), 678Guid.NewGuid(), 688Guid.NewGuid(), 713Guid.NewGuid(), 720Guid.NewGuid(), 727Guid.NewGuid(), 735Guid.NewGuid(), 767Guid.NewGuid(), 777Guid.NewGuid(),
Microsoft.CodeAnalysis.CSharp (19)
Binder\Binder_Expressions.cs (1)
7050guidString = System.Guid.Empty.ToString("D");
CommandLine\CSharpCommandLineParser.cs (2)
500Guid sqmSessionGuid; 501if (!Guid.TryParse(value, out sqmSessionGuid))
Compilation\CSharpCompilation.cs (5)
1520: new MissingNamespaceSymbol(new MissingModuleSymbol(new MissingAssemblySymbol(new AssemblyIdentity(System.Guid.NewGuid().ToString())), ordinal: -1)); 3859var guid = Guid.Parse(checksumDirective.Guid.ValueText); 3877Guid.Parse(checksumDirective.Guid.ValueText)); 3923internal override Guid DebugSourceDocumentLanguageId => Cci.DebugSourceDocument.CorSymLanguageTypeCSharp;
Parser\DirectiveParser.cs (2)
646Guid tmp; 647if (!Guid.TryParse(guid.ValueText, out tmp))
Symbols\Attributes\AttributeData.cs (2)
628Guid guid; 629if (!Guid.TryParseExact(guidString, "D", out guid))
Symbols\Metadata\PE\MetadataDecoder.cs (7)
340Guid interfaceGuidValue = new Guid(); 342Guid scopeGuidValue = new Guid(); 347haveInterfaceGuidValue = Guid.TryParse(interfaceGuid, out interfaceGuidValue); 359haveScopeGuidValue = Guid.TryParse(scope, out scopeGuidValue); 392Guid candidateGuidValue = new Guid(); 406haveCandidateGuidValue = Guid.TryParse(candidateGuid, out candidateGuidValue); 453haveCandidateGuidValue = Guid.TryParse(candidateGuid, out candidateGuidValue);
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (4)
CommandLineTests.cs (4)
6033var nameGuid = Guid.NewGuid().ToString(); 8871var mvid = ReadMvid(new MemoryStream(bytes)); 8927private static Guid ReadMvid(Stream stream) 14234var path = Path.Combine(dir.Path, Guid.NewGuid().ToString() + ".dll");
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (8)
Completion\CompletionProviders\DeclarationNameCompletionProviderTests.cs (8)
2956Guid.NewGuid(), 2961Guid.NewGuid(), 2990Guid.NewGuid(), 2997Guid.NewGuid(), 3012id: Guid.NewGuid(), 3018id: Guid.NewGuid(), 3025Guid.NewGuid(), 3032Guid.NewGuid(),
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (40)
CodeGen\CodeGenFunctionPointersTests.cs (1)
12599private static readonly Guid s_guid = new Guid("97F4DBD4-F6D1-4FAD-91B3-1001F92068E5");
Emit\CompilationEmitTests.cs (13)
606public static readonly Guid s_mvid = Guid.Parse("a78fa2c3-854e-42bf-8b8d-75a450a6dc18"); 662var mvid = BuildTasks.MvidReader.ReadAssemblyMvidOrEmpty(peStream); 677Guid mvidFromModuleDefinition = metadataReader.GetGuid(metadataReader.GetModuleDefinition().Mvid); 680var mvidFromMvidReader = BuildTasks.MvidReader.ReadAssemblyMvidOrEmpty(stream); 682Assert.NotEqual(Guid.Empty, mvidFromModuleDefinition); 689Assert.Equal(Guid.Empty, mvidFromMvidReader); 1221var mvid1 = BuildTasks.MvidReader.ReadAssemblyMvidOrEmpty(image1); 1222var mvid2 = BuildTasks.MvidReader.ReadAssemblyMvidOrEmpty(image2); 1226Assert.NotEqual(Guid.Empty, mvid1); 1231Assert.Equal(Guid.Empty, mvid1); 1232Assert.Equal(Guid.Empty, mvid2); 4610var c1 = CreateCompilation(p1, options: TestOptions.ReleaseDll, assemblyName: Guid.NewGuid().ToString());
Emit\DeterministicTests.cs (18)
29private Guid CompiledGuid(string source, string assemblyName, bool debug, Platform platform = Platform.AnyCpu) 34private Guid CompiledGuid(string source, string assemblyName, CSharpCompilationOptions options, EmitOptions emitOptions = null, Platform platform = Platform.AnyCpu) 41Guid result = default(Guid); 100var mvid1 = CompiledGuid(source, "X1", false); 101var mvid2 = CompiledGuid(source, "X1", false); 105var mvid3 = CompiledGuid(source, "X2", false); 109var mvid5 = CompiledGuid(source, "X1", true); 110var mvid6 = CompiledGuid(source, "X1", true); 114var mvid7 = CompiledGuid(source, "X2", true); 131var mvid1 = CompiledGuid(source, "X1", false, Platform.X86); 132var mvid2 = CompiledGuid(source, "X1", false, Platform.X86); 135var mvid3 = CompiledGuid(source, "X1", false, Platform.X64); 136var mvid4 = CompiledGuid(source, "X1", false, Platform.X64); 139var mvid5 = CompiledGuid(source, "X1", false, Platform.Arm64); 140var mvid6 = CompiledGuid(source, "X1", false, Platform.Arm64); 175var mvid1 = CompiledGuid(source.Replace("CHANGE", ""), "X1", TestOptions.DebugDll, emitRefAssembly); 176var mvid2 = CompiledGuid(source.Replace("CHANGE", "private void M() { }"), "X1", TestOptions.DebugDll, emitRefAssembly);
Emit\DynamicAnalysis\DynamicAnalysisResourceTests.cs (2)
1071var sha1 = new Guid("ff1816ec-aa5e-4d10-87f7-6f4963833460"); 1077let hashAlg = (hashAlgGuid == sha1) ? " (SHA1)" : (hashAlgGuid == default(Guid)) ? "" : " " + hashAlgGuid.ToString()
src\Compilers\Core\MSBuildTask\MvidReader.cs (6)
13private static readonly Guid s_empty = Guid.Empty; 15public static Guid ReadAssemblyMvidOrEmpty(Stream stream) 20private static Guid ReadAssemblyMvidOrEmpty(BinaryReader reader) 90private static Guid FindMvidInSections(ushort count, BinaryReader reader) 139private static Guid ReadMvidSection(BinaryReader reader, uint pointerToMvidSection)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (8)
Emit\LocalStateTracing\LocalStateTracingTests.cs (2)
1307private struct S3 { System.DateTime X; System.Guid Y; decimal Z; unsafe void* P; } 1317yield return new object[] { "", "System.Guid", "'[System.Runtime]System.Guid'", Unsafe.SizeOf<Guid>() };
src\Compilers\Core\MSBuildTask\MvidReader.cs (6)
13private static readonly Guid s_empty = Guid.Empty; 15public static Guid ReadAssemblyMvidOrEmpty(Stream stream) 20private static Guid ReadAssemblyMvidOrEmpty(BinaryReader reader) 90private static Guid FindMvidInSections(ushort count, BinaryReader reader) 139private static Guid ReadMvidSection(BinaryReader reader, uint pointerToMvidSection)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (10)
Attributes\AttributeTests_Assembly.cs (3)
401string assemblyNameBase = Guid.NewGuid().ToString(); 937Guid guidData = default(Guid),
Attributes\AttributeTests_Conditional.cs (1)
479var comp1 = CreateCompilation(source1, assemblyName: Guid.NewGuid().ToString());
src\Compilers\Core\MSBuildTask\MvidReader.cs (6)
13private static readonly Guid s_empty = Guid.Empty; 15public static Guid ReadAssemblyMvidOrEmpty(Stream stream) 20private static Guid ReadAssemblyMvidOrEmpty(BinaryReader reader) 90private static Guid FindMvidInSections(ushort count, BinaryReader reader) 139private static Guid ReadMvidSection(BinaryReader reader, uint pointerToMvidSection)
Microsoft.CodeAnalysis.CSharp.EndToEnd.UnitTests (6)
src\Compilers\Core\MSBuildTask\MvidReader.cs (6)
13private static readonly Guid s_empty = Guid.Empty; 15public static Guid ReadAssemblyMvidOrEmpty(Stream stream) 20private static Guid ReadAssemblyMvidOrEmpty(BinaryReader reader) 90private static Guid FindMvidInSections(ushort count, BinaryReader reader) 139private static Guid ReadMvidSection(BinaryReader reader, uint pointerToMvidSection)
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (8)
ConvertAutoPropertyToFullProperty\ConvertAutoPropertyToFullPropertyTests_OptionSets.cs (6)
75Guid.NewGuid(), 82Guid.NewGuid(), 107Guid.NewGuid(), 114Guid.NewGuid(), 139Guid.NewGuid(), 146Guid.NewGuid(),
ConvertTupleToStruct\ConvertTupleToStructTests.cs (2)
384Guid.NewGuid(), 391Guid.NewGuid(),
Microsoft.CodeAnalysis.CSharp.Scripting.Desktop.UnitTests (24)
InteractiveSessionReferencesTests.cs (24)
594string libBaseName = "LibBase_" + Guid.NewGuid(); 595string lib1Name = "Lib1_" + Guid.NewGuid(); 596string lib2Name = "Lib2_" + Guid.NewGuid(); 652string libBaseName = "LibBase_" + Guid.NewGuid(); 653string lib1Name = "Lib1_" + Guid.NewGuid(); 654string lib2Name = "Lib2_" + Guid.NewGuid(); 710string libBaseName = "LibBase_" + Guid.NewGuid(); 711string lib1Name = "Lib1_" + Guid.NewGuid(); 712string lib2Name = "Lib2_" + Guid.NewGuid(); 776string libBaseName = "LibBase_" + Guid.NewGuid(); 777string lib1Name = "Lib1_" + Guid.NewGuid(); 778string lib2Name = "Lib2_" + Guid.NewGuid(); 844string libBaseName = "LibBase_" + Guid.NewGuid(); 845string lib1Name = "Lib1_" + Guid.NewGuid(); 846string lib2Name = "Lib2_" + Guid.NewGuid(); 912string libBaseName = "LibBase_" + Guid.NewGuid(); 913string lib1Name = "Lib1_" + Guid.NewGuid(); 914string lib2Name = "Lib2_" + Guid.NewGuid(); 980string libBaseName = "LibBase_" + Guid.NewGuid(); 981string lib1Name = "Lib1_" + Guid.NewGuid(); 982string lib2Name = "Lib2_" + Guid.NewGuid(); 1048string libBaseName = "LibBase_" + Guid.NewGuid(); 1049string lib1Name = "Lib1_" + Guid.NewGuid(); 1050string lib2Name = "Lib2_" + Guid.NewGuid();
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (7)
CommandLineRunnerTests.cs (3)
789string libBaseName = "LibBase_" + Guid.NewGuid(); 790string lib1Name = "Lib1_" + Guid.NewGuid(); 791string lib2Name = "Lib2_" + Guid.NewGuid();
InteractiveSessionTests.cs (4)
1272string mainName = "Main_" + Guid.NewGuid(); 1273string libName = "Lib_" + Guid.NewGuid(); 1302string mainName = "Main_" + Guid.NewGuid(); 1303string libName = "Lib_" + Guid.NewGuid();
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (4)
Semantics\ColorColorTests.cs (4)
1580var comp1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, assemblyName: System.Guid.NewGuid().ToString()); 1621var comp1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, assemblyName: System.Guid.NewGuid().ToString()); 1659var comp1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, assemblyName: System.Guid.NewGuid().ToString()); 1700var comp1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, assemblyName: System.Guid.NewGuid().ToString());
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\ExtensionMethodTests.cs (1)
3102var libCompilation = CreateCompilationWithMscorlib40AndSystemCore(lib, assemblyName: Guid.NewGuid().ToString());
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (3)
LexicalAndXml\PreprocessorTests.cs (3)
4126var guid = "{" + Guid.Empty + "}"; 4144var guid = "{" + Guid.Empty + "}"; 4194var guid = Guid.Empty.ToString();
Microsoft.CodeAnalysis.Debugging.Package (14)
PortableCustomDebugInfoKinds.cs (14)
11public static readonly Guid AsyncMethodSteppingInformationBlob = new("54FD2AC5-E925-401A-9C2A-F94F171072F8"); 12public static readonly Guid StateMachineHoistedLocalScopes = new("6DA9A61E-F8C7-4874-BE62-68BC5630DF71"); 13public static readonly Guid DynamicLocalVariables = new("83C563C4-B4F3-47D5-B824-BA5441477EA8"); 14public static readonly Guid TupleElementNames = new("ED9FDF71-8879-4747-8ED3-FE5EDE3CE710"); 15public static readonly Guid DefaultNamespace = new("58b2eab6-209f-4e4e-a22c-b2d0f910c782"); 16public static readonly Guid EncLocalSlotMap = new("755F52A8-91C5-45BE-B4B8-209571E552BD"); 17public static readonly Guid EncLambdaAndClosureMap = new("A643004C-0240-496F-A783-30D64F4979DE"); 18public static readonly Guid EncStateMachineStateMap = new("8B78CD68-2EDE-420B-980B-E15884B8AAA3"); 19public static readonly Guid SourceLink = new("CC110556-A091-4D38-9FEC-25AB9A351A6A"); 20public static readonly Guid EmbeddedSource = new("0E8A571B-6926-466E-B4AD-8AB04611F5FE"); 21public static readonly Guid CompilationMetadataReferences = new("7E4D4708-096E-4C5C-AEDA-CB10BA6A740D"); 22public static readonly Guid CompilationOptions = new("B5FEEC05-8CD0-4A83-96DA-466284BB4BD8"); 23public static readonly Guid TypeDefinitionDocuments = new("932E74BC-DBA9-4478-8D46-0F32A7BAB3D3"); 24public static readonly Guid PrimaryConstructorInformationBlob = new("9D40ACE1-C703-4D0E-BF41-7243060A8FB5");
Microsoft.CodeAnalysis.EditorFeatures (27)
CodeLens\ICodeLensContext.cs (2)
20Task<ImmutableDictionary<Guid, string>> GetProjectVersionsAsync(ImmutableArray<Guid> projectGuids, CancellationToken cancellationToken);
Copilot\CopilotConstants.cs (2)
23public static readonly Guid CopilotIconMonikerGuid = new("{4515B9BD-70A1-45FA-9545-D4536417C596}"); 24public static readonly Guid CopilotQuotaExceededGuid = new("39B0DEDE-D931-4A92-9AA2-3447BC4998DC");
EditAndContinue\Contracts\ManagedHotReloadServiceBridge.cs (2)
19public async ValueTask<InternalContracts.ManagedHotReloadAvailability> GetAvailabilityAsync(Guid module, CancellationToken cancellation) 25public ValueTask PrepareModuleForUpdateAsync(Guid module, CancellationToken cancellation)
EditorConfigSettings\Updater\NamingStyles\EditorConfigNamingStylesExtensions.cs (2)
69Guid.NewGuid(), 78Guid.NewGuid(),
Lightup\ISmartRenameSessionWrapper.cs (4)
32private static readonly Func<object, Guid> s_correlationIdAccessor; 56s_correlationIdAccessor = LightupHelpers.CreatePropertyAccessor<object, Guid>(s_wrappedType, nameof(CorrelationId), Guid.Empty); 98public Guid CorrelationId => s_correlationIdAccessor(_instance);
Preview\AbstractPreviewFactoryService.cs (1)
666buffer, Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString(), document.Name));
Preview\DifferenceViewerPreview.cs (3)
107public int QueryStatus(ref Guid pguidCmdGroup, uint cCmds, OLECMD[] prgCmds, IntPtr pCmdText) 118public int Exec(ref Guid pguidCmdGroup, uint nCmdID, uint nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) 188private static bool IsCommandAllowed(Guid cmdGuid, uint cmdId)
Preview\DifferenceViewerPreview.NavigationalCommandTarget.cs (2)
20public int QueryStatus(ref Guid pguidCmdGroup, uint cCmds, OLECMD[] prgCmds, IntPtr pCmdText) 31public int Exec(ref Guid pguidCmdGroup, uint nCmdID, uint nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
Shared\Extensions\GlyphExtensions.cs (2)
17private static readonly Guid s_imageCatalogGuid = Guid.Parse("ae27a6b0-e345-4288-96df-5eaf394ee369");
Suggestions\SuggestedActions\AbstractFixAllSuggestedAction.cs (1)
46public override bool TryGetTelemetryId(out Guid telemetryId)
Suggestions\SuggestedActions\SuggestedAction.cs (2)
71public virtual bool TryGetTelemetryId(out Guid telemetryId) 200if (TryGetTelemetryId(out var telemetryId))
Suggestions\SuggestedActionsSource.cs (1)
60public bool TryGetTelemetryId(out Guid telemetryId)
Suggestions\SuggestedActionsSourceProvider.cs (3)
45private static readonly Guid s_CSharpSourceGuid = new Guid("b967fea8-e2c3-4984-87d4-71a38f49e16a"); 46private static readonly Guid s_visualBasicSourceGuid = new Guid("4de30e93-3e0c-40c2-a4ba-1124da4539f6"); 47private static readonly Guid s_xamlSourceGuid = new Guid("a0572245-2eab-4c39-9f61-06a6d8c5ddda");
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (31)
BlindAggregatorFactory.cs (5)
75private unsafe delegate int QueryInterfaceDelegateType(BlindAggregator* pThis, [In] ref Guid riid, out IntPtr pvObject); 131private static readonly Guid s_IUnknownInterfaceGuid = new Guid(0x00000000, 0x0000, 0x0000, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46); 134private static readonly Guid s_IMarshalInterfaceGuid = new Guid(0x00000003, 0x0000, 0x0000, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46); 137private static readonly Guid s_IComWrapperGuid = new Guid("CBD71F2C-6BC5-4932-B851-B93EB3151386"); 139private static unsafe int QueryInterface(BlindAggregator* pThis, [In] ref Guid riid, out IntPtr pvObject)
EditAndContinue\MockManagedHotReloadService.cs (2)
28public ValueTask<ManagedHotReloadAvailability> GetAvailabilityAsync(Guid module, CancellationToken cancellation) 34public ValueTask PrepareModuleForUpdateAsync(Guid module, CancellationToken cancellation)
QuickInfo\ToolTipAssert.cs (2)
230private static string GetKnownImageGuid(Guid guid) 237var value = field.GetValue(null) as Guid?;
StubLocalRegistry.cs (20)
14int ILocalRegistry.CreateInstance(Guid clsid, object punkOuter, ref Guid riid, uint dwFlags, out IntPtr ppvObj) 19int ILocalRegistry.GetTypeLibOfClsid(Guid clsid, out ITypeLib pptLib) 24int ILocalRegistry.GetClassObjectOfClsid(ref Guid clsid, uint dwFlags, IntPtr lpReserved, ref Guid riid, out IntPtr ppvClassObject) 29int ILocalRegistry2.CreateInstance(Guid clsid, object punkOuter, ref Guid riid, uint dwFlags, out IntPtr ppvObj) 34int ILocalRegistry2.GetTypeLibOfClsid(Guid clsid, out ITypeLib pptLib) 39int ILocalRegistry2.GetClassObjectOfClsid(ref Guid clsid, uint dwFlags, IntPtr lpReserved, ref Guid riid, IntPtr ppvClassObject) 49int ILocalRegistry3.CreateInstance(Guid clsid, object punkOuter, ref Guid riid, uint dwFlags, out IntPtr ppvObj) 54int ILocalRegistry3.GetTypeLibOfClsid(Guid clsid, out ITypeLib pptLib) 59int ILocalRegistry3.GetClassObjectOfClsid(ref Guid clsid, uint dwFlags, IntPtr lpReserved, ref Guid riid, IntPtr ppvClassObject) 69int ILocalRegistry3.CreateManagedInstance(string codeBase, string assemblyName, string typeName, ref Guid riid, out IntPtr ppvObj) 74int ILocalRegistry3.GetClassObjectOfManagedClass(string codeBase, string assemblyName, string typeName, ref Guid riid, out IntPtr ppvClassObject) 79int ILocalRegistry4.RegisterClassObject(ref Guid rclsid, out uint pdwCookie) 89int ILocalRegistry4.RegisterInterface(ref Guid riid) 101int ILocalRegistry5.CreateAggregatedManagedInstance(string codeBase, string AssemblyName, string TypeName, IntPtr pUnkOuter, ref Guid riid, out IntPtr ppvObj)
Workspaces\EditorTestWorkspace.cs (2)
40Guid solutionTelemetryId = default, 491filePath = Guid.NewGuid().ToString();
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (5)
CodeFixes\CodeFixServiceTests.cs (2)
490public Guid Guid { get; } = Guid.NewGuid();
EditAndContinue\EditAndContinueLanguageServiceTests.cs (1)
261var moduleId = EmitAndLoadLibraryToDebuggee(projectId, source1, sourceFilePath: sourceFile.Path);
Emit\CompilationOutputsTests.cs (2)
114Assert.NotEqual(Guid.Empty, outputs.ReadAssemblyModuleVersionId()); 124Assert.Equal(Guid.Empty, outputs.ReadAssemblyModuleVersionId());
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (26)
CompileResult.cs (1)
29public abstract Guid GetCustomTypeInfo(out ReadOnlyCollection<byte>? payload);
CustomTypeInfo.cs (2)
16internal static readonly Guid PayloadTypeId = new Guid("108766CE-DF68-46EE-B761-0DCB7AC805F1"); 119Guid payloadTypeId,
DkmUtilities.cs (4)
181var mvid = reader.GetGuid(moduleDef.Mvid); 182var generationId = reader.GetGuid(moduleDef.GenerationId); 230Guid customTypeInfoId = compResult.GetCustomTypeInfo(out customTypeInfo); 248internal static DkmClrCustomTypeInfo? ToCustomTypeInfo(this ReadOnlyCollection<byte>? payload, Guid payloadTypeId)
ExpressionCompiler.cs (1)
496Guid customTypeInfoId = local.GetCustomTypeInfo(out customTypeInfo);
ExpressionCompilerUtilities.cs (1)
13return Guid.NewGuid().ToString("N");
LocalAndMethod.cs (1)
30public abstract Guid GetCustomTypeInfo(out ReadOnlyCollection<byte>? payload);
MetadataBlock.cs (4)
15internal readonly struct MetadataBlock(ModuleId moduleId, Guid generationId, IntPtr pointer, int size) : IEquatable<MetadataBlock> 25internal readonly Guid GenerationId = generationId; 38internal MetadataBlock(Guid moduleId, Guid generationId, IntPtr pointer, int size)
MetadataContextId.cs (2)
15internal readonly Guid ModuleVersionId; 17internal MetadataContextId(Guid moduleVersionId)
MetadataUtilities.cs (2)
33RoslynDebug.Assert(kind == MakeAssemblyReferencesKind.AllAssemblies || moduleId.Id != Guid.Empty); 34RoslynDebug.Assert(moduleId.Id == Guid.Empty || identityComparer != null);
MethodContextReuseConstraints.cs (2)
22Debug.Assert(moduleId.Id != Guid.Empty); 34Debug.Assert(moduleId.Id != Guid.Empty);
ModuleId.cs (2)
10internal readonly struct ModuleId(Guid id, string displayName) 12public Guid Id { get; } = id;
PDB\MethodDebugInfo.Portable.cs (2)
427private static bool TryGetCustomDebugInformation(MetadataReader reader, EntityHandle handle, Guid kind, out CustomDebugInformation customDebugInfo) 434var id = reader.GetGuid(info.Kind);
PseudoVariableUtilities.cs (2)
21internal readonly Guid CustomTypeInfoId; 24internal Alias(DkmClrAliasKind kind, string name, string fullName, string type, Guid customTypeInfoId, ReadOnlyCollection<byte> customTypeInfo)
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (8)
CSharp\CSharpFunctionResolver.cs (1)
28internal override Guid LanguageId => DkmLanguageId.CSharp;
FunctionResolver.cs (2)
146internal sealed override Guid GetLanguageId(DkmRuntimeFunctionResolutionRequest request) 171private static readonly Guid s_messageSourceId = new Guid("ac353c9b-c599-427b-9424-cbe1ad19f81e");
FunctionResolverBase.cs (4)
27internal abstract Guid GetLanguageId(TRequest request); 28internal abstract Guid LanguageId { get; } 143var languageId = GetLanguageId(request); 146return languageId == Guid.Empty ||
VisualBasic\VisualBasicFunctionResolver.cs (1)
28internal override Guid LanguageId => DkmLanguageId.VB;
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver.UnitTests (27)
CSharpFunctionResolverTests.cs (10)
237var unknownId = Guid.Parse("F02FB87B-64EC-486E-B039-D4A97F48858C"); 238var csharpLanguageId = Guid.Parse("3f5162f8-07c6-11d3-9053-00c04fa302a1"); 239var vbLanguageId = Guid.Parse("3a12d0b8-c26c-11d0-b442-00a0244a1dd2"); 240var cppLanguageId = Guid.Parse("3a12d0b7-c26c-11d0-b442-00a0244a1dd2"); 246var requestDefaultId = new Request(null, MemberSignatureParser.Parse("F"), Guid.Empty); 273var requestDefaultId = new Request(null, MemberSignatureParser.Parse("F"), Guid.Empty);
Request.cs (3)
33internal Request(string moduleName, RequestSignature signature, Guid languageId = default(Guid)) 43internal readonly Guid LanguageId;
Resolver.cs (4)
19private readonly Guid _languageId; 27private Resolver(bool ignoreCase, Guid languageId) 91internal override Guid GetLanguageId(Request request) 96internal override Guid LanguageId => _languageId;
VisualBasicFunctionResolverTests.cs (10)
34var unknownId = Guid.Parse("F02FB87B-64EC-486E-B039-D4A97F48858C"); 35var csharpLanguageId = Guid.Parse("3f5162f8-07c6-11d3-9053-00c04fa302a1"); 36var vbLanguageId = Guid.Parse("3a12d0b8-c26c-11d0-b442-00a0244a1dd2"); 37var cppLanguageId = Guid.Parse("3a12d0b7-c26c-11d0-b442-00a0244a1dd2"); 43var requestDefaultId = new Request(null, MemberSignatureParser.Parse("F"), Guid.Empty); 70var requestDefaultId = new Request(null, MemberSignatureParser.Parse("F"), Guid.Empty);
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (3)
src\Compilers\Core\Portable\InternalUtilities\FatalError.cs (1)
229private static readonly object s_reportedMarker = Guid.NewGuid();
src\ExpressionEvaluator\Core\Source\ExpressionCompiler\CustomTypeInfo.cs (2)
16internal static readonly Guid PayloadTypeId = new Guid("108766CE-DF68-46EE-B761-0DCB7AC805F1"); 119Guid payloadTypeId,
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (26)
Debugger\Engine\DkmClrAppDomain.cs (1)
41public DkmClrModuleInstance FindClrModuleInstance(Guid mvid)
Debugger\Engine\DkmClrCustomTypeInfo.cs (3)
22public readonly Guid PayloadTypeId; 25private DkmClrCustomTypeInfo(Guid payloadTypeId, ReadOnlyCollection<byte> payload) 31public static DkmClrCustomTypeInfo Create(Guid payloadTypeId, ReadOnlyCollection<byte> payload)
Debugger\Engine\DkmClrDebuggerVisualizerAttribute.cs (2)
36System.Guid extensionPartId) : 54public readonly System.Guid ExtensionPartId;
Debugger\Engine\DkmClrModuleInstance.cs (3)
38public Guid Mvid 155int IMetadataImport.GetScopeProps(StringBuilder szName, int cchName, out int pchName, out Guid mvid) 180int IMetadataImport.ResolveTypeRef(int tr, ref Guid riid, out object ppIScope)
Debugger\Engine\DkmClrRuntimeInstance.cs (1)
125internal DkmClrModuleInstance FindClrModuleInstance(Guid mvid)
Debugger\Engine\DkmClrType.cs (1)
369extensionPartId: System.Guid.Empty));
Debugger\Engine\DkmCompilerId.cs (4)
18public readonly Guid LanguageId; 19public readonly Guid VendorId; 21public DkmCompilerId(Guid vendorId, Guid languageId)
Debugger\Engine\DkmCustomUIVisualizerInfo.cs (2)
22public Guid ExtensionPartId; 68Guid ExtensionPartId)
Debugger\Engine\DkmDataContainer.cs (2)
19private readonly Dictionary<Guid, object> _dataItems = []; 39Guid key = item.GetType().GUID;
Debugger\Engine\DkmLanguageId.cs (1)
16public static Guid Cpp
Debugger\Engine\DkmVendorId.cs (1)
16public static Guid Microsoft
Debugger\MemberInfo\ModuleImpl.cs (1)
45public override Guid ModuleVersionId
Debugger\MemberInfo\TypeImpl.cs (1)
68public override Guid GUID
src\Compilers\Core\Portable\InternalUtilities\FatalError.cs (1)
229private static readonly object s_reportedMarker = Guid.NewGuid();
src\ExpressionEvaluator\Core\Source\ExpressionCompiler\CustomTypeInfo.cs (2)
16internal static readonly Guid PayloadTypeId = new Guid("108766CE-DF68-46EE-B761-0DCB7AC805F1"); 119Guid payloadTypeId,
Microsoft.CodeAnalysis.ExternalAccess.FSharp (2)
VS\IFSharpWorkspaceProjectContextFactory.cs (2)
61projectGuid: Guid.NewGuid(), 65public FSharpWorkspaceProjectContext CreateProjectContext(string projectUniqueName, string projectFilePath, Guid projectGuid, object? hierarchy, string? binOutputPath)
Microsoft.CodeAnalysis.ExternalAccess.OmniSharp (1)
Workspace\OmniSharpDocumentId.cs (1)
11public static DocumentId CreateFromSerialized(ProjectId projectId, Guid id, bool isSourceGenerated, string? debugName)
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (3)
Cohost\Constants.cs (1)
15public static readonly Guid RazorCohostingUIContext = new Guid("6d5b86dc-6b8a-483b-ae30-098a3c7d6774");
Remote\JsonSerializableDocumentId.cs (2)
14[property: JsonPropertyName("projectId")] Guid ProjectId, 15[property: JsonPropertyName("id")] Guid Id)
Microsoft.CodeAnalysis.Features (129)
CodeLens\CodeLensHelpers.cs (5)
16if (TryGetGuid("RoslynDocumentIdGuid", out var documentIdGuid) && 17TryGetGuid("RoslynProjectIdGuid", out var projectIdGuid)) 25bool TryGetGuid(string key, out Guid guid) 27guid = Guid.Empty; 30Guid.TryParse(guidString, out guid);
CodeLens\ReferenceLocationDescriptor.cs (4)
22Guid projectGuid, 23Guid documentGuid, 76public Guid ProjectGuid { get; } = projectGuid; 79public Guid DocumentGuid { get; } = documentGuid;
Completion\Providers\SymbolCompletionItem.cs (4)
259var projectGuid = Guid.Parse(projectIds.Substring(start, current - start)); 271var projectGuid = Guid.Parse(projectIds.Substring(start, current - start));
Contracts\EditAndContinue\IManagedHotReloadService.cs (2)
42ValueTask<ManagedHotReloadAvailability> GetAvailabilityAsync(Guid module, CancellationToken cancellation); 51ValueTask PrepareModuleForUpdateAsync(Guid module, CancellationToken cancellation);
Contracts\EditAndContinue\ManagedHotReloadUpdate.cs (2)
13Guid module, 27public Guid Module { get; } = module;
Contracts\EditAndContinue\ManagedMethodId.cs (3)
23Guid module, 26public ManagedMethodId(Guid module, int token, int version) 35public Guid Module { get; } = module;
EditAndContinue\CommittedSolution.cs (1)
548if (!debugInfoReader.TryGetDocumentChecksum(sourceFilePath, out checksum, out var algorithmId))
EditAndContinue\DebuggingSession.cs (12)
77private readonly Dictionary<Guid, (IDisposable metadata, IDisposable pdb)> _initialBaselineModuleReaders = []; 90private readonly HashSet<Guid> _modulesPreparedForUpdate = []; 260private bool AddModulePreparedForUpdate(Guid mvid) 273/// The MVID is <see cref="Guid.Empty"/> if either the project is not built, or the MVID can't be read from the module binary. 275internal Task<(Guid Mvid, Diagnostic? Error)> GetProjectModuleIdAsync(Project project, CancellationToken cancellationToken) 281(Guid Mvid, Diagnostic? Error) ReadMvid() 291return (Mvid: Guid.Empty, Error: null); 296return (Mvid: Guid.Empty, Error: Diagnostic.Create(descriptor, Location.None, [outputs.AssemblyDisplayPath, e.Message])); 309Guid moduleId, 353bool TryGetBaselinesContainingModuleVersion(Guid moduleId, [NotNullWhen(true)] out ImmutableList<ProjectBaseline>? baselines) 470if (mvid == Guid.Empty) 920public ImmutableHashSet<Guid> GetModulesPreparedForUpdate()
EditAndContinue\DebuggingSessionTelemetry.cs (4)
13internal sealed class DebuggingSessionTelemetry(Guid solutionSessionId) 17public readonly Guid SolutionSessionId = telemetry._solutionSessionId; 25private readonly Guid _solutionSessionId = solutionSessionId; 157static PiiValue ProjectIdToPii(Guid projectId)
EditAndContinue\EditAndContinueMethodDebugInfoReader.cs (7)
39public abstract bool TryGetDocumentChecksum(string documentPath, out ImmutableArray<byte> checksum, out Guid algorithmId); 108public override bool TryGetDocumentChecksum(string documentPath, out ImmutableArray<byte> checksum, out Guid algorithmId) 127private ImmutableArray<byte> GetCdiBytes(MethodDefinitionHandle methodHandle, Guid kind) 132private static bool TryGetCustomDebugInformation(MetadataReader reader, EntityHandle handle, Guid kind, out CustomDebugInformation customDebugInfo) 139var id = reader.GetGuid(info.Kind); 155public override bool TryGetDocumentChecksum(string documentPath, out ImmutableArray<byte> checksum, out Guid algorithmId) 225internal static bool TryGetDocumentChecksum(ISymUnmanagedReader5 symReader, string documentPath, out ImmutableArray<byte> checksum, out Guid algorithmId)
EditAndContinue\EditSession.cs (4)
155public async Task<ImmutableArray<Diagnostic>?> GetModuleDiagnosticsAsync(Guid mvid, Project oldProject, Project newProject, ImmutableArray<DocumentAnalysisResults> documentAnalyses, CancellationToken cancellationToken) 824using var _2 = ArrayBuilder<(Guid ModuleId, ImmutableArray<(ManagedModuleMethodId Method, NonRemappableRegion Region)>)>.GetInstance(out var nonRemappableRegions); 918if (mvid == Guid.Empty) 1280Guid moduleId,
EditAndContinue\EditSessionTelemetry.cs (10)
18public readonly ImmutableArray<(ushort EditKind, ushort SyntaxKind, Guid projectId)> RudeEdits = telemetry._rudeEdits.AsImmutable(); 20public readonly ImmutableArray<Guid> ProjectsWithValidDelta = telemetry._projectsWithValidDelta.AsImmutable(); 21public readonly ImmutableArray<Guid> ProjectsWithUpdatedBaselines = telemetry._projectsWithUpdatedBaselines.AsImmutable(); 39private readonly HashSet<(ushort, ushort, Guid)> _rudeEdits = []; 41private readonly HashSet<Guid> _projectsWithValidDelta = []; 42private readonly HashSet<Guid> _projectsWithUpdatedBaselines = []; 87public void LogProjectAnalysisSummary(ProjectAnalysisSummary summary, Guid projectTelemetryId, ImmutableArray<string> errorsIds) 126public void LogProjectAnalysisSummary(ProjectAnalysisSummary summary, Guid projectTelemetryId, ImmutableArray<Diagnostic> emitDiagnostics) 129public void LogRudeEditDiagnostics(ImmutableArray<RudeEditDiagnostic> diagnostics, Guid projectTelemetryId) 152public void LogUpdatedBaseline(Guid projectTelemetryId)
EditAndContinue\PendingSolutionUpdate.cs (2)
24ImmutableArray<(Guid ModuleId, ImmutableArray<(ManagedModuleMethodId Method, NonRemappableRegion Region)>)> nonRemappableRegions) : PendingUpdate(projectBaselines, deltas) 28public readonly ImmutableArray<(Guid ModuleId, ImmutableArray<(ManagedModuleMethodId Method, NonRemappableRegion Region)> Regions)> NonRemappableRegions = nonRemappableRegions;
EditAndContinue\ProjectBaseline.cs (2)
10internal sealed class ProjectBaseline(Guid moduleId, ProjectId projectId, EmitBaseline emitBaseline, int generation) 12public Guid ModuleId { get; } = moduleId;
EditAndContinue\Remote\IRemoteEditAndContinueService.cs (2)
21ValueTask<ManagedHotReloadAvailability> GetAvailabilityAsync(RemoteServiceCallbackId callbackId, Guid mvid, CancellationToken cancellationToken); 23ValueTask PrepareModuleForUpdateAsync(RemoteServiceCallbackId callbackId, Guid mvid, CancellationToken cancellationToken);
EditAndContinue\Remote\RemoteEditAndContinueServiceProxy.cs (4)
41public ValueTask<ManagedHotReloadAvailability> GetAvailabilityAsync(RemoteServiceCallbackId callbackId, Guid mvid, CancellationToken cancellationToken) 47public ValueTask PrepareModuleForUpdateAsync(RemoteServiceCallbackId callbackId, Guid mvid, CancellationToken cancellationToken) 80public async ValueTask<ManagedHotReloadAvailability> GetAvailabilityAsync(Guid mvid, CancellationToken cancellationToken) 92public async ValueTask PrepareModuleForUpdateAsync(Guid mvid, CancellationToken cancellationToken)
EditAndContinue\SolutionUpdate.cs (2)
15ImmutableArray<(Guid ModuleId, ImmutableArray<(ManagedModuleMethodId Method, NonRemappableRegion Region)>)> nonRemappableRegions, 23public readonly ImmutableArray<(Guid ModuleId, ImmutableArray<(ManagedModuleMethodId Method, NonRemappableRegion Region)>)> NonRemappableRegions = nonRemappableRegions;
Emit\CompilationOutputs.cs (3)
68/// Returns <see cref="Guid.Empty"/> if the assembly is not available. 70internal virtual Guid ReadAssemblyModuleVersionId() 75return Guid.Empty;
ExternalAccess\UnitTesting\API\UnitTestingHotReloadService.cs (4)
25public ValueTask<ManagedHotReloadAvailability> GetAvailabilityAsync(Guid module, CancellationToken cancellationToken) 31public ValueTask PrepareModuleForUpdateAsync(Guid module, CancellationToken cancellationToken) 36Guid moduleId, 43public readonly Guid ModuleId = moduleId;
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingSolutionCrawlerLogger.cs (7)
177public static void LogHigherPriority(CountLogAggregator<object> logAggregator, Guid documentId) 202else if (key is ValueTuple<string, Guid> propertyNameAndId) 232public static void LogProcessCloseDocument(CountLogAggregator<object> logAggregator, Guid documentId) 238public static void LogProcessOpenDocument(CountLogAggregator<object> logAggregator, Guid documentId) 244public static void LogProcessActiveFileDocument(CountLogAggregator<object> logAggregator, Guid _, bool processed) 256public static void LogProcessDocument(CountLogAggregator<object> logAggregator, Guid documentId, bool processed) 273public static void LogProcessProject(CountLogAggregator<object> logAggregator, Guid projectId, bool processed)
ExternalAccess\UnitTesting\UnitTestingFeaturesReferencesService.cs (2)
18Guid projectGuid, string filePath, TextSpan span, DocumentId? sourceGeneratedDocumentId, CancellationToken cancellationToken); 32Guid projectGuid,
ExternalAccess\Watch\Api\WatchHotReloadService.cs (4)
28public ValueTask<ManagedHotReloadAvailability> GetAvailabilityAsync(Guid module, CancellationToken cancellationToken) 34public ValueTask PrepareModuleForUpdateAsync(Guid module, CancellationToken cancellationToken) 40public readonly Guid ModuleId; 49Guid moduleId,
FindUsages\DefinitionItem.DefaultDefinitionItem.cs (1)
68var project = solution.GetProject(ProjectId.CreateFromSerialized(Guid.Parse(projectIdGuid), projectDebugName));
MetadataAsSource\MetadataAsSourceFileService.cs (1)
61var guidString = Guid.NewGuid().ToString("N");
MetadataAsSource\MetadataAsSourceGeneratedFileInfo.cs (1)
44var directoryName = Guid.NewGuid().ToString("N");
PdbSourceDocument\DocumentDebugInfoReader.cs (2)
47var hashAlgorithmGuid = _pdbReader.GetGuid(document.HashAlgorithm); 96var guid = _pdbReader.GetGuid(cdi.Kind);
PdbSourceDocument\SymbolSourceDocumentFinder.cs (1)
160var guid = pdbReader.GetGuid(cdi.Kind);
Shared\Utilities\IUIContextActivationService.cs (1)
14IDisposable ExecuteWhenActivated(Guid uiContext, Action action);
src\Analyzers\Core\Analyzers\NamingStyle\NamingStyleDiagnosticAnalyzerBase.cs (3)
47var idToCachedResult = new ConcurrentDictionary<Guid, ConcurrentDictionary<string, string?>>( 106private static readonly Func<Guid, ConcurrentDictionary<string, string?>> s_createCache = 114ConcurrentDictionary<Guid, ConcurrentDictionary<string, string?>> idToCachedResult)
src\Analyzers\Core\CodeFixes\Naming\FallbackNamingRules.cs (13)
22Guid.NewGuid(), 30new NamingStyle(Guid.NewGuid(), capitalizationScheme: Capitalization.CamelCase), 34Guid.NewGuid(), 37new NamingStyle(Guid.NewGuid(), prefix: "_", capitalizationScheme: Capitalization.CamelCase), 41new NamingStyle(Guid.NewGuid(), capitalizationScheme: Capitalization.PascalCase), 62new SymbolSpecification(Guid.NewGuid(), "endswithasync", kinds, accessibilityList: default, modifiers), 63new NamingStyle(Guid.NewGuid(), prefix: "Get", suffix: "Async"), 71new SymbolSpecification(Guid.NewGuid(), "camelcasefields", kinds, accessibilityList: default, modifiers: default), 72new NamingStyle(Guid.NewGuid(), capitalizationScheme: Capitalization.CamelCase), 81new SymbolSpecification(Guid.NewGuid(), "endswithasynct", kinds, accessibilityList: default, modifiers), 82new NamingStyle(Guid.NewGuid(), suffix: "Async"), 90new SymbolSpecification(Guid.NewGuid(), "startswithget", kinds, accessibilityList: default, modifiers: default), 91new NamingStyle(Guid.NewGuid(), prefix: "Get"),
src\Dependencies\CodeAnalysis.Debugging\PortableCustomDebugInfoKinds.cs (14)
11public static readonly Guid AsyncMethodSteppingInformationBlob = new("54FD2AC5-E925-401A-9C2A-F94F171072F8"); 12public static readonly Guid StateMachineHoistedLocalScopes = new("6DA9A61E-F8C7-4874-BE62-68BC5630DF71"); 13public static readonly Guid DynamicLocalVariables = new("83C563C4-B4F3-47D5-B824-BA5441477EA8"); 14public static readonly Guid TupleElementNames = new("ED9FDF71-8879-4747-8ED3-FE5EDE3CE710"); 15public static readonly Guid DefaultNamespace = new("58b2eab6-209f-4e4e-a22c-b2d0f910c782"); 16public static readonly Guid EncLocalSlotMap = new("755F52A8-91C5-45BE-B4B8-209571E552BD"); 17public static readonly Guid EncLambdaAndClosureMap = new("A643004C-0240-496F-A783-30D64F4979DE"); 18public static readonly Guid EncStateMachineStateMap = new("8B78CD68-2EDE-420B-980B-E15884B8AAA3"); 19public static readonly Guid SourceLink = new("CC110556-A091-4D38-9FEC-25AB9A351A6A"); 20public static readonly Guid EmbeddedSource = new("0E8A571B-6926-466E-B4AD-8AB04611F5FE"); 21public static readonly Guid CompilationMetadataReferences = new("7E4D4708-096E-4C5C-AEDA-CB10BA6A740D"); 22public static readonly Guid CompilationOptions = new("B5FEEC05-8CD0-4A83-96DA-466284BB4BD8"); 23public static readonly Guid TypeDefinitionDocuments = new("932E74BC-DBA9-4478-8D46-0F32A7BAB3D3"); 24public static readonly Guid PrimaryConstructorInformationBlob = new("9D40ACE1-C703-4D0E-BF41-7243060A8FB5");
SymbolSearch\Windows\SymbolSearchUpdateEngine.Update.cs (1)
343var guidString = Guid.NewGuid().ToString();
Workspace\MiscellaneousFileUtilities.cs (1)
62var assemblyName = Guid.NewGuid().ToString("N");
Microsoft.CodeAnalysis.Features.Test.Utilities (26)
EditAndContinue\ActiveStatementsDescription.cs (3)
49instructionMap: OldStatements.ToDictionary(s => new ManagedInstructionId(new ManagedMethodId(Guid.NewGuid(), 0x060000001, version: 1), ilOffset: 0), s => s.Statement)); 160Guid[]? modules = null, 164var moduleId = new Guid("00000000-0000-0000-0000-000000000001");
EditAndContinue\ActiveStatementTestHelpers.cs (1)
23Guid[]? modules = null,
EditAndContinue\EditAndContinueWorkspaceTestBase.cs (14)
36private protected static readonly Guid s_solutionTelemetryId = Guid.Parse("00000000-AAAA-AAAA-AAAA-000000000000"); 37private protected static readonly Guid s_defaultProjectTelemetryId = Guid.Parse("00000000-AAAA-AAAA-AAAA-111111111111"); 163accessor.SetOutputProvider(project => _mockCompilationOutputs.GetValueOrDefault(project.Id, null) ?? new MockCompilationOutputs(Guid.Empty)); 237internal static Guid ReadModuleVersionId(Stream stream) 245internal Guid EmitAndLoadLibraryToDebuggee(Document document, TargetFramework targetFramework = DefaultTargetFramework) 258internal Guid EmitAndLoadLibraryToDebuggee( 267var moduleId = EmitLibrary(projectId, source, sourceFilePath, encoding, checksumAlgorithm, assemblyName, targetFramework: targetFramework); 272internal void LoadLibraryToDebuggee(Guid moduleId, ManagedHotReloadAvailability availability = default) 277internal Guid EmitLibrary( 294internal Guid EmitLibrary( 339internal Guid EmitLibrary(ProjectId projectId, Compilation compilation, DebugInformationFormat pdbFormat = DebugInformationFormat.PortablePdb) 345var moduleId = moduleMetadata.GetModuleVersionId();
EditAndContinue\Extensions.cs (1)
96public static Guid CreateProjectTelemetryId(string projectName)
EditAndContinue\MockCompilationOutputs.cs (3)
13private readonly Guid _mvid; 18public MockCompilationOutputs(Guid mvid) 30internal override Guid ReadAssemblyModuleVersionId()
EditAndContinue\MockManagedEditAndContinueDebuggerService.cs (4)
17public Func<Guid, ManagedHotReloadAvailability>? IsEditAndContinueAvailable; 18public Dictionary<Guid, ManagedHotReloadAvailability>? LoadedModules; 25public ValueTask<ManagedHotReloadAvailability> GetAvailabilityAsync(Guid mvid, CancellationToken cancellationToken) 43public ValueTask PrepareModuleForUpdateAsync(Guid mvid, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.Features.UnitTests (76)
EditAndContinue\ActiveStatementsMapTests.cs (6)
126var moduleId = Guid.NewGuid(); 181var moduleId = Guid.NewGuid(); 232var moduleId = Guid.NewGuid();
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (55)
417var moduleId = EmitLibrary(projectId, source, sourceFilePath: sourceFilePath); 581var moduleId = EmitAndLoadLibraryToDebuggee(project.Id, source1, sourceFilePath: sourceFile.Path); 633var moduleId = EmitAndLoadLibraryToDebuggee(project.Id, source1, sourceFilePath: sourceFile.Path, checksumAlgorithm: SourceHashAlgorithms.Default); 773var moduleId = EmitLibrary(project.Id, source1, sourceFilePath: sourceFile.Path); 809var moduleId = Guid.NewGuid(); 841var moduleId = Guid.NewGuid(); 929var moduleId = EmitAndLoadLibraryToDebuggee(projectId, source1, sourceFilePath: sourceFile.Path, encoding: encoding, checksumAlgorithm: SourceHashAlgorithm.Sha256); 963var moduleId = Guid.NewGuid(); 1033var moduleId = EmitAndLoadLibraryToDebuggee(document.Project.Id, source1); 1112_mockCompilationOutputs.Add(document.Project.Id, new MockCompilationOutputs(Guid.NewGuid())); 1152var moduleId = EmitAndLoadLibraryToDebuggee(projectId, source0, sourceFilePath: sourceFile.Path); 1263var moduleId = EmitAndLoadLibraryToDebuggee(project.Id, source1, sourceFilePath: sourceFile.Path); 1306var moduleId = EmitLibrary(project.Id, source1, sourceFilePath: sourceFile.Path); 1361var moduleId = EmitAndLoadLibraryToDebuggee(document); 1461var moduleId = Guid.NewGuid(); 1506var moduleId = EmitAndLoadLibraryToDebuggee(document.Project.Id, sourceV1); 1575_mockCompilationOutputs.Add(projectAId, new MockCompilationOutputs(Guid.NewGuid())); 1576_mockCompilationOutputs.Add(projectBId, new MockCompilationOutputs(Guid.NewGuid())); 1577_mockCompilationOutputs.Add(projectCId, new MockCompilationOutputs(Guid.NewGuid())); 2230var documentId = document1.Id; 2317var documentId = document2.Id; 2628var moduleId = moduleMetadata.GetModuleVersionId(); 3419var moduleIdA = moduleMetadataA.GetModuleVersionId(); 3425var moduleIdB = moduleMetadataB.GetModuleVersionId(); 3712_mockCompilationOutputs.Add(document1.Project.Id, new MockCompilationOutputs(Guid.NewGuid()) 3744_mockCompilationOutputs.Add(document.Project.Id, new MockCompilationOutputs(Guid.NewGuid()) 3807var moduleId = Guid.NewGuid(); 3883var moduleId = Guid.NewGuid(); 3941new ManagedInstructionId(new ManagedMethodId(Guid.Empty, token: 0x06000001, version: 1), ilOffset: 0), 3975var module1 = Guid.NewGuid(); 3976var module2 = Guid.NewGuid(); 3977var module4 = Guid.NewGuid(); 4093var thread1 = Guid.NewGuid(); 4865GetModuleIds(update.MetadataDelta, out var updateModuleId, out var baseId, out var genId, out var gen); 4888GetModuleIds(libUpdate1.MetadataDelta, out var updateModuleId1, out var baseId1, out var genId1, out var gen1); 4895GetModuleIds(libUpdate2.MetadataDelta, out var updateModuleId2, out var baseId2, out var genId2, out var gen2); 4906out Guid mvid, 4907out Guid baseId, 4908out Guid generationId,
EditAndContinue\EditSessionActiveStatementsTests.cs (12)
44var mockCompilationOutputsProvider = new Func<Project, CompilationOutputs>(_ => new MockCompilationOutputs(Guid.NewGuid())); 139var module1 = new Guid("11111111-1111-1111-1111-111111111111"); 140var module2 = new Guid("22222222-2222-2222-2222-222222222222"); 141var module3 = new Guid("33333333-3333-3333-3333-333333333333"); 142var module4 = new Guid("44444444-4444-4444-4444-444444444444"); 153new ManagedInstructionId(new ManagedMethodId(module: Guid.NewGuid(), token: 0x06000005, version: 1), ilOffset: 10), 328var module1 = new Guid("11111111-1111-1111-1111-111111111111"); 476var module1 = new Guid("11111111-1111-1111-1111-111111111111"); 643var thread1 = Guid.NewGuid(); 644var thread2 = Guid.NewGuid();
EditAndContinue\RemoteEditAndContinueServiceTests.cs (1)
93var moduleId1 = new Guid("{44444444-1111-1111-1111-111111111111}");
EditAndContinue\UnitTestingHotReloadServiceTests.cs (1)
39var moduleId = EmitLibrary(projectP.Id, source1, sourceFileA.Path, assemblyName: "Proj");
EditAndContinue\WatchHotReloadServiceTests.cs (1)
53var moduleId = EmitLibrary(projectP.Id, source1, sourceFileA.Path, assemblyName: "Proj");
Microsoft.CodeAnalysis.InteractiveHost (2)
Interactive\Core\InteractiveHost.LazyRemoteService.cs (1)
138var pipeName = typeof(InteractiveHost).FullName + Guid.NewGuid();
src\Compilers\Core\Portable\InternalUtilities\FatalError.cs (1)
229private static readonly object s_reportedMarker = Guid.NewGuid();
Microsoft.CodeAnalysis.LanguageServer (8)
HostWorkspace\BinlogNamer.cs (2)
24private readonly Guid _binaryLogGuidSuffix = Guid.NewGuid();
HostWorkspace\FileWatching\LspFileChangeWatcher.cs (1)
211_id = Guid.NewGuid().ToString();
HostWorkspace\ProjectTelemetry\ProjectLoadTelemetryReporter.cs (1)
20private static readonly string s_hashedSessionId = VsTfmAndFileExtHashingAlgorithm.HashInput(Guid.NewGuid().ToString());
LanguageServer\RazorDynamicDocumentSyncRegistration.cs (3)
57Id = Guid.NewGuid().ToString(), // No need to save this for unregistering 63Id = Guid.NewGuid().ToString(), // No need to save this for unregistering 73Id = Guid.NewGuid().ToString(), // No need to save this for unregistering
Program.cs (1)
320var newGuid = Guid.NewGuid().ToString();
Microsoft.CodeAnalysis.LanguageServer.Protocol (22)
Extensions\Extensions.cs (2)
343/// Retrieves the <see cref="Guid"/> and id that can represent a particular <see cref="Glyph"/> 348public static (Guid guid, int id) GetVsImageData(this Glyph glyph)
Extensions\Extensions.KnownImageIds.cs (2)
17public static readonly Guid ImageCatalogGuid = Guid.Parse("ae27a6b0-e345-4288-96df-5eaf394ee369");
Extensions\ProtocolConversions.cs (1)
825Guid.Parse(projectContext.Id[..delimiter]),
Extensions\SourceGeneratedDocumentUri.cs (3)
57var projectIdGuidOnly = ProjectId.CreateFromSerialized(Guid.ParseExact(documentUri.Host, GuidFormat)); 64var documentIdGuid = Guid.ParseExact(GetRequiredQueryValue(DocumentIdParam, query, documentUri.Query), GuidFormat);
Handler\Configuration\DidChangeConfigurationNotificationHandler.cs (2)
28private readonly Guid _registrationId; 55_registrationId = Guid.NewGuid();
Handler\Diagnostics\Public\PublicDocumentPullDiagnosticsHandler_IOnInitialized.cs (1)
57Id = Guid.NewGuid().ToString(),
Protocol\Extensions\VSImageId.cs (1)
22public Guid Guid
Protocol\Internal\Diagnostics\VSInternalDiagnosticReport.cs (1)
66public Guid? OutputKey { get; set; }
Protocol\Internal\Text\ImageId.cs (5)
27public readonly Guid Guid; 47public ImageId(Guid guid, int id) 60var guid = Guid; 71var guid = Guid; 101var guid = Guid;
Protocol\Internal\VSInternalCodeAction.cs (1)
65public Guid? TelemetryId
Protocol\Internal\VSInternalMapCodeParams.cs (1)
21public Guid? MapCodeCorrelationId
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\RequestExecutionQueue.cs (2)
68protected readonly AsyncQueue<(IQueueItem<TRequestContext> queueItem, Guid ActivityId, CancellationToken cancellationToken)> _queue = new(); 201(IQueueItem<TRequestContext> work, Guid activityId, CancellationToken cancellationToken) queueItem;
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (2)
Configuration\DidChangeConfigurationNotificationHandlerTest.cs (1)
279return Guid.NewGuid().ToString();
Workspaces\SourceGeneratedDocumentUriTests.cs (1)
29var generatedDocumentId = DocumentId.CreateFromSerialized(testLspServer.TestWorkspace.Projects.Single().Id, Guid.NewGuid(), isSourceGenerated: true, debugName: HintName);
Microsoft.CodeAnalysis.LanguageServer.UnitTests (1)
Utilities\AbstractLanguageServerClientTests.TestLspClient.cs (1)
73var newGuid = Guid.NewGuid().ToString();
Microsoft.CodeAnalysis.PublicApiAnalyzers.CodeFixes (6)
PublicApiFixHelpers.cs (6)
45&& Guid.TryParse(projectGuidString, out var projectGuid) && projectGuid != Guid.Empty && 46Guid.TryParse(docGuidString, out var docGuid) && docGuid != Guid.Empty)
Microsoft.CodeAnalysis.Rebuild (10)
CompilationOptionsReader.cs (9)
28public static readonly Guid HashAlgorithmSha1 = unchecked(new Guid((int)0xff1816ec, (short)0xaa5e, 0x4d10, 0x87, 0xf7, 0x6f, 0x49, 0x63, 0x83, 0x34, 0x60)); 29public static readonly Guid HashAlgorithmSha256 = unchecked(new Guid((int)0x8829d00f, 0x11b8, 0x4213, 0x87, 0x8b, 0x77, 0x0e, 0x85, 0x97, 0xac, 0x16)); 32public static readonly Guid MetadataReferenceInfoGuid = new Guid("7E4D4708-096E-4C5C-AEDA-CB10BA6A740D"); 35public static readonly Guid CompilationOptionsGuid = new Guid("B5FEEC05-8CD0-4A83-96DA-466284BB4BD8"); 38public static readonly Guid EmbeddedSourceGuid = new Guid("0E8A571B-6926-466E-B4AD-8AB04611F5FE"); 41public static readonly Guid SourceLinkGuid = new Guid("CC110556-A091-4D38-9FEC-25AB9A351A6A"); 185var hashAlgorithmGuid = PdbReader.GetGuid(document.HashAlgorithm); 394var mvid = blobReader.ReadGuid(); 427private bool TryGetCustomDebugInformationBlobReader(Guid infoGuid, out BlobReader blobReader)
Records.cs (1)
27Guid ModuleVersionId,
Microsoft.CodeAnalysis.Remote.ServiceHub (2)
Services\EditAndContinue\RemoteEditAndContinueService.cs (2)
42ValueTask<ManagedHotReloadAvailability> IManagedHotReloadService.GetAvailabilityAsync(Guid moduleVersionId, CancellationToken cancellationToken) 48ValueTask IManagedHotReloadService.PrepareModuleForUpdateAsync(Guid moduleVersionId, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.Remote.Workspaces (5)
EditAndContinue\ManagedHotReloadServiceProxy.cs (2)
22public ValueTask<ManagedHotReloadAvailability> GetAvailabilityAsync(Guid module, CancellationToken cancellationToken) 28public ValueTask PrepareModuleForUpdateAsync(Guid module, CancellationToken cancellationToken)
Serialization\MessagePackFormatters.cs (3)
57private readonly ConcurrentDictionary<Guid, ProjectId> _projectIds = new ConcurrentDictionary<Guid, ProjectId>(); 70var id = GuidFormatter.Instance.Deserialize(ref reader, options);
Microsoft.CodeAnalysis.Scripting (4)
Hosting\AssemblyLoader\InteractiveAssemblyLoader.cs (1)
360private static bool TryReadMvid(string filePath, out Guid mvid)
Hosting\AssemblyLoader\MetadataShadowCopyProvider.cs (2)
87_baseDirectory = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); 512string dir = Path.Combine(basePath, Guid.NewGuid().ToString());
ScriptBuilder.cs (1)
57s_globalAssemblyNamePrefix = "\u211B*" + Guid.NewGuid().ToString();
Microsoft.CodeAnalysis.Scripting.Desktop.UnitTests (1)
GlobalAssemblyCacheTests.cs (1)
84names = gac.GetAssemblyIdentities("nonexistingassemblyname" + Guid.NewGuid().ToString()).ToArray();
Microsoft.CodeAnalysis.Scripting.TestUtilities (3)
TestCompilationFactory.cs (3)
23assemblyName ?? Guid.NewGuid().ToString(), 32assemblyName ?? Guid.NewGuid().ToString(), 41assemblyName ?? Guid.NewGuid().ToString(),
Microsoft.CodeAnalysis.Test.Utilities (25)
Assert\ArtifactUploadUtil.cs (1)
35_baseDirectoryName = baseDirectoryName ?? Guid.NewGuid().ToString();
CommonTestBase.cs (1)
515persistentIdentifier: default(Guid),
Compilation\MetadataReferenceExtensions.cs (1)
17public static Guid GetModuleVersionId(this MetadataReference metadataReference)
Metadata\DynamicAnalysisDataReader.cs (3)
268public Guid GetGuid(GuidHandle handle) 272return default(Guid); 281return *(Guid*)(_guidHeapBlob.Pointer + offset);
Metadata\EncValidation.cs (1)
41Assert.NotEqual(default(Guid), currentReader.GetGuid(currentModule.GenerationId));
Metadata\MetadataReaderUtils.cs (1)
108public static Guid GetModuleVersionId(this MetadataReader reader)
Metadata\ModuleData.cs (5)
28public Guid Mvid { get; } 30public ModuleDataId(Assembly assembly, Guid mvid) 37public ModuleDataId(string simpleName, string fullName, Guid mvid) 63public Guid Mvid => Id.Mvid; 95private static Guid GetMvid(ImmutableArray<byte> image)
PDB\DeterministicBuildCompilationTestHelpers.cs (2)
97public static BlobReader GetSingleBlob(Guid infoGuid, MetadataReader pdbReader) 138var mvid = blobReader.ReadGuid();
PDB\MetadataReferenceInfo.cs (2)
19public readonly Guid Mvid; 28Guid mvid,
Platform\Custom\SigningTestHelpers.cs (5)
27internal static readonly string KeyPairFile = KeyFileDirectory + @"KeyPair_" + Guid.NewGuid() + ".snk"; 28internal static readonly string PublicKeyFile = KeyFileDirectory + @"PublicKey_" + Guid.NewGuid() + ".snk"; 30internal static readonly string KeyPairFile2 = KeyFileDirectory + @"KeyPair2_" + Guid.NewGuid() + ".snk"; 31internal static readonly string PublicKeyFile2 = KeyFileDirectory + @"PublicKey2_" + Guid.NewGuid() + ".snk"; 33internal static readonly string MaxSizeKeyFile = KeyFileDirectory + @"MaxSizeKey_" + Guid.NewGuid() + ".snk";
TempFiles\TempDirectory.cs (1)
36string dir = System.IO.Path.Combine(basePath, Guid.NewGuid().ToString());
TempFiles\TempFile.cs (1)
38_path = System.IO.Path.Combine(directory ?? TempRoot.Root, prefix + Guid.NewGuid() + (extension ?? ".tmp"));
TestBase.cs (1)
50return Guid.NewGuid().ToString("D");
Microsoft.CodeAnalysis.Threading.Package (1)
src\Compilers\Core\Portable\InternalUtilities\FatalError.cs (1)
229private static readonly object s_reportedMarker = Guid.NewGuid();
Microsoft.CodeAnalysis.UnitTests (65)
AssemblyUtilitiesTests.cs (1)
36var result = AssemblyUtilities.ReadMvid(_testFixture.Alpha);
Collections\SegmentedArrayTests.cs (3)
194var data = new SegmentedArray<Guid>(1000000); 199data[i] = Guid.NewGuid(); 200Assert.NotEqual(Guid.Empty, data[i]);
Collections\SegmentedCollectionsMarshalTests.cs (61)
409Assert.True(SegmentedCollectionsMarshal.AsImmutableSegmentedList<Guid>(null).IsDefault); 410Assert.True(SegmentedCollectionsMarshal.AsImmutableSegmentedList<Guid?>(null).IsDefault); 424Assert.True(SegmentedCollectionsMarshal.AsImmutableSegmentedList(new SegmentedList<Guid>(0)).IsEmpty); 425Assert.True(SegmentedCollectionsMarshal.AsImmutableSegmentedList(new SegmentedList<Guid?>(0)).IsEmpty); 453test<Guid>(); 454test<Guid?>(); 468Assert.Null(SegmentedCollectionsMarshal.AsSegmentedList<Guid>(default)); 469Assert.Null(SegmentedCollectionsMarshal.AsSegmentedList<Guid?>(default)); 491test<Guid>(); 492test<Guid?>(); 520test<Guid>(); 521test<Guid?>(); 535Assert.True(SegmentedCollectionsMarshal.AsImmutableSegmentedHashSet<Guid>(null).IsDefault); 536Assert.True(SegmentedCollectionsMarshal.AsImmutableSegmentedHashSet<Guid?>(null).IsDefault); 550Assert.True(SegmentedCollectionsMarshal.AsImmutableSegmentedHashSet(new SegmentedHashSet<Guid>(0)).IsEmpty); 551Assert.True(SegmentedCollectionsMarshal.AsImmutableSegmentedHashSet(new SegmentedHashSet<Guid?>(0)).IsEmpty); 584test<Guid>(Enumerable.Range(0, 17).Select(_ => Guid.NewGuid())); 585test<Guid?>(Enumerable.Range(0, 17).Select(_ => (Guid?)Guid.NewGuid())); 586test<string>(Enumerable.Range(0, 17).Select(_ => Guid.NewGuid().ToString())); 588test<ManagedCustomStruct>(Enumerable.Range(0, 17).Select(_ => new ManagedCustomStruct() { Bar = Guid.NewGuid() })); 589test<ManagedCustomStruct?>(Enumerable.Range(0, 17).Select(_ => (ManagedCustomStruct?)new ManagedCustomStruct() { Bar = Guid.NewGuid() })); 590test<UnmanagedCustomStruct>(Enumerable.Range(0, 17).Select(_ => new UnmanagedCustomStruct() { Foo = Guid.NewGuid() })); 591test<UnmanagedCustomStruct?>(Enumerable.Range(0, 17).Select(_ => (UnmanagedCustomStruct?)new UnmanagedCustomStruct() { Foo = Guid.NewGuid() })); 599Assert.Null(SegmentedCollectionsMarshal.AsSegmentedHashSet<Guid>(default)); 600Assert.Null(SegmentedCollectionsMarshal.AsSegmentedHashSet<Guid?>(default)); 622test<Guid>(); 623test<Guid?>(); 656test<Guid>(Enumerable.Range(0, 17).Select(_ => Guid.NewGuid())); 657test<Guid?>(Enumerable.Range(0, 17).Select(_ => (Guid?)Guid.NewGuid())); 658test<string>(Enumerable.Range(0, 17).Select(_ => Guid.NewGuid().ToString())); 660test<ManagedCustomStruct>(Enumerable.Range(0, 17).Select(_ => new ManagedCustomStruct() { Bar = Guid.NewGuid() })); 661test<ManagedCustomStruct?>(Enumerable.Range(0, 17).Select(_ => (ManagedCustomStruct?)new ManagedCustomStruct() { Bar = Guid.NewGuid() })); 662test<UnmanagedCustomStruct>(Enumerable.Range(0, 17).Select(_ => new UnmanagedCustomStruct() { Foo = Guid.NewGuid() })); 663test<UnmanagedCustomStruct?>(Enumerable.Range(0, 17).Select(_ => (UnmanagedCustomStruct?)new UnmanagedCustomStruct() { Foo = Guid.NewGuid() })); 671Assert.True(SegmentedCollectionsMarshal.AsImmutableSegmentedDictionary<Guid, Guid>(null).IsDefault); 672Assert.True(SegmentedCollectionsMarshal.AsImmutableSegmentedDictionary<Guid, Guid?>(null).IsDefault); 686Assert.True(SegmentedCollectionsMarshal.AsImmutableSegmentedDictionary(new SegmentedDictionary<Guid, Guid>(0)).IsEmpty); 687Assert.True(SegmentedCollectionsMarshal.AsImmutableSegmentedDictionary(new SegmentedDictionary<Guid, Guid?>(0)).IsEmpty); 715test<Guid>(() => default); 716test<Guid?>(() => null); 730Assert.Null(SegmentedCollectionsMarshal.AsSegmentedDictionary<Guid, Guid>(default)); 731Assert.Null(SegmentedCollectionsMarshal.AsSegmentedDictionary<Guid, Guid?>(default)); 753test<Guid>(); 754test<Guid?>(); 782test<Guid>(() => default); 783test<Guid?>(() => null); 807public Guid Bar; 813public Guid Bar; 818public Guid Foo;
Microsoft.CodeAnalysis.VisualBasic (4)
Parser\ParseConditional.vb (2)
340Dim tmp As System.Guid 341If Not System.Guid.TryParse(guid.ValueText, tmp) Then
Symbols\Attributes\AttributeData.vb (2)
496Dim guidVal As Guid 497If Not Guid.TryParseExact(guidString, "D", guidVal) Then
Microsoft.CodeAnalysis.Workspaces (90)
CodeActions\CodeAction.cs (2)
40internal static readonly string CanBeHighPriorityTag = Guid.NewGuid().ToString(); 207internal Guid GetTelemetryId(FixAllScope? fixAllScope = null)
Rename\ConflictEngine\ConflictResolver.cs (1)
415.OrderBy(l => l.IsInSource ? solution.GetDocumentId(l.SourceTree)!.Id : Guid.Empty)
Serialization\SerializerService_Reference.cs (11)
33private static IBidirectionalMap<AnalyzerReference, Guid> s_analyzerReferenceMap = BidirectionalMap<AnalyzerReference, Guid>.Empty; 35private static bool TryGetAnalyzerImageReferenceGuid(AnalyzerImageReference imageReference, out Guid guid) 41private static bool TryGetAnalyzerImageReferenceFromGuid(Guid guid, [NotNullWhen(true)] out AnalyzerReference? analyzerReference) 78Contract.ThrowIfFalse(TryGetAnalyzerImageReferenceGuid(analyzerImageReference, out var guid), "AnalyzerImageReferences are only supported during testing"); 153Contract.ThrowIfFalse(TryGetAnalyzerImageReferenceGuid(analyzerImageReference, out var guid), "AnalyzerImageReferences are only supported during testing"); 174var guid = reader.ReadGuid(); 263private static Guid GetMetadataGuid(ModuleMetadata metadata) 267var guid = metadataReader.GetGuid(mvidHandle); 546s_analyzerReferenceMap = s_analyzerReferenceMap.Add(analyzerImageReference, Guid.NewGuid()); 561Guid Guid { get; }
Shared\Extensions\TelemetryExtensions.cs (1)
15public static Guid GetTelemetryId(this Type type, short scope = 0, string? additionalSuffixString = null)
Shared\Utilities\XmlFragmentParser.cs (2)
127private static readonly string s_rootElementName = "_" + Guid.NewGuid().ToString("N"); 130internal static readonly string CurrentElementName = "_" + Guid.NewGuid().ToString("N");
src\Compilers\Core\Portable\AssemblyUtilitiesCore.cs (2)
27public static Guid ReadMvid(string filePath) 35var fileMvid = metadataReader.GetGuid(mvidHandle);
src\Compilers\Core\Portable\DiagnosticAnalyzer\ShadowCopyAnalyzerPathResolver.cs (1)
82var shadowDirectoryName = Guid.NewGuid().ToString("N").ToLowerInvariant();
src\Compilers\Core\Portable\InternalUtilities\FatalError.cs (1)
229private static readonly object s_reportedMarker = Guid.NewGuid();
src\Compilers\Core\Portable\Text\SourceHashAlgorithms.cs (4)
25private static readonly Guid s_guidSha1 = unchecked(new Guid((int)0xff1816ec, (short)0xaa5e, 0x4d10, 0x87, 0xf7, 0x6f, 0x49, 0x63, 0x83, 0x34, 0x60)); 26private static readonly Guid s_guidSha256 = unchecked(new Guid((int)0x8829d00f, 0x11b8, 0x4213, 0x87, 0x8b, 0x77, 0x0e, 0x85, 0x97, 0xac, 0x16)); 36public static Guid GetAlgorithmGuid(SourceHashAlgorithm algorithm) 44public static SourceHashAlgorithm GetSourceHashAlgorithm(Guid guid)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_NamingStyle.cs (1)
64id: Guid.NewGuid(),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_SymbolSpec.cs (1)
63id: Guid.NewGuid(),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (3)
27public Guid ID { get; init; } 45Guid id, 474id: Guid.Parse(namingStyleElement.Attribute(nameof(ID)).Value),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (4)
59var referencedElements = new HashSet<Guid>(); 119private static ImmutableDictionary<Guid, string> AssignNamesToNamingStyleElements( 124var builder = ImmutableDictionary.CreateBuilder<Guid, string>(); 170private static ImmutableDictionary<NamingRule, string> AssignNamesToNamingStyleRules(ImmutableArray<NamingRule> namingRules, ImmutableDictionary<Guid, string> serializedNameMap)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SerializableNamingRule.cs (4)
16public Guid SymbolSpecificationID { get; init; } 19public Guid NamingStyleID { get; init; } 39NamingStyleID = Guid.Parse(namingRuleElement.Attribute(nameof(NamingStyleID))!.Value), 40SymbolSpecificationID = Guid.Parse(namingRuleElement.Attribute(nameof(SymbolSpecificationID))!.Value)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (4)
29Guid id, 38public Guid ID { get; } = id; 62id: Guid.NewGuid(), 284id: Guid.Parse(symbolSpecificationElement.Attribute(nameof(ID)).Value),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
144public Guid ReadGuid()
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (2)
161public Guid Guid; 169public void WriteGuid(Guid guid)
TemporaryStorage\TemporaryStorageService.cs (1)
240? $"Roslyn Shared File: Size={size} Id={Guid.NewGuid():N}"
TemporaryStorage\TrivialTemporaryStorageService.cs (2)
48Identifier = new TemporaryStorageIdentifier(Guid.NewGuid().ToString(), 0, _stream.Length); 68Identifier = new TemporaryStorageIdentifier(Guid.NewGuid().ToString(), 0, _sourceText.Length);
Workspace\IsolatedAnalyzerReferenceSet.Core.cs (7)
29private static readonly ObjectPool<Dictionary<string, Guid>> s_pathToMvidMapPool = new(() => new(SolutionState.FilePathComparer)); 78private readonly Dictionary<string, Guid> _analyzerFileReferencePathToMvid = []; 150Dictionary<string, Guid> filePathToMvid) 183private bool HasConflicts(Dictionary<string, Guid> filePathToMvid) 194private bool HasConflict(string filePath, Guid mvid) 195=> _analyzerFileReferencePathToMvid.TryGetValue(filePath, out var existingMvid) && existingMvid != mvid; 295Dictionary<string, Guid> pathToMvidMap)
Workspace\IsolatedAnalyzerReferenceSet.cs (2)
42public static Guid TryGetFileReferenceMvid(string filePath) 52return Guid.Empty;
Workspace\ProjectSystem\ProjectSystemProjectCreationInfo.cs (1)
17public Guid TelemetryId { get; set; }
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (1)
75public Guid SolutionTelemetryId { get; set; }
Workspace\Solution\DocumentId.cs (7)
24public Guid Id { get; } 30private DocumentId(ProjectId projectId, Guid guid, bool isSourceGenerated, string? debugName) 44=> CreateFromSerialized(projectId, Guid.NewGuid(), isSourceGenerated: false, debugName); 46public static DocumentId CreateFromSerialized(ProjectId projectId, Guid id, string? debugName = null) 49internal static DocumentId CreateFromSerialized(ProjectId projectId, Guid id, bool isSourceGenerated, string? debugName) 54if (id == Guid.Empty) 100var guid = reader.ReadGuid();
Workspace\Solution\ProjectId.cs (6)
36public Guid Id { get; } 46private ProjectId(Guid guid, string? debugName) 57=> new(Guid.NewGuid(), debugName); 59public static ProjectId CreateFromSerialized(Guid id, string? debugName = null) 61if (id == Guid.Empty) 101var guid = reader.ReadGuid();
Workspace\Solution\ProjectInfo.cs (5)
394internal ProjectInfo WithTelemetryId(Guid telemetryId) 509public Guid TelemetryId { get; } = telemetryId; 546Optional<Guid> telemetryId = default, 562var newTelemetryId = telemetryId.HasValue ? telemetryId.Value : TelemetryId; 646var telemetryId = reader.ReadGuid();
Workspace\Solution\SolutionId.cs (6)
26public Guid Id { get; } 31private SolutionId(Guid id, string debugName) 42=> CreateFromSerialized(Guid.NewGuid(), debugName); 44public static SolutionId CreateFromSerialized(Guid id, string debugName = null) 46if (id == Guid.Empty) 88var guid = reader.ReadGuid();
Workspace\Solution\SolutionInfo.cs (6)
111internal SolutionInfo WithTelemetryId(Guid telemetryId) 118internal sealed class SolutionAttributes(SolutionId id, VersionStamp version, string? filePath, Guid telemetryId) 140public Guid TelemetryId { get; } = telemetryId; 145Optional<Guid> telemetryId = default) 149var newTelemetryId = telemetryId.HasValue ? telemetryId.Value : TelemetryId; 178var telemetryId = reader.ReadGuid();
Workspace\Solution\SourceGeneratedDocumentIdentity.cs (1)
68var guid = new Guid(hash);
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\BuildHostProcessManager.cs (1)
87var pipeName = Guid.NewGuid().ToString();
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
src\Compilers\Core\Portable\InternalUtilities\FatalError.cs (1)
229private static readonly object s_reportedMarker = Guid.NewGuid();
src\Compilers\Core\Portable\InternalUtilities\FileLockCheck.cs (1)
153char* key = stackalloc char[sizeof(Guid) * 2 + 1];
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (7)
RpcTests.cs (1)
29var pipeName = Guid.NewGuid().ToString();
SolutionGeneration.cs (6)
93if (projectReference.Guid == Guid.Empty) 214public Guid Guid { get; set; } 249if (Guid == Guid.Empty) 251Guid = Guid.NewGuid(); 290if (projectReference.Guid != Guid.Empty) 345public Guid Guid { get; set; }
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (21)
Options\NamingStyleTestUtilities.cs (3)
51var guidMap = new Dictionary<Guid, int>(); 56if (Guid.TryParse(attribute.Value, out var guid))
Options\OptionsTestHelpers.cs (2)
166Guid.NewGuid(), 175Guid.NewGuid(),
Remote\InProcRemoteHostClientProvider.cs (2)
42ConcurrentDictionary<Guid, TestGeneratorReference> sharedTestGeneratorReferences, 51ConcurrentDictionary<Guid, TestGeneratorReference> sharedTestGeneratorReferences,
Remote\TestSerializerService.cs (7)
29ConcurrentDictionary<Guid, TestGeneratorReference> sharedTestGeneratorReferences, 42private readonly ConcurrentDictionary<Guid, TestGeneratorReference> _sharedTestGeneratorReferences = sharedTestGeneratorReferences; 93writer.WriteGuid(Guid.Empty); 100var testGeneratorReferenceGuid = reader.ReadGuid(); 102if (testGeneratorReferenceGuid != Guid.Empty) 119private ConcurrentDictionary<Guid, TestGeneratorReference>? _sharedTestGeneratorReferences; 132public ConcurrentDictionary<Guid, TestGeneratorReference> SharedTestGeneratorReferences
TestAnalyzerReferenceByLanguage.cs (3)
26var checksumArray = Guid.NewGuid().ToByteArray(); 34public Guid Guid { get; } = Guid.NewGuid();
TestGeneratorReference.cs (2)
24Guid = Guid.NewGuid(); 45public Guid Guid { get; }
Workspaces\TestWorkspace.cs (1)
20Guid solutionTelemetryId = default,
Workspaces\TestWorkspace`1.cs (1)
59Guid solutionTelemetryId = default,
Microsoft.CodeAnalysis.Workspaces.UnitTests (16)
ObjectSerializationTests.cs (3)
599static void test(Guid guid) 604test(Guid.Empty); 610test(Guid.NewGuid());
Shared\Extensions\TelemetryExtensions\TelemetryExtensionTests.cs (2)
16var expected = Guid.Parse("00000000-0000-0000-54ad-749900000000");
SolutionTests\ProjectIdTests.cs (4)
15var guid1 = Guid.NewGuid(); 31var id1 = ProjectId.CreateFromSerialized(Guid.NewGuid(), "debug1"); 32var id2 = ProjectId.CreateFromSerialized(Guid.NewGuid(), "debug1");
SolutionTests\SolutionTests.cs (2)
5502var sourceTextToRelease = ObjectReference.CreateFromFactory(static () => SourceText.From(Guid.NewGuid().ToString())); 5510static (s, documentId) => s.WithDocumentTextLoader(documentId, new TestTextLoader(Guid.NewGuid().ToString()), PreservationMode.PreserveValue), documentId).GetReference();
SolutionTests\SourceGeneratorTelemetryCollectorWorkspaceServiceTests.cs (1)
28var nonExistentFilePath = "Z:\\" + Guid.NewGuid().ToString();
UtilityTest\AsyncLazyTests.cs (4)
324return "Returned from synchronous computation: " + Guid.NewGuid(); 342asynchronousComputation = _ => Task.FromResult("Returned from asynchronous computation: " + Guid.NewGuid()); 384return Task.FromResult("Returned from asynchronous computation: " + Guid.NewGuid()); 391return "Returned from synchronous computation: " + Guid.NewGuid();
Microsoft.CommonLanguageServerProtocol.Framework.Package (2)
RequestExecutionQueue.cs (2)
68protected readonly AsyncQueue<(IQueueItem<TRequestContext> queueItem, Guid ActivityId, CancellationToken cancellationToken)> _queue = new(); 201(IQueueItem<TRequestContext> work, Guid activityId, CancellationToken cancellationToken) queueItem;
Microsoft.DotNet.Arcade.Sdk (1)
src\ExtractNgenMethodList.cs (1)
95private Guid GetAssemblyMvid()
Microsoft.DotNet.Arcade.Sdk.Tests (1)
GetLicenseFilePathTests.cs (1)
18var dir = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());
Microsoft.DotNet.ArcadeLogging (23)
MessageBuilder.cs (1)
42public void AddProperty(string name, Guid value) => AddProperty(name, value.ToString("D"));
PipelinesLogger.cs (22)
21private readonly Dictionary<BuildEventContext, Guid> _buildEventContextMap = new Dictionary<BuildEventContext, Guid>(BuildEventContextComparer.Instance); 22private readonly Dictionary<Guid, ProjectInfo> _projectInfoMap = new Dictionary<Guid, ProjectInfo>(); 23private readonly Dictionary<Guid, TelemetryTaskInfo> _taskTelemetryInfoMap = new Dictionary<Guid, TelemetryTaskInfo>(); 24private readonly HashSet<Guid> _detailedLoggedSet = new HashSet<Guid>(); 84var parentId = _buildEventContextMap.TryGetValue(buildEventContext, out var guid) 85? (Guid?)guid 117Guid id, 126Guid? parentId = null) 207if (!_buildEventContextMap.TryGetValue(e.BuildEventContext, out var parentId)) 223if (!_buildEventContextMap.TryGetValue(e.BuildEventContext, out Guid projectId) || 250var parentId = _buildEventContextMap.TryGetValue(e.ParentProjectBuildEventContext, out var guid) 251? (Guid?)guid 359internal Guid Id { get; } 362internal TelemetryTaskInfo(Guid id, string category) 372internal Guid Id { get; } 373internal Guid? ParentId { get; } 377internal ProjectInfo(string name, Guid? parentId, string propertiesCategory) 380Id = Guid.NewGuid();
Microsoft.DotNet.Build.Tasks.Feed (3)
src\PublishArtifactsInManifestBase.cs (3)
569string requestName = $"dotnet/{buildInfo.Id}/{buildInfo.AzureDevOpsAccount}/{buildInfo.AzureDevOpsProject}/{buildInfo.AzureDevOpsBuildId}/{Guid.NewGuid()}"; 1223Path.GetFullPath(Path.Combine(ArtifactsBasePath, Guid.NewGuid().ToString())); 1493Path.GetFullPath(Path.Combine(ArtifactsBasePath, Guid.NewGuid().ToString()));
Microsoft.DotNet.Build.Tasks.Feed.Tests (7)
DownloadFileTests.cs (7)
77var path = TestInputs.GetFullPath(Guid.NewGuid().ToString()); 146var path = TestInputs.GetFullPath(Guid.NewGuid().ToString()); 223var path = TestInputs.GetFullPath(Guid.NewGuid().ToString()); 233var path2 = TestInputs.GetFullPath(Guid.NewGuid().ToString()); 282var path = TestInputs.GetFullPath(Guid.NewGuid().ToString()); 354var path = TestInputs.GetFullPath(Guid.NewGuid().ToString()); 427var path = TestInputs.GetFullPath(Guid.NewGuid().ToString());
Microsoft.DotNet.Build.Tasks.Installers (1)
src\GenerateGuidFromName.cs (1)
22Guid namespaceId = new Guid("28F1468D-672B-489A-8E0C-7C5B3030630C");
Microsoft.DotNet.Build.Tasks.Packaging.Tests (1)
CreateTrimDependencyGroupsTests.cs (1)
29var packageIndexPath = $"packageIndex.{Guid.NewGuid()}.json";
Microsoft.DotNet.Build.Tasks.Templating.Tests (3)
GenerateFileFromTemplateTests.cs (3)
16string tempDir = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); 43string tempDir = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); 68string tempDir = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());
Microsoft.DotNet.Build.Tasks.VisualStudio (1)
Vsix\GetPkgDefAssemblyDependencyGuid.cs (1)
57int targetBlockSize = Marshal.SizeOf(typeof(Guid));
Microsoft.DotNet.Build.Tasks.VisualStudio.Tests (4)
OptProf\GenerateTrainingInputFilesTests.cs (1)
137var dir = Path.Combine(temp, Guid.NewGuid().ToString());
OptProf\GenerateTrainingPropsFileTests.cs (2)
16var dir = Path.Combine(temp, Guid.NewGuid().ToString()); 44var dir = Path.Combine(temp, Guid.NewGuid().ToString());
OptProf\GetRunSettingsSessionConfigurationTests.cs (1)
416var dir = Path.Combine(temp, Guid.NewGuid().ToString());
Microsoft.DotNet.Build.Tasks.Workloads (9)
Msi\MsiBase.wix.cs (3)
38internal static readonly Guid UpgradeCodeNamespaceUuid = Guid.Parse("C743F81B-B3B5-4E77-9F6D-474EFF3A722C"); 178candle.AddPreprocessorDefinition(PreprocessorDefinitionNames.ProductCode, $"{Guid.NewGuid():B}");
Msi\WorkloadManifestMsi.wix.cs (1)
135Guid upgradeCode = IsSxS ? Utils.CreateUuid(UpgradeCodeNamespaceUuid, $"{Package.Identity};{Platform}") :
Msi\WorkloadPackGroupMsi.wix.cs (1)
127Guid upgradeCode = Utils.CreateUuid(UpgradeCodeNamespaceUuid, $"{Metadata.Id};{Platform}");
Msi\WorkloadPackMsi.wix.cs (1)
62Guid upgradeCode = Utils.CreateUuid(UpgradeCodeNamespaceUuid, $"{_package.Identity};{Platform}");
Msi\WorkloadSetMsi.wix.cs (1)
58Guid upgradeCode = Utils.CreateUuid(UpgradeCodeNamespaceUuid, $"{_package.Identity};{Platform}");
Utils.cs (2)
128public static Guid CreateUuid(Guid namespaceUuid, string name)
Microsoft.DotNet.Helix.Client (6)
generated-code\HelixApi.cs (1)
216public string Serialize(Guid value)
generated-code\Models\ContainerExtensionRequest.cs (2)
12public ContainerExtensionRequest(double extensionInDays, string containerName, string storageAccountName, Guid subscriptionId, string region) 31public Guid SubscriptionId { get; set; }
generated-code\Models\ContainerInformation.cs (2)
12public ContainerInformation(DateTimeOffset created, DateTimeOffset expiration, string creator, string containerName, string storageAccountName, Guid subscriptionId, string region) 45public Guid SubscriptionId { get; set; }
generated-code\Models\WorkItemAggregateSummary.cs (1)
32public Guid? Guid { get; set; }
Microsoft.DotNet.Helix.JobSender (6)
JobDefinition.cs (3)
53public static string DefaultContainerName => $"helix-job-{Guid.NewGuid()}"; 195$"job-list-{Guid.NewGuid()}.json", 241string jobStartIdentifier = Guid.NewGuid().ToString("N");
Payloads\AdhocPayload.cs (1)
47Uri zipUri = await payloadContainer.UploadFileAsync(stream, $"{Guid.NewGuid()}.zip", log, cancellationToken);
Payloads\DirectoryPayload.cs (1)
74Uri zipUri = await payloadContainer.UploadFileAsync(stream, $"{Guid.NewGuid()}.zip", log, cancellationToken);
Payloads\SingleFilePayload.cs (1)
46Uri zipUri = await payloadContainer.UploadFileAsync(stream, $"{Guid.NewGuid()}.zip", log, cancellationToken);
Microsoft.DotNet.Helix.Sdk (3)
CommandPayload.cs (3)
23var dir = new DirectoryInfo(Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString("N"))); 39name = $"scripts/{Guid.NewGuid():N}/execute.sh"; 49name = $"scripts\\{Guid.NewGuid():N}\\execute.cmd";
Microsoft.DotNet.Internal.SymbolHelper (1)
ScopedTracer.cs (1)
20_operationIdentifier = $"{operationName}/{Guid.NewGuid()}";
Microsoft.DotNet.NuGetRepack.Tasks (3)
src\NuGetVersionUpdater.cs (2)
66tempDirectoryOpt = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); 116tempPathOpt = Path.Combine(tempDirectoryOpt, Guid.NewGuid().ToString());
src\ReplacePackageParts.cs (1)
123string tempPackagePath = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());
Microsoft.DotNet.NuGetRepack.Tests (6)
ReplacePackagePartsTests.cs (1)
18var dir = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());
VersionUpdaterTests.cs (5)
59var dir = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); 102var dir = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); 130var dir = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); 169var dir = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); 170var outputDir = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());
Microsoft.DotNet.Open.Api.Tools.Tests (1)
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (1)
21Root = Path.Combine(ResolveLinks(Path.GetTempPath()), "dotnet-tool-tests", Guid.NewGuid().ToString("N"));
Microsoft.DotNet.SignCheckLibrary (2)
Interop\WinTrust.cs (1)
12public static readonly Guid WINTRUST_ACTION_GENERIC_VERIFY_V2 = new Guid("{00AAC56B-CD44-11d0-8CC2-00C04FC295EE}");
Verification\RpmVerifier.cs (1)
27using var dataStream = File.OpenWrite(Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()));
Microsoft.DotNet.SignTool (7)
src\ZipData.cs (7)
254var workingDirGuidSegment = Guid.NewGuid().ToString().Split('-')[0]; 255var outputDirGuidSegment = Guid.NewGuid().ToString().Split('-')[0]; 332string extractDir = Path.Combine(tempDir, Guid.NewGuid().ToString()); 358string extractDir = Path.Combine(tempDir, Guid.NewGuid().ToString()); 566var workingDirGuidSegment = Guid.NewGuid().ToString().Split('-')[0]; 665using var dataStream = File.OpenWrite(Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString())); 677string workingDir = Path.Combine(tempDir, Guid.NewGuid().ToString().Split('-')[0]);
Microsoft.DotNet.SignTool.Tests (6)
FakeSignTool.cs (1)
16private static readonly byte[] _stamp = Guid.NewGuid().ToByteArray();
SignToolTests.cs (5)
266_tmpDir = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); 2960string workingDir = Path.Combine(tempDir, "extract", Guid.NewGuid().ToString()); 2961string outputDir = Path.Combine(tempDir, "output", Guid.NewGuid().ToString()); 3147string resourcePath = GetResourcePath(file, Guid.NewGuid().ToString()); 3164string resourcePath = GetResourcePath(file, Guid.NewGuid().ToString());
Microsoft.Extensions.AI (2)
ChatCompletion\FunctionInvokingChatClient.cs (1)
384string toolResponseId = Guid.NewGuid().ToString("N");
src\LegacySupport\StringSyntaxAttribute\StringSyntaxAttribute.cs (1)
51/// <summary>The syntax identifier for strings containing <see cref="Guid"/> format specifiers.</summary>
Microsoft.Extensions.AI.Abstractions (1)
src\Shared\JsonSchemaExporter\JsonSchemaExporter.cs (1)
619[typeof(Guid)] = _ => new JsonSchema { Type = JsonSchemaType.String, Format = "uuid" },
Microsoft.Extensions.AI.Abstractions.Tests (11)
Contents\FunctionCallContentTests..cs (4)
111AIFunction function = AIFunctionFactory.Create((DayOfWeek[] a, double b, Guid c, Dictionary<string, string> d) => b, serializerOptions: TestJsonSerializerContext.Default.Options); 133AIFunction function = AIFunctionFactory.Create((DayOfWeek[] a, double b, Guid c, Dictionary<string, string> d) => b, serializerOptions: TestJsonSerializerContext.Default.Options); 166AIFunction function = AIFunctionFactory.Create((DayOfWeek[] a, double b, Guid c, Dictionary<string, string> d) => b, serializerOptions: TestJsonSerializerContext.Default.Options); 187AIFunction function = AIFunctionFactory.Create((DayOfWeek[] a, double b, Guid c, Dictionary<string, string> d) => b, serializerOptions: TestJsonSerializerContext.Default.Options);
test\Shared\JsonSchemaExporter\TestTypes.cs (6)
101yield return new TestData<Guid>(Guid.Empty, """{"type":"string","format":"uuid"}"""); 120yield return new TestData<Guid?>(Guid.Empty, """{"type":["string","null"],"format":"uuid"}"""); 1230[JsonSerializable(typeof(Guid))] 1247[JsonSerializable(typeof(Guid?))]
TestJsonSerializerContext.cs (1)
34[JsonSerializable(typeof(Guid))] // Used in Content tests
Microsoft.Extensions.AI.Evaluation.Reporting.Tests (4)
ScenarioRunResultTests.cs (4)
68cacheKey: Guid.NewGuid().ToString(), 76cacheKey: Guid.NewGuid().ToString(), 159cacheKey: Guid.NewGuid().ToString(), 167cacheKey: Guid.NewGuid().ToString(),
Microsoft.Extensions.AI.Integration.Tests (8)
ChatClientIntegrationTests.cs (6)
209var sourceName = Guid.NewGuid().ToString(); 285var sourceName = Guid.NewGuid().ToString(); 326var sourceName = Guid.NewGuid().ToString(); 369var sourceName = Guid.NewGuid().ToString(); 395AIFunctionFactory.Create((Guid guid) => guid, "Method12"), 777var sourceName = Guid.NewGuid().ToString();
EmbeddingGeneratorIntegrationTests.cs (1)
107string sourceName = Guid.NewGuid().ToString();
PromptBasedFunctionCallingChatClient.cs (1)
117var id = Guid.NewGuid().ToString().Substring(0, 6);
Microsoft.Extensions.AI.Ollama (3)
OllamaChatClient.cs (3)
108var responseId = Guid.NewGuid().ToString("N"); 138var responseId = Guid.NewGuid().ToString("N"); 286var id = Guid.NewGuid().ToString().Substring(0, 8);
Microsoft.Extensions.AI.OpenAI (2)
OpenAIChatClient.cs (1)
214parts.Add(ChatMessageContentPart.CreateFilePart(BinaryData.FromBytes(dataContent.Data), dataContent.MediaType, $"{Guid.NewGuid():N}.pdf"));
OpenAIResponseChatClient.cs (1)
572parts.Add(ResponseContentPart.CreateInputFilePart(null, $"{Guid.NewGuid():N}.pdf",
Microsoft.Extensions.AI.Templates.Tests (1)
Infrastructure\TemplateExecutionTestClassFixtureBase.cs (1)
42=> prefix + "_" + Guid.NewGuid().ToString("N").Substring(0, 10).ToLowerInvariant();
Microsoft.Extensions.AI.Tests (9)
ChatCompletion\FunctionInvokingChatClientTests.cs (4)
517string sourceName = Guid.NewGuid().ToString(); 592string messageId = Guid.NewGuid().ToString("N"); 959MessageId = Guid.NewGuid().ToString("N") 1053MessageId = Guid.NewGuid().ToString("N"),
ChatCompletion\OpenTelemetryChatClientTests.cs (1)
26var sourceName = Guid.NewGuid().ToString();
Embeddings\OpenTelemetryEmbeddingGeneratorTests.cs (1)
24var sourceName = Guid.NewGuid().ToString();
Functions\AIFunctionFactoryTest.cs (2)
817AIFunction f = AIFunctionFactory.Create((Guid g = default, StructWithDefaultCtor s = default) => g.ToString() + "," + s.Value.ToString(), serializerOptions: JsonContext.Default.Options); 897[JsonSerializable(typeof(Guid))]
TestJsonSerializerContext.cs (1)
27[JsonSerializable(typeof(Guid))]
Microsoft.Extensions.ApiDescription.Client.Tests (1)
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (1)
21Root = Path.Combine(ResolveLinks(Path.GetTempPath()), "dotnet-tool-tests", Guid.NewGuid().ToString("N"));
Microsoft.Extensions.ApiDescription.Tool.Tests (1)
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (1)
21Root = Path.Combine(ResolveLinks(Path.GetTempPath()), "dotnet-tool-tests", Guid.NewGuid().ToString("N"));
Microsoft.Extensions.Caching.Hybrid.Tests (66)
ExpirationTests.cs (3)
24Guid guid0; 26Func<CancellationToken, ValueTask<Guid>> callback = static _ => new(Guid.NewGuid());
HybridCacheEventSourceTests.cs (1)
19Assert.Equal(Guid.Parse("b3aca39e-5dc9-5e21-f669-b72225b66cfc"), listener.Source.Guid); // from name
L2Tests.cs (1)
19return Guid.NewGuid().ToString();
LocalInvalidationTests.cs (27)
28var value = await cache.GetOrCreateAsync<Guid>("abc", ct => new(Guid.NewGuid())); 31Assert.Equal(value, await cache.GetOrCreateAsync<Guid>("abc", ct => new(Guid.NewGuid()))); 35Assert.Equal(value, await cache.GetOrCreateAsync<Guid>("abc", ct => new(Guid.NewGuid()))); 39var newValue = await cache.GetOrCreateAsync<Guid>("abc", ct => new(Guid.NewGuid())); 43Assert.Equal(newValue, await cache.GetOrCreateAsync<Guid>("abc", ct => new(Guid.NewGuid()))); 62Guid lastValue = Guid.Empty; 80var value = await cache.GetOrCreateAsync<Guid>(key, ct => new(Guid.NewGuid()), tags: tags); 82if (lastValue != Guid.Empty) 88var tmp = await cache.GetOrCreateAsync<Guid>(key, ct => new(Guid.NewGuid()), tags: tags); 94tmp = await cache.GetOrCreateAsync<Guid>(key, ct => new(Guid.NewGuid()), tags: tags); 100var newValue = await cache.GetOrCreateAsync<Guid>(key, ct => new(Guid.NewGuid()), tags: tags); 105tmp = await cache.GetOrCreateAsync<Guid>(key, ct => new(Guid.NewGuid()), tags: tags); 112newValue = await cache.GetOrCreateAsync<Guid>(key, ct => new(Guid.NewGuid()), tags: tags); 117tmp = await cache.GetOrCreateAsync<Guid>(key, ct => new(Guid.NewGuid()), tags: tags);
PayloadTests.cs (4)
292_ = await cache.GetOrCreateAsync<Guid>(key, ct => new(Guid.NewGuid()), tags: tags); 319_ = await cache.GetOrCreateAsync<Guid>(key, ct => new(Guid.NewGuid()), tags: tags);
RedisTests.cs (2)
75await cache.GetOrCreateAsync<Guid>(key, _ => 78return new(Guid.NewGuid());
ServiceConstructionTests.cs (2)
94var expected = Guid.NewGuid().ToString(); 107var expected = Guid.NewGuid().ToString();
SizeTests.cs (2)
67actual = await cache.GetOrCreateAsync<string>(key!, ct => new(Guid.NewGuid().ToString())); 130actual = await cache.GetOrCreateAsync<MutablePoco>(key!, ct => new(new MutablePoco { Value = Guid.NewGuid().ToString() }));
StampedeTests.cs (20)
96var results = new Task<Guid>[callerCount]; 109return Guid.NewGuid(); 120var first = await results[0]; 145return Guid.NewGuid(); 156var second = await results[0]; 183var results = new Task<Guid>[callerCount]; 200return Guid.NewGuid(); 261var results = new Task<Guid>[callerCount]; 278return Guid.NewGuid(); 344return Guid.NewGuid(); 351return Guid.NewGuid(); 384return new Immutable(Guid.NewGuid()); 391return new Immutable(Guid.NewGuid()); 428return new Mutable(Guid.NewGuid()); 435return new Mutable(Guid.NewGuid()); 456var key = new DefaultHybridCache.StampedeKey(Guid.NewGuid().ToString(), default); 482private class Mutable(Guid value) 484public Guid Value => value; 488public sealed class Immutable(Guid value) 490public Guid Value => value;
TypeTests.cs (2)
15[InlineData(typeof(Guid))] // non-primitive but blittable 16[InlineData(typeof(Guid?))]
UnreliableL2Tests.cs (2)
119private static ValueTask<Guid> NewGuid(CancellationToken cancellationToken) => new(Guid.NewGuid());
Microsoft.Extensions.Caching.MicroBenchmarks (1)
DistributedCacheBenchmarks.cs (1)
71keys[i] = Guid.NewGuid().ToString();
Microsoft.Extensions.Caching.SqlServer.Tests (19)
SqlServerCacheWithDatabaseTest.cs (19)
76var key = Guid.NewGuid().ToString(); 124var key = Guid.NewGuid().ToString(); 164var key = Guid.NewGuid().ToString(); 231var key = Guid.NewGuid().ToString(); 257var key = Guid.NewGuid().ToString(); 289var key = Guid.NewGuid().ToString(); 314var key = Guid.NewGuid().ToString(); 337var key = Guid.NewGuid().ToString(); 362var key = Guid.NewGuid().ToString(); 391var key = Guid.NewGuid().ToString(); 418var key = Guid.NewGuid().ToString(); 458var key = Guid.NewGuid().ToString(); 487var key = Guid.NewGuid().ToString(); 519var key = Guid.NewGuid().ToString(); 575var key = Guid.NewGuid().ToString(); 604var key = Guid.NewGuid().ToString(); 632var key = Guid.NewGuid().ToString().ToLower(CultureInfo.InvariantCulture); // lower case 651var key = string.Format(CultureInfo.InvariantCulture, " {0} ", Guid.NewGuid()); // with trailing spaces 672var key = Guid.NewGuid().ToString();
Microsoft.Extensions.Compliance.Abstractions.Tests (6)
Redaction\RedactorTest.cs (6)
116string data = Guid.NewGuid().ToString(); 131var data = Guid.NewGuid().ToString(); 152var data = Guid.NewGuid().ToString(); 170var data = Guid.NewGuid().ToString(); 244var data = Guid.NewGuid();
Microsoft.Extensions.Compliance.Redaction.Tests (1)
HmacRedactorTest.cs (1)
69var toRedact = Guid.NewGuid().ToString();
Microsoft.Extensions.Compliance.Testing (1)
src\LegacySupport\StringSyntaxAttribute\StringSyntaxAttribute.cs (1)
51/// <summary>The syntax identifier for strings containing <see cref="Guid"/> format specifiers.</summary>
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (6)
Linux\LinuxUtilizationProviderTests.cs (4)
29var meterName = Guid.NewGuid().ToString(); 99var meterName = Guid.NewGuid().ToString(); 167var meterName = Guid.NewGuid().ToString(); 213var meterName = Guid.NewGuid().ToString();
Providers\ConditionallyFaultProvider.cs (2)
15private readonly Guid _errorGuid; 19public ConditionallyFaultProvider(Guid errorGuid)
Microsoft.Extensions.Diagnostics.Testing.Tests (26)
Metrics\MeasurementExtensionsTests.cs (11)
17using var meter = new Meter(Guid.NewGuid().ToString()); 42using var meter = new Meter(Guid.NewGuid().ToString()); 67using var meter = new Meter(Guid.NewGuid().ToString()); 95using var meter = new Meter(Guid.NewGuid().ToString()); 126using var meter = new Meter(Guid.NewGuid().ToString()); 143using var meter = new Meter(Guid.NewGuid().ToString()); 160using var meter = new Meter(Guid.NewGuid().ToString()); 177using var meter = new Meter(Guid.NewGuid().ToString()); 194using var meter = new Meter(Guid.NewGuid().ToString()); 211using var meter = new Meter(Guid.NewGuid().ToString()); 228using var meter = new Meter(Guid.NewGuid().ToString());
Metrics\MetricCollectorTests.cs (15)
21Assert.Throws<ArgumentNullException>(() => new MetricCollector<long>(new Meter(Guid.NewGuid().ToString()), null!)); 25Assert.Throws<ArgumentException>(() => new MetricCollector<long>(new Meter(Guid.NewGuid().ToString()), string.Empty)); 33using var meter = new Meter(Guid.NewGuid().ToString()); 36Assert.Throws<InvalidOperationException>(() => new MetricCollector<Guid>(meter, "Counter")); 37Assert.Throws<InvalidOperationException>(() => new MetricCollector<Guid>(null, meter.Name, "Counter")); 48using var meter = new Meter(Guid.NewGuid().ToString()); 94using var meter = new Meter(Guid.NewGuid().ToString()); 140using var meter = new Meter(Guid.NewGuid().ToString(), null, null, scope); 188using var meter = new Meter(Guid.NewGuid().ToString()); 241using var meter = new Meter(Guid.NewGuid().ToString()); 279using var meter = new Meter(Guid.NewGuid().ToString()); 305using var meter = new Meter(Guid.NewGuid().ToString()); 337using var meter = new Meter(Guid.NewGuid().ToString()); 352using var meter = new Meter(Guid.NewGuid().ToString()); 390using var meter = new Meter(Guid.NewGuid().ToString());
Microsoft.Extensions.Hosting.Testing.Tests (1)
HostingFakesExtensionsTests.cs (1)
313var message = Guid.NewGuid().ToString();
Microsoft.Extensions.Http.Polly.Tests (4)
HttpRequestMessageExtensionsTest.cs (3)
17var expected = new Context(Guid.NewGuid().ToString()); 67var expected = new Context(Guid.NewGuid().ToString()); 91request.Options.Set(new HttpRequestOptionsKey<Context>(HttpRequestMessageExtensions.PolicyExecutionContextKey), new Context(Guid.NewGuid().ToString()));
PolicyHttpMessageHandlerTest.cs (1)
307var expectedContext = new Context(Guid.NewGuid().ToString());
Microsoft.Extensions.Identity.Core (1)
UserManager.cs (1)
449return Task.FromResult(Guid.NewGuid().ToString());
Microsoft.Extensions.Identity.Stores (5)
IdentityRole.cs (2)
21Id = Guid.NewGuid().ToString(); 75public virtual string? ConcurrencyStamp { get; set; } = Guid.NewGuid().ToString();
IdentityUser.cs (3)
21Id = Guid.NewGuid().ToString(); 22SecurityStamp = Guid.NewGuid().ToString(); 106public virtual string? ConcurrencyStamp { get; set; } = Guid.NewGuid().ToString();
Microsoft.Extensions.Options.Contextual.Tests (1)
AcceptanceTests.cs (1)
22public Guid UserId { get; set; }
Microsoft.Extensions.SecretManager.Tools.Tests (9)
SecretManagerTests.cs (5)
90new KeyValuePair<string, string>("key1", Guid.NewGuid().ToString()), 91new KeyValuePair<string, string>("Facebook:AppId", Guid.NewGuid().ToString()), 285new KeyValuePair<string, string>("key1", Guid.NewGuid().ToString()), 286new KeyValuePair<string, string>("Facebook:AppId", Guid.NewGuid().ToString()), 349secretManager.RunInternal("set", "key1", Guid.NewGuid().ToString(), "--verbose");
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (1)
21Root = Path.Combine(ResolveLinks(Path.GetTempPath()), "dotnet-tool-tests", Guid.NewGuid().ToString("N"));
TemporaryFileProvider.cs (1)
14Root = Directory.CreateDirectory(Path.Combine(Path.GetTempPath(), "tmpfiles", Guid.NewGuid().ToString())).FullName;
UserSecretsTestFixture.cs (2)
51userSecretsId = Guid.NewGuid().ToString(); 57var projectPath = Directory.CreateDirectory(Path.Combine(Path.GetTempPath(), "usersecretstest", Guid.NewGuid().ToString()));
Microsoft.Extensions.Telemetry.PerformanceTests (8)
BenchLogger.cs (1)
66if (o?.GetType() == typeof(Guid))
ClassicCodeGen.cs (3)
29private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Int64, global::System.Int64, global::System.Int32, global::System.Guid, global::System.Exception?> __ValueTypesCallback = 30global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Int64, global::System.Int64, global::System.Int32, global::System.Guid>(global::Microsoft.Extensions.Logging.LogLevel.Error, new global::Microsoft.Extensions.Logging.EventId(558429541, nameof(ValueTypes)), "Range [{start}..{end}], options {options}, guid {guid}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 32public static void ValueTypes(global::Microsoft.Extensions.Logging.ILogger logger, global::System.Int64 start, global::System.Int64 end, global::System.Int32 options, global::System.Guid guid)
ExtendedLoggerBench.cs (3)
26private static readonly Guid _guid = new(new byte[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 }); 33private static readonly Action<ILogger, long, long, int, Guid, Exception?> _loggerMessage_valueTypes = LoggerMessage.Define<long, long, int, Guid>(
ModernCodeGen.cs (1)
47public static void ValueTypes(global::Microsoft.Extensions.Logging.ILogger logger, long start, long end, int options, global::System.Guid guid)
Microsoft.Gen.ComplianceReports.Unit.Tests (1)
GeneratorTests.cs (1)
141var outputPath = Guid.NewGuid().ToString();
Microsoft.Gen.Logging.Generated.Tests (3)
LogPropertiesTests.cs (2)
93P3 = Guid.NewGuid(), 568var recordToLog = new MyReadonlyRecordStruct(int.MaxValue, Guid.NewGuid().ToString());
test\Generators\Microsoft.Gen.Logging\TestClasses\LogPropertiesSpecialTypesExtensions.cs (1)
18public Guid P3 { get; set; }
Microsoft.Gen.MetadataExtractor.Unit.Tests (1)
GeneratorTests.cs (1)
169var outputPath = Guid.NewGuid().ToString();
Microsoft.Gen.Metrics.Generated.Tests (1)
MetricTests.cs (1)
24_meterName = BaseMeterName + Guid.NewGuid().ToString("d", CultureInfo.InvariantCulture);
Microsoft.Gen.MetricsReports.Unit.Tests (1)
GeneratorTests.cs (1)
122var outputPath = Guid.NewGuid().ToString();
Microsoft.Interop.ComInterfaceGenerator (8)
ComInterfaceInfo.cs (8)
28public Guid InterfaceId { get; init; } 40Guid interfaceId, 82if (!TryGetGuid(symbol, syntax, out Guid? guid, out DiagnosticInfo? guidDiagnostic)) 105guid ?? Guid.Empty, 164Guid.Empty, 326private static bool TryGetGuid(INamedTypeSymbol interfaceSymbol, InterfaceDeclarationSyntax syntax, [NotNullWhen(true)] out Guid? guid, [NotNullWhen(false)] out DiagnosticInfo? diagnostic) 343&& Guid.TryParse(guidStr, out var result))
Microsoft.Maui.Controls (5)
Application\Application.cs (1)
505 var id = Guid.NewGuid().ToString("n");
Element\Element.cs (4)
69 Guid? _id; 120 /// <value>A <see cref="Guid"/> uniquely identifying the element.</value> 123 public Guid Id 128 _id = Guid.NewGuid();
Microsoft.Maui.Controls.Build.Tasks (1)
XamlCTask.cs (1)
367 module.Mvid = Guid.NewGuid();
Microsoft.ML.Core (8)
CommandLine\CmdParser.cs (4)
1129typeBase == typeof(Guid) || 1304else if (type == typeof(System.Guid)) 1880else if (type == typeof(System.Guid)) 2217else if (type == typeof(System.Guid))
ComponentModel\AssemblyLoadingUtils.cs (2)
112Guid guid = Guid.NewGuid();
Utilities\ResourceManagerUtils.cs (2)
262Guid guid = Guid.NewGuid();
Microsoft.ML.Data (4)
DataLoadSave\Database\DbExtensions.cs (1)
41return typeof(Guid);
EntryPoints\EntryPointNode.cs (3)
65VarName = $"Var_{Guid.NewGuid().ToString("N")}"; 105VarName = $"Var_{Guid.NewGuid().ToString("N")}"; 140VarName = $"Var_{Guid.NewGuid().ToString("N")}";
Microsoft.ML.EntryPoints (2)
FeatureCombiner.cs (1)
202return Guid.NewGuid().ToString("N");
TrainTestMacro.cs (1)
115input.PipelineId = input.PipelineId ?? Guid.NewGuid().ToString("N");
Microsoft.ML.GenAI.Core (2)
CausalLMPipelineChatClient.cs (2)
52ResponseId = Guid.NewGuid().ToString("N"), 66string responseId = Guid.NewGuid().ToString("N");
Microsoft.ML.Maml (1)
MAML.cs (1)
140string.Format(CultureInfo.InvariantCulture, "Error_{0:yyyyMMdd_HHmmss}_{1}.log", DateTime.UtcNow, Guid.NewGuid()));
Microsoft.ML.TensorFlow (1)
TensorflowTransform.cs (1)
154var tempDirPath = Path.GetFullPath(Path.Combine(((IHostEnvironmentInternal)env).TempFilePath, nameof(TensorFlowTransformer) + "_" + Guid.NewGuid()));
Microsoft.ML.Tests (4)
ImagesTests.cs (1)
1282string imageTempPath = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString() + extension);
OnnxConversionTest.cs (3)
647string modelPath = Path.GetTempPath() + Guid.NewGuid().ToString() + ".model.bin"; 648string onnxPath = Path.GetTempPath() + Guid.NewGuid().ToString() + ".model.onnx"; 649string onnxJsonPath = Path.GetTempPath() + Guid.NewGuid().ToString() + ".model.onnx.json";
Microsoft.ML.Tokenizers.Data.Tests (1)
test\Microsoft.ML.Tokenizers.Tests\Utils.cs (1)
53Path.Combine(Path.GetTempPath(), Path.ChangeExtension(Guid.NewGuid().ToString(), extension));
Microsoft.ML.Tokenizers.Tests (1)
Utils.cs (1)
53Path.Combine(Path.GetTempPath(), Path.ChangeExtension(Guid.NewGuid().ToString(), extension));
Microsoft.ML.Vision (2)
DnnRetrainTransform.cs (2)
119var tempDirPath = Path.GetFullPath(Path.Combine(((IHostEnvironmentInternal)env).TempFilePath, nameof(DnnRetrainTransformer) + "_" + Guid.NewGuid())); 418var archivePath = Path.Combine(variablesPath + "-" + Guid.NewGuid().ToString());
Microsoft.VisualBasic.IntegrationTests (1)
InteractionTests.cs (1)
125private static string GetUniqueName() => Guid.NewGuid().ToString("D");
Microsoft.VisualBasic.Tests (9)
Microsoft\VisualBasic\ApplicationServices\SingleInstanceTests.cs (1)
73private static string GetUniqueName() => Guid.NewGuid().ToString();
Microsoft\VisualBasic\ApplicationServices\WindowsFormsApplicationBaseTests.cs (5)
31new AssemblyName(Guid.NewGuid().ToString()) { Version = version }, 34assemblyBuilder.DefineDynamicModule(Guid.NewGuid().ToString()); 41string guid = Guid.NewGuid().ToString(); 48string guid = Guid.NewGuid().ToString(); 55string guid = Guid.NewGuid().ToString();
Microsoft\VisualBasic\Devices\AudioTests.cs (1)
11private static string GetUniqueName() => Guid.NewGuid().ToString("D");
Microsoft\VisualBasic\MyServices\ClipboardProxyTests.cs (1)
22private static string GetUniqueText() => Guid.NewGuid().ToString("D");
Microsoft\VisualBasic\MyServices\RegistryProxyTests.cs (1)
40private static string GetUniqueName() => Guid.NewGuid().ToString("D");
Microsoft.VisualStudio.LanguageServices (227)
CodeLens\CodeLensCallbackListener.cs (7)
64public async Task<ImmutableDictionary<Guid, string>> GetProjectVersionsAsync(ImmutableArray<Guid> projectGuids, CancellationToken cancellationToken) 68var builder = ImmutableDictionary.CreateBuilder<Guid, string>(); 72var projectGuid = _workspace.GetProjectGuid(project.Id); 158Guid projectGuid, string filePath, TextSpan span, DocumentId? sourceGeneratorDocumentId, CancellationToken cancellationToken) 173Solution solution, Guid projectGuid, string filePath, TextSpan textSpan, DocumentId? sourceGeneratorDocumentId, CancellationToken cancellationToken) 234Solution solution, Guid projectGuid, string filePath, DocumentId? sourceGeneratorDocumentId, CancellationToken cancellationToken)
CodeMarkers\ManagedCodeMarkers.cs (2)
254public bool CodeMarkerEx(int nTimerID, Guid guidData) 544internal CodeMarkerExStartEnd(int begin, int end, Guid guidData)
ColorSchemes\ColorSchemeApplier.ColorScheme.cs (4)
34public Guid Guid { get; } 37public ColorTheme(string name, Guid guid, ColorCategory category) 48public Guid Guid { get; } 51public ColorCategory(string name, Guid guid, ImmutableArray<ColorItem> colors)
ColorSchemes\ColorSchemeApplier.ColorSchemeReader.cs (4)
39var themeGuid = Guid.Parse((string)themeElement.Attribute("GUID")); 50var categoryGuid = Guid.Parse((string)categoryElement.Attribute("GUID"));
ColorSchemes\ColorSchemeApplier.RegistryItemConverter.cs (1)
86static void WriteGuid(MemoryStream bytes, Guid guid)
DebuggerIntelliSense\AbstractDebuggerIntelliSenseContext.cs (3)
261var immediateWindowGuid = Guid.Parse(ToolWindowGuids80.ImmediateWindow); 265Marshal.ThrowExceptionForHR(frame[0].GetGuidProperty((int)__VSFPROPID.VSFPROPID_GuidPersistenceSlot, out var toolWindowGuid));
DebuggerIntelliSense\DebuggerIntellisenseFilter.cs (2)
88public override int Exec(ref Guid pguidCmdGroup, uint commandId, uint executeInformation, IntPtr pvaIn, IntPtr pvaOut) 103protected override int ExecuteVisualStudio2000(ref Guid pguidCmdGroup, uint commandId, uint executeInformation, IntPtr pvaIn, IntPtr pvaOut)
DocumentOutline\DocumentOutlineView.xaml.cs (3)
86int IOleCommandTarget.QueryStatus(ref Guid pguidCmdGroup, uint cCmds, OLECMD[] prgCmds, IntPtr pCmdText) 135int IOleCommandTarget.Exec(ref Guid pguidCmdGroup, uint nCmdID, uint nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) 168Guid IVsWindowSearch.Category => Guids.DocumentOutlineSearchCategoryId;
EditorConfigSettings\SettingsEditorFactory.cs (5)
28public static readonly Guid SettingsEditorFactoryGuid = new(SettingsEditorFactoryGuidString); 50out Guid pguidCmdUI, 89var textLinesGuid = typeof(IVsTextLines).GUID; 150public int MapLogicalView(ref Guid rguidLogicalView, out string? pbstrPhysicalView) 171public string? GetEditorCaption(string pszMkDocument, string pszPhysicalView, IVsHierarchy pHier, IntPtr punkDocData, out Guid pguidCmdUI)
EditorConfigSettings\SettingsEditorPane.cs (5)
208var logicalView = Guid.Empty; 221var sourceCodeTextEditorGuid = VsEditorFactoryGuid.TextEditor_guid; 299Guid menuGroup, 324public int get_CmdUIGuid(out Guid pGuidCmdId)
EditorConfigSettings\SettingsEditorPane.SearchHandler.cs (2)
58public Guid Category { get; } = Guid.Empty;
ExternalAccess\VSTypeScript\Api\IVsTypeScriptVisualStudioProjectFactory.cs (2)
15VSTypeScriptVisualStudioProjectWrapper CreateAndAddToWorkspace(string projectSystemName, string language, string projectFilePath, IVsHierarchy hierarchy, Guid projectGuid); 17ValueTask<VSTypeScriptVisualStudioProjectWrapper> CreateAndAddToWorkspaceAsync(string projectSystemName, string language, string projectFilePath, IVsHierarchy hierarchy, Guid projectGuid, CancellationToken cancellationToken);
ExternalAccess\VSTypeScript\Api\VSTypeScriptContainedLanguageWrapper.cs (4)
25Guid languageServiceGuid) : this(bufferCoordinator, componentModel, project, languageServiceGuid) 36Guid languageServiceGuid) : this(bufferCoordinator, componentModel, workspace, languageServiceGuid) 44Guid languageServiceGuid) 60Guid languageServiceGuid)
FindReferences\Entries\AbstractDocumentSpanEntry.cs (1)
31Guid projectGuid,
FindReferences\Entries\DefinitionItemEntry.cs (1)
24Guid projectGuid,
FindReferences\Entries\DocumentSpanEntry.cs (2)
48Guid projectGuid, 74Guid guid,
FindReferences\StreamingFindUsagesPresenter.cs (4)
271private static (Guid, string projectName) GetGuidAndProjectName(Document document) 284var guid = vsWorkspace?.GetProjectGuid(document.Project.Id) ?? Guid.Empty; 308var guid = new Guid("a80febb4-e7e0-4147-b476-21aaf2453969");
FindReferences\VisualStudioDefinitionsAndReferencesFactory.cs (1)
104var textViewGuid = VSConstants.LOGVIEWID.TextView_guid;
Guids.cs (31)
29public static readonly Guid CSharpProjectExistsInWorkspaceUIContext = new(CSharpProjectExistsInWorkspaceUIContextString); 36public static readonly Guid CSharpPackageId = new(CSharpPackageIdString); 37public static readonly Guid CSharpProjectId = new(CSharpProjectIdString); 38public static readonly Guid CSharpLanguageServiceId = new(CSharpLanguageServiceIdString); 39public static readonly Guid CSharpEditorFactoryId = new(CSharpEditorFactoryIdString); 40public static readonly Guid CSharpCodePageEditorFactoryId = new(CSharpCodePageEditorFactoryIdString); 41public static readonly Guid CSharpCommandSetId = new(CSharpCommandSetIdString); // guidCSharpCmdId 42public static readonly Guid CSharpGroupId = new(CSharpGroupIdString); // guidCSharpGrpId 43public static readonly Guid CSharpRefactorIconId = new(CSharpRefactorIconIdString); // guidCSharpRefactorIcon 44public static readonly Guid CSharpGenerateIconId = new(CSharpGenerateIconIdString); // guidCSharpGenerateIcon 45public static readonly Guid CSharpOrganizeIconId = new(CSharpOrganizeIconIdString); // guidCSharpOrganizeIcon 46public static readonly Guid CSharpDebuggerLanguageId = new(CSharpDebuggerLanguageIdString); 47public static readonly Guid CSharpLibraryId = new(CSharpLibraryIdString); 80public static readonly Guid VisualBasicProjectExistsInWorkspaceUIContext = new(VisualBasicProjectExistsInWorkspaceUIContextString); 82public static readonly Guid VisualBasicPackageId = new(VisualBasicPackageIdString); 83public static readonly Guid VisualBasicCompilerServiceId = new(VisualBasicCompilerServiceIdString); 84public static readonly Guid VisualBasicLanguageServiceId = new(VisualBasicLanguageServiceIdString); 85public static readonly Guid VisualBasicEditorFactoryId = new(VisualBasicEditorFactoryIdString); 86public static readonly Guid VisualBasicCodePageEditorFactoryId = new(VisualBasicCodePageEditorFactoryIdString); 87public static readonly Guid VisualBasicLibraryId = new(VisualBasicLibraryIdString); 89public static readonly Guid VisualBasicProjectId = new(VisualBasicProjectIdString); 92public static readonly Guid VisualBasicDebuggerLanguageId = new(VisualBasicDebuggerLanguageIdString); 101public static readonly Guid FSharpPackageId = new(FSharpPackageIdString); 118public static readonly Guid RoslynPackageId = new(RoslynPackageIdString); 119public static readonly Guid RoslynCommandSetId = new(RoslynCommandSetIdString); 120public static readonly Guid RoslynGroupId = new(RoslynGroupIdString); 123public static readonly Guid ValueTrackingToolWindowId = new(ValueTrackingToolWindowIdString); 126public static readonly Guid StackTraceExplorerToolWindowId = new(StackTraceExplorerToolWindowIdString); 128public static readonly Guid StackTraceExplorerCommandId = new(StackTraceExplorerCommandIdString); 131public static readonly Guid DocumentOutlineSearchCategoryId = new(DocumentOutlineSearchCategoryIdString); 136public static readonly Guid GlobalHubClientPackageGuid = new("11AD60FC-6D87-4674-8F88-9ABE79176CBE");
Implementation\AbstractCodePageEditorFactory.cs (3)
30out Guid pguidCmdUI, 38pguidCmdUI = Guid.Empty; 58int IVsEditorFactory.MapLogicalView(ref Guid rguidLogicalView, out string pbstrPhysicalView)
Implementation\AbstractEditorFactory.cs (6)
67out Guid pguidCmdUI, 75pguidCmdUI = Guid.Empty; 184public string GetEditorCaption(string pszMkDocument, string pszPhysicalView, IVsHierarchy pHier, IntPtr punkDocData, out Guid pguidCmdUI) 196public int MapLogicalView(ref Guid rguidLogicalView, out string? pbstrPhysicalView) 264out Guid pguidCmdUI) 268pguidCmdUI = Guid.Empty;
Implementation\AbstractOleCommandTarget.Execute.cs (2)
15public virtual int Exec(ref Guid pguidCmdGroup, uint commandId, uint executeInformation, IntPtr pvaIn, IntPtr pvaOut) 49protected virtual int ExecuteVisualStudio2000(ref Guid pguidCmdGroup, uint commandId, uint executeInformation, IntPtr pvaIn, IntPtr pvaOut)
Implementation\AbstractOleCommandTarget.Query.cs (2)
15public int QueryStatus(ref Guid pguidCmdGroup, uint commandCount, OLECMD[] prgCmds, IntPtr commandText) 32private int QueryVisualStudio2014Status(ref Guid pguidCmdGroup, uint commandCount, OLECMD[] prgCmds, IntPtr commandText)
Implementation\VisualStudioUIContextActivationService.cs (1)
19public IDisposable ExecuteWhenActivated(Guid uiContext, Action action)
Implementation\VisualStudioWorkspaceContextService.cs (2)
20private static readonly Guid s_liveShareGuestUIContextGuid = Guid.Parse("fd93f3eb-60da-49cd-af15-acda729e357e");
InlineRename\InlineRenameUndoManager.cs (1)
55public void GetUnitType(out Guid pClsid, [ComAliasName("Microsoft.VisualStudio.OLE.Interop.LONG")] out int plID)
Interactive\VsInteractiveWindowPackage.cs (3)
32protected abstract Guid LanguageServiceGuid { get; } 33protected abstract Guid ToolWindowId { get; } 85int IVsToolWindowFactory.CreateToolWindow(ref Guid rguidPersistenceSlot, uint id)
Interactive\VsInteractiveWindowProvider.cs (2)
66protected abstract Guid LanguageServiceGuid { get; } 67protected abstract Guid Id { get; }
KeybindingReset\KeybindingResetDetector.cs (4)
58private static readonly Guid s_resharperPackageGuid = new("0C6E6407-13FC-4878-869A-C8B4016C57FE"); 59private static readonly Guid s_resharperCommandGroup = new("47F03277-5055-4922-899C-0F7F30D26BF1"); 392public int QueryStatus(ref Guid pguidCmdGroup, uint cCmds, OLECMD[] prgCmds, IntPtr pCmdText) 401public int Exec(ref Guid pguidCmdGroup, uint nCmdID, uint nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
LanguageServer\Handler\Diagnostics\VisualStudioDiagnosticProjectInformationService.cs (2)
23var guid = workspace.GetProjectGuid(project.Id); 24if (guid != Guid.Empty)
LanguageService\AbstractLanguageService.cs (1)
11public abstract Guid LanguageServiceId { get; }
LanguageService\AbstractLanguageService`2.cs (1)
76protected abstract Guid DebuggerLanguageId { get; }
LanguageService\AbstractLanguageService`2.IVsContainedLanguageFactory.cs (1)
32var webFileCtxServiceGuid = typeof(IWebFileCtxService).GUID;
LanguageService\AbstractLanguageService`2.IVsLanguageDebugInfo.cs (1)
19int IVsLanguageDebugInfo.GetLanguageID(IVsTextBuffer pBuffer, int iLine, int iCol, out Guid pguidLanguageID)
LanguageService\AbstractLanguageService`2.VsLanguageDebugInfo.cs (3)
32private readonly Guid _languageId; 40Guid languageId, 58public int GetLanguageID(IVsTextBuffer pBuffer, int iLine, int iCol, out Guid pguidLanguageID)
Library\AbstractLibraryManager.cs (2)
15internal readonly Guid LibraryGuid; 22protected AbstractLibraryManager(Guid libraryGuid, IComponentModel componentModel, IServiceProvider serviceProvider)
Library\AbstractLibraryManager_IOleCommandTarget.cs (4)
12protected virtual bool TryQueryStatus(Guid commandGroup, uint commandId, ref OLECMDF commandFlags) 15protected virtual bool TryExec(Guid commandGroup, uint commandId) 18int IOleCommandTarget.Exec(ref Guid pguidCmdGroup, uint nCmdID, uint nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) 28int IOleCommandTarget.QueryStatus(ref Guid pguidCmdGroup, uint cCmds, OLECMD[] prgCmds, IntPtr pCmdText)
Library\AbstractLibraryManager_IVsLibrary.cs (2)
23int IVsLibrary.GetGuid(out Guid ppguidLib) 25ppguidLib = Guid.Empty;
Library\AbstractLibraryManager_IVsSimpleLibrary2.cs (1)
41int IVsSimpleLibrary2.GetGuid(out Guid pguidLib)
Library\AbstractLibraryService.cs (2)
14public Guid LibraryId { get; } 23Guid libraryId,
Library\AbstractObjectList.cs (3)
58protected virtual bool TryGetContextMenu(uint index, out Guid menuGuid, out int menuId) 60menuGuid = Guid.Empty; 183int IVsSimpleObjectList2.GetContextMenu(uint index, out Guid pclsidActive, out int pnMenuId, out IOleCommandTarget ppCmdTrgtActive)
Library\ObjectBrowser\AbstractObjectBrowserLibraryManager.cs (3)
48Guid libraryGuid, 452protected override bool TryQueryStatus(Guid commandGroup, uint commandId, ref OLECMDF commandFlags) 475protected override bool TryExec(Guid commandGroup, uint commandId)
Library\ObjectBrowser\ObjectList.cs (2)
788protected override bool TryGetContextMenu(uint index, out Guid menuGuid, out int menuId) 792menuGuid = Guid.Empty;
Library\VsNavInfo\NavInfo.cs (1)
132public int GetLibGuid(out Guid pGuid)
NavigateTo\RoslynSearchResultPreviewPanel.cs (1)
27Guid projectGuid,
NavigateTo\RoslynSearchResultViewFactory.cs (2)
85var projectGuid = _provider._workspace.GetProjectGuid(document.Project.Id); 86if (projectGuid == Guid.Empty)
Notification\VSNotificationServiceFactory.cs (2)
71rclsidComp: Guid.Empty, // unused 98rclsidComp: Guid.Empty, // unused
Packaging\PackageInstallerServiceFactory.cs (12)
278var projectGuid = Workspace.GetProjectGuid(projectId); 279if (dteProject != null && projectGuid != Guid.Empty) 298Guid projectGuid, 373string packageName, Guid projectGuid, EnvDTE.DTE dte, EnvDTE.Project dteProject, 558var projectGuid = Workspace.GetProjectGuid(projectId); 559if (projectGuid != Guid.Empty) 574Guid projectGuid, 590private static async Task<ImmutableDictionary<string, string>> GetInstalledPackagesMapAsync(INuGetProjectService nugetService, Guid projectGuid, CancellationToken cancellationToken) 697var nugetGuid = new Guid("5fcc8577-4feb-4d04-ad72-d6c629b083cc"); 717var extensionGuid = new Guid("042C2B4B-C7F7-49DB-B7A2-402EB8DC7892"); 718var emptyGuid = Guid.Empty;
Packaging\PackageInstallerServiceFactory_UndoRedo.cs (7)
20Guid projectGuid, EnvDTE.DTE dte, EnvDTE.Project dteProject, IOleUndoManager undoManager, 41Guid projectGuid, EnvDTE.DTE dte, EnvDTE.Project dteProject, IOleUndoManager undoManager, 61protected readonly Guid projectGuid; 77Guid projectGuid, 116public void GetUnitType(out Guid pClsid, out int plID) 133Guid projectGuid, 168Guid projectGuid,
PdbSourceDocument\PdbSourceDocumentOutputWindowLogger.cs (2)
25private static readonly Guid s_outputPaneGuid = new Guid("f543e896-2e9c-48b8-8fac-d1d5030b4b89"); 105var paneGuid = s_outputPaneGuid;
PreviewPane\PreviewPane.xaml.cs (4)
56Guid optionPageGuid = default) 341private readonly Guid _optionPageGuid; 354int IOleCommandTarget.QueryStatus(ref Guid pguidCmdGroup, uint cCmds, OLECMD[] prgCmds, IntPtr pCmdText) 365int IOleCommandTarget.Exec(ref Guid pguidCmdGroup, uint nCmdID, uint nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
PreviewPane\PreviewPaneService.cs (6)
89Guid optionPageGuid = default; 110private static Guid GetOptionPageGuidForOptionName(string optionName, string optionLanguage) 116return Guid.Parse(Guids.CSharpOptionPageNamingStyleIdString); 120return Guid.Parse(Guids.VisualBasicOptionPageNamingStyleIdString); 127return Guid.Parse(Guids.CSharpOptionPageCodeStyleIdString); 131return Guid.Parse(Guids.VisualBasicOptionPageVBSpecificIdString);
ProjectSystem\BrokeredService\WorkspaceProjectFactoryService.cs (1)
27Guid.NewGuid(), // TODO: figure out some other side-channel way of communicating this
ProjectSystem\CPS\IWorkspaceProjectContext.cs (1)
25Guid Guid { get; set; }
ProjectSystem\CPS\IWorkspaceProjectContextFactory.cs (3)
33Task<IWorkspaceProjectContext> CreateProjectContextAsync(Guid id, string uniqueName, string languageName, EvaluationData data, object? hostObject, CancellationToken cancellationToken); 36/// Names of msbuild properties whose values <see cref="CreateProjectContextAsync(Guid, string, string, EvaluationData, object?, CancellationToken)"/> will receive via <see cref="EvaluationData"/>. 41/// Names of msbuild items whose values <see cref="CreateProjectContextAsync(Guid, string, string, EvaluationData, object?, CancellationToken)"/> will receive via <see cref="EvaluationData"/>.
ProjectSystem\Extensions\IVsHierarchyExtensions.cs (3)
39public static bool TryGetGuidProperty(this IVsHierarchy hierarchy, int propertyId, out Guid guid) 42public static bool TryGetGuidProperty(this IVsHierarchy hierarchy, __VSHPROPID propertyId, out Guid guid) 60public static bool TryGetTypeGuid(this IVsHierarchy hierarchy, out Guid typeGuid)
ProjectSystem\Legacy\AbstractLegacyProject.cs (4)
152var projectHierarchyGuid = GetProjectIDGuid(hierarchy); 293private static Guid GetProjectIDGuid(IVsHierarchy hierarchy) 295if (hierarchy.TryGetGuidProperty(__VSHPROPID.VSHPROPID_ProjectIDGuid, out var guid)) 300return Guid.Empty;
ProjectSystem\MetadataReferences\VisualStudioMetadataReferenceManager.NativeMethods.cs (1)
12private static readonly Guid s_IID_IMetaDataImport = new("7DAC8207-D3AE-4c75-9B67-92801A497D44");
ProjectSystem\MiscellaneousFilesWorkspace.cs (2)
37private readonly ConcurrentDictionary<Guid, LanguageInformation> _languageInformationByLanguageGuid = []; 106public void RegisterLanguage(Guid languageGuid, string languageName, string scriptExtension)
ProjectSystem\VisualStudioProjectCreationInfo.cs (1)
14public Guid ProjectGuid { get; set; }
ProjectSystem\VisualStudioProjectFactory.cs (5)
115static Guid GetSolutionSessionId() 122_ = Guid.TryParse(sessionIdProperty, out var solutionSessionId); 127VSTypeScriptVisualStudioProjectWrapper IVsTypeScriptVisualStudioProjectFactory.CreateAndAddToWorkspace(string projectSystemName, string language, string projectFilePath, IVsHierarchy hierarchy, Guid projectGuid) 134string projectSystemName, string language, string projectFilePath, IVsHierarchy hierarchy, Guid projectGuid, CancellationToken cancellationToken)
ProjectSystem\VisualStudioWorkspace.cs (1)
45internal abstract Guid GetProjectGuid(ProjectId projectId);
ProjectSystem\VisualStudioWorkspaceImpl.AbstractAddRemoveUndoUnit.cs (1)
29public void GetUnitType(out Guid pClsid, out int plID)
ProjectSystem\VisualStudioWorkspaceImpl.cs (6)
83private ImmutableDictionary<ProjectId, Guid> _projectToGuidMap = ImmutableDictionary<ProjectId, Guid>.Empty; 240internal void AddProjectToInternalMaps(ProjectSystemProject project, IVsHierarchy? hierarchy, Guid guid, string projectSystemName) 1182if (ErrorHandler.Succeeded(openDocumentService.IsDocumentOpen(null, 0, filePath, Guid.Empty, 0, out _, null, out var frame, out _))) 1394internal override Guid GetProjectGuid(ProjectId projectId) 1397return _projectToGuidMap.GetValueOrDefault(projectId, defaultValue: Guid.Empty);
ProjectSystem\VisualStudioWorkspaceImpl.RenameDocumentUndoUnit.cs (1)
44public void GetUnitType(out Guid pClsid, out int plID)
RoslynPackage.cs (1)
170public override IVsAsyncToolWindowFactory GetAsyncToolWindowFactory(Guid toolWindowType)
Snippets\AbstractSnippetExpansionLanguageHelper.cs (1)
30public abstract Guid LanguageServiceGuid { get; }
Snippets\AbstractSnippetInfoService.cs (2)
28private readonly Guid _languageGuidForSnippets; 49Guid languageGuidForSnippets,
Snippets\ISnippetExpansionLanguageHelper.cs (1)
22Guid LanguageServiceGuid { get; }
Snippets\SnippetExpansionClient.cs (1)
61private static readonly string s_fullMethodCallDescriptionSentinel = Guid.NewGuid().ToString("N");
StackTraceExplorer\StackTraceExplorerToolWindow.cs (2)
154var refCommandId = new Guid(Guids.StackTraceExplorerCommandIdString); 171int IOleCommandTarget.Exec(ref Guid pguidCmdGroup, uint nCmdID, uint nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
TaskList\ExternalErrorDiagnosticUpdateSource.cs (4)
139public void AddNewErrors(ProjectId projectId, Guid projectHierarchyGuid, ImmutableArray<DiagnosticData> diagnostics) 166private async ValueTask ProcessDiagnosticsReportAsync(ProjectId projectId, Guid projectHierarchyGuid, ImmutableArray<DiagnosticData> diagnostics, InProgressState state, CancellationToken cancellationToken) 195private static Microsoft.VisualStudio.RpcContracts.DiagnosticManagement.Diagnostic? CreateDiagnostic(ProjectId projectId, Guid projectHierarchyGuid, DiagnosticData diagnostic, Solution solution) 219private static RpcContracts.Utilities.ProjectIdentifier? GetProjectIdentifier(Project? project, Guid projectHierarchyGuid)
TaskList\ProjectExternalErrorReporter.cs (2)
38private readonly Guid _projectHierarchyGuid; 46public ProjectExternalErrorReporter(ProjectId projectId, Guid projectHierarchyGuid, string errorCodePrefix, string language, VisualStudioWorkspaceImpl workspace)
Utilities\IVsLanguageDebugInfo.cs (1)
39int GetLanguageID(IVsTextBuffer pBuffer, int iLine, int iCol, out Guid pguidLanguageID);
Utilities\VisualStudioCommandHandlerHelpers.cs (1)
20Guid commandGroup,
Venus\ContainedLanguage.cs (2)
26private readonly Guid _languageServiceGuid; 72Guid languageServiceGuid,
Venus\ContainedLanguage.IVsContainedLanguage.cs (1)
23public int GetLanguageServiceID(out Guid guidLangService)
Workspace\SourceGeneratedFileManager.cs (3)
73private readonly Dictionary<Guid, SourceGeneratedDocumentIdentity> _directoryInfoOnDiskByContainingDirectoryId = []; 185return Guid.TryParse(guidDirName.ToString(), out var guid) &&
Microsoft.VisualStudio.LanguageServices.CodeLens (3)
ReferenceCodeLensProvider.cs (3)
48private readonly Dictionary<Guid, (string version, HashSet<DataPoint> dataPoints)> _dataPoints = []; 99ImmutableArray<Guid> keys; 105var projectVersions = await _lazyCodeLensCallbackService.Value.InvokeAsync<ImmutableDictionary<Guid, string>>(
Microsoft.VisualStudio.LanguageServices.CSharp (18)
Interactive\CSharpVsInteractiveWindowPackage.cs (3)
16internal static readonly Guid Id = new(IdString); 18protected override Guid ToolWindowId => Id; 19protected override Guid LanguageServiceGuid => LanguageServiceGuids.CSharpLanguageServiceId;
Interactive\CSharpVsInteractiveWindowProvider.cs (2)
52protected override Guid LanguageServiceGuid => LanguageServiceGuids.CSharpLanguageServiceId; 54protected override Guid Id => CSharpVsInteractiveWindowPackage.Id;
LanguageService\CSharpLanguageService.cs (2)
29protected override Guid DebuggerLanguageId 45public override Guid LanguageServiceId
ProjectSystemShim\CSharpProjectShim.cs (1)
101var iid = VSConstants.IID_IUnknown;
ProjectSystemShim\CSharpProjectShim.ICSharpVenusProjectSite.cs (1)
67var projectSiteGuid = typeof(ICSharpProjectSite).GUID;
ProjectSystemShim\CSharpProjectShim.IServiceProvider.cs (2)
15public int QueryService(ref Guid guidService, ref Guid riid, out IntPtr ppvObject)
ProjectSystemShim\Interop\ICSharpProjectRoot.cs (2)
26object GetProjectSite([In] ref Guid riid); 61object CreateFileCodeModel([MarshalAs(UnmanagedType.LPWStr)] string pszFile, [In] ref Guid riid);
SemanticSearch\SemanticSearchToolWindow.cs (1)
25internal static readonly Guid Id = new("91ef2fc9-e39d-1962-9b55-7047b01b40f7");
SemanticSearch\SemanticSearchToolWindowImpl.cs (3)
276var commandUiGuid = VSConstants.GUID_TextEditorFactory; 454public int QueryStatus(ref Guid pguidCmdGroup, uint cCmds, OLECMD[] prgCmds, IntPtr pCmdText) 457public int Exec(ref Guid pguidCmdGroup, uint nCmdID, uint nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
Snippets\CSharpSnippetExpansionLanguageHelper.cs (1)
41public override Guid LanguageServiceGuid => Guids.CSharpLanguageServiceId;
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (13)
PersistentStorage\AbstractPersistentStorageTests.cs (2)
81_persistentFolder = _persistentFolderRoot.CreateDirectory(PersistentFolderPrefix + Guid.NewGuid()); 132var folder = folderRoot.CreateDirectory(PersistentFolderPrefix + "'" + Guid.NewGuid());
ProjectSystemShim\CPS\CSharpCompilerOptionsTests.cs (4)
119var initialGuid = Guid.NewGuid(); 125var newGuid = Guid.NewGuid();
ProjectSystemShim\CSharpHelpers.cs (7)
51return CreateCSharpCPSProjectAsync(environment, projectName, projectGuid: Guid.NewGuid(), commandLineArguments: commandLineArguments); 54public static Task<CPSProject> CreateCSharpCPSProjectAsync(TestEnvironment environment, string projectName, Guid projectGuid, params string[] commandLineArguments) 65return CreateCSharpCPSProjectAsync(environment, projectName, projectFilePath, binOutputPath, projectGuid: Guid.NewGuid(), commandLineArguments: commandLineArguments); 78public static async Task<CPSProject> CreateCSharpCPSProjectAsync(TestEnvironment environment, string projectName, string projectFilePath, string binOutputPath, Guid projectGuid, params string[] commandLineArguments) 106Guid.NewGuid(), 172object ICSharpProjectRoot.CreateFileCodeModel(string pszFile, ref Guid riid) 208object ICSharpProjectRoot.GetProjectSite(ref Guid riid)
Microsoft.VisualStudio.LanguageServices.DevKit (3)
Logging\VSCodeTelemetryLogger.cs (1)
143sessionId ??= Guid.NewGuid().ToString();
src\EditorFeatures\Core\EditAndContinue\Contracts\ManagedHotReloadServiceBridge.cs (2)
19public async ValueTask<InternalContracts.ManagedHotReloadAvailability> GetAvailabilityAsync(Guid module, CancellationToken cancellation) 25public ValueTask PrepareModuleForUpdateAsync(Guid module, CancellationToken cancellation)
Microsoft.VisualStudio.LanguageServices.LiveShare (2)
Client\RemoteLanguageServiceWorkspace.cs (2)
403var logicalView = Guid.Empty;
Microsoft.VisualStudio.LanguageServices.Xaml (3)
Implementation\LanguageServer\Handler\Completion\CompletionResolveData.cs (2)
14public Guid ProjectGuid { get; set; } 15public Guid DocumentGuid { get; set; }
Implementation\XamlTextViewCreationListener.cs (1)
26private static readonly Guid s_serverUIContextGuid = new Guid("39F55746-6E65-4FCF-BEC5-EC0B466EAC0F");
MSBuild (9)
ExceptionHandling.cs (2)
346Guid guid = Guid.NewGuid();
FileUtilities.cs (2)
77string pathWithUpperCase = Path.Combine(Path.GetTempPath(), $"CASESENSITIVETEST{Guid.NewGuid():N}"); 195string testFilePath = Path.Combine(directory, $"MSBuild_{Guid.NewGuid():N}_testFile.txt");
PerformanceLogEventListener.cs (1)
84string logFilePath = Path.Combine(logDirectory, $"perf-{_processIDStr}-{Guid.NewGuid():N}.log");
PrintLineDebuggerWriters.cs (1)
32var errorFile = Path.Combine(LogFileRoot, $"LoggingException_{Guid.NewGuid()}");
TempFileUtilities.cs (2)
85string temporaryDirectory = Path.Combine(TempFileDirectory, $"Temporary{Guid.NewGuid():N}", subfolder ?? string.Empty); 181fileName = $"tmp{Guid.NewGuid():N}";
XMake.cs (1)
1862restoreGlobalProperties[MSBuildConstants.MSBuildRestoreSessionId] = Guid.NewGuid().ToString("D");
MSBuildTaskHost (9)
BinaryReaderExtensions.cs (2)
99public static unsafe Guid ReadGuid(this BinaryReader reader) 101return new Guid(reader.ReadBytes(sizeof(Guid)));
BinaryWriterExtensions.cs (3)
103public static void WriteGuid(this BinaryWriter writer, Guid value) 105Guid val = value; 109for (int i = 0; i < sizeof(Guid); i++, ptr++)
ExceptionHandling.cs (2)
346Guid guid = Guid.NewGuid();
FileUtilities.cs (2)
77string pathWithUpperCase = Path.Combine(Path.GetTempPath(), $"CASESENSITIVETEST{Guid.NewGuid():N}"); 195string testFilePath = Path.Combine(directory, $"MSBuild_{Guid.NewGuid():N}_testFile.txt");
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
287[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Guid))]
Mvc.Api.Analyzers.Test (1)
TestFiles\ApiConventionAnalyzerIntegrationTest\DiagnosticsAreReturned_ForActionResultOfTReturningMethodWithoutAnyAttributes.cs (1)
14public ActionResult<string> Method(Guid? id)
MvcSandbox (1)
Startup.cs (1)
29Guid.NewGuid().ToString(),
MyFrontend (1)
Services\BasketServiceClient.cs (1)
47Id = Guid.NewGuid().ToString("N"),
netstandard (1)
netstandard.cs (1)
859[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Guid))]
OutputCachingSample (2)
Gravatar.cs (1)
10var hash = Guid.NewGuid().ToString("n");
Startup.cs (1)
63var etag = $"\"{Guid.NewGuid():n}\"";
ParameterEndToEnd.ApiService (2)
Program.cs (2)
56public Guid Id { get; set; } = Guid.NewGuid();
PostgresEndToEnd.ApiService (2)
Program.cs (2)
55public Guid Id { get; set; } = Guid.NewGuid();
PrepareTests (8)
MinimizeUtil.cs (8)
46Dictionary<Guid, List<FilePathInfo>> initialWalk() 69static IEnumerable<(Guid mvid, FilePathInfo pathInfo)> walkDirectory(string unitDirPath, string sourceDirectory, string destinationDirectory) 85if (fileName.EndsWith(".dll", StringComparison.Ordinal) && TryGetMvid(sourceFilePath, out var mvid)) 120static string getPeFileName(Guid mvid) => mvid.ToString(); 122string getPeFilePath(Guid mvid) => Path.Combine(duplicateDirectory, getPeFileName(mvid)); 182static void writeWindowsRehydrateContent(StringBuilder builder, IGrouping<string, (Guid Id, FilePathInfo FilePath)> group) 227static void writeUnixRehydrateContent(StringBuilder builder, IGrouping<string, (Guid Id, FilePathInfo FilePath)> group) 306private static bool TryGetMvid(string filePath, out Guid mvid)
PresentationBuildTasks (12)
Microsoft\Build\Tasks\Windows\UidManager.cs (1)
908return Guid.NewGuid().ToString();
MS\Internal\MarkupCompiler\MarkupCompiler.cs (3)
626Guid hashGuid = !string.IsNullOrEmpty(ChecksumAlgorithm) && ChecksumAlgorithm.Equals("SHA256", StringComparison.OrdinalIgnoreCase) 3636private static readonly Guid s_hashSHA256Guid = new Guid(0x8829d00f, 0x11b8, 0x4213, 0x87, 0x8b, 0x77, 0x0e, 0x85, 0x97, 0xac, 0x16); 3637private static readonly Guid s_hashSHA1Guid = new Guid(0xff1816ec, 0xaa5e, 0x4d10, 0x87, 0xf7, 0x6f, 0x49, 0x63, 0x83, 0x34, 0x60);
MS\Internal\Tasks\IPersistFileCheckSum.cs (1)
39void CalculateCheckSum( [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidCheckSumAlgorithm,
MS\Internal\Tasks\TaskFileService.cs (5)
44byte[] GetChecksum(string srcFile, Guid hashGuid); 157public byte[] GetChecksum(string fileName, Guid hashGuid) 435private static Guid s_hashSHA256Guid = new Guid(0x8829d00f, 0x11b8, 0x4213, 0x87, 0x8b, 0x77, 0x0e, 0x85, 0x97, 0xac, 0x16); 436private static Guid s_hashSHA1Guid = new Guid(0xff1816ec, 0xaa5e, 0x4d10, 0x87, 0xf7, 0x6f, 0x49, 0x63, 0x83, 0x34, 0x60); 437private static Guid s_hashMD5Guid = new Guid(0x406ea660, 0x64cf, 0x4c82, 0xb6, 0xf0, 0x42, 0xd4, 0x81, 0x72, 0xa7, 0x99);
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\KnownTypes.cs (1)
5507case KnownElements.Guid: t = typeof(Guid); break;
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\TypeConverterHelper.cs (1)
212else if (typeof(Guid).IsAssignableFrom(type))
PresentationCore (470)
MS\Internal\Ink\ExtendedProperty.cs (5)
19internal ExtendedProperty(Guid id, object value) 21if (id == Guid.Empty) 134internal Guid Id 173Guid guid = _id; //Guid is a ValueType that copies on assignment 208private Guid _id; // id of attribute
MS\Internal\Ink\ExtendedPropertyCollection.cs (9)
103internal bool Contains(Guid attributeId) 146internal void Add(Guid id, object value) 164internal void Remove(Guid id) 195internal Guid[] GetGuidArray() 199Guid[] guids = new Guid[_extendedProperties.Count]; 208return Array.Empty<Guid>(); 221internal object this[Guid attributeId] 326private ExtendedProperty GetExtendedPropertyById(Guid id)
MS\Internal\Ink\GestureRecognizer\NativeRecognizer.cs (4)
478Guid[] propertyGuids = new Guid[]{ StylusPointPropertyIds.X, //required index for SPD 786private static readonly Guid GUID_CONFIDENCELEVEL = new Guid("{7DFE11A7-FB5D-4958-8765-154ADF0D833F}"); 812private static Guid s_Gesture = new Guid(GestureRecognizerGuid);
MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (13)
22private static bool UsesEmbeddedTypeInformation(Guid propGuid) 75internal static void EncodeAttribute(Guid guid, object value, VarEnum type, Stream stream) 305internal static uint EncodeAsISF(Guid id, byte[] data, Stream strm, GuidList guidList, byte compressionAlgorithm, bool fTag) 404internal static uint DecodeAsISF(Stream stream, uint cbSize, GuidList guidList, KnownTagCache.KnownTagIndex tag, ref Guid guid, out object data) 424System.Diagnostics.Debug.Assert(guid == Guid.Empty); 428if (guid == Guid.Empty) 503internal static object DecodeAttribute(Guid guid, Stream stream) 521internal static object DecodeAttribute(Guid guid, Stream memStream, out VarEnum type) 747internal static Guid[] GetUnknownGuids(ExtendedPropertyCollection attributes, out int count) 749Guid[] guids = new Guid[attributes.Count]; 769internal static void Validate(Guid id, object value) 771if (id == Guid.Empty)
MS\Internal\Ink\InkSerializedFormat\DrawingAttributeSerializer.cs (3)
140Guid guid = guidList.FindGuid (tag); 141if (guid == Guid.Empty) 629Guid guid = (i == 0) ? KnownIds.StylusWidth : KnownIds.StylusHeight;
MS\Internal\Ink\InkSerializedFormat\GuidTagList.cs (19)
13private readonly System.Collections.Generic.List<Guid> _customGuids = new System.Collections.Generic.List<Guid>(); 27public bool Add(Guid guid) 46public static KnownTagCache.KnownTagIndex FindKnownTag(Guid guid) 63private KnownTagCache.KnownTagIndex FindCustomTag(Guid guid) 83public KnownTagCache.KnownTagIndex FindTag(Guid guid, bool bFindInKnownListFirst) 109private static Guid FindKnownGuid(KnownTagCache.KnownTagIndex tag) 121return Guid.Empty; 133private Guid FindCustomGuid(KnownTagCache.KnownTagIndex tag) 145return Guid.Empty; 148return (Guid)_customGuids[(int)nIndex]; 157public Guid FindGuid(KnownTagCache.KnownTagIndex tag) 161Guid guid = FindKnownGuid(tag); 163if (Guid.Empty != guid) 170Guid guid = FindCustomGuid(tag); 172if (Guid.Empty != guid) 185public static uint GetDataSizeIfKnownGuid(Guid guid) 231Guid guid = (Guid)_customGuids[i];
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (11)
738Guid guid = guidList.FindGuid(isfTag); 739if (guid == Guid.Empty) 1444private StylusPointPropertyInfo GetStylusPointPropertyInfo(Guid guid, KnownTagCache.KnownTagIndex tag, MetricBlock block) 1561Guid[] buttonguids = null; 1581buttonguids = new Guid[buttonCount]; 1584Guid guid = guidList.FindGuid(strd.Template[cTags]); 1585if (guid == Guid.Empty) 1624Guid guid = guidList.FindGuid(tags[i]); 1625if (guid == Guid.Empty) 2150Guid[] guids = ExtendedPropertySerializer.GetUnknownGuids(stroke.DrawingAttributes.ExtendedProperties, out count); 2157Guid[] descriptionGuids = stroke.StylusPoints.Description.GetStylusPointPropertyIds();
MS\Internal\Ink\InkSerializedFormat\ISFTagAndGuidCache.cs (3)
13public static Guid[] OriginalISFIdTable = { 141public static Guid[] TabletInternalIdTable = { 190public static Guid[] ExtendedISFIdTable = {
MS\Internal\Ink\InkSerializedFormat\StrokeSerializer.cs (5)
179Guid guid = guidList.FindGuid(tag); 180if (guid == Guid.Empty) 303Guid guid = guidList.FindGuid(tag); 304if (guid == Guid.Empty) 943Guid guid,
MS\Internal\Interop\DWrite\IDWriteFactory.cs (2)
12public int QueryInterface(Guid* riid, void** ppvObject) 14return ((delegate* unmanaged<IDWriteFactory*, Guid*, void**, int>)(lpVtbl[0]))((IDWriteFactory*)Unsafe.AsPointer(ref this), riid, ppvObject);
MS\Internal\Interop\DWrite\IDWriteFontCollection.cs (2)
12public int QueryInterface(Guid* riid, void** ppvObject) 14return ((delegate* unmanaged<IDWriteFontCollection*, Guid*, void**, int>)(lpVtbl[0]))((IDWriteFontCollection*)Unsafe.AsPointer(ref this), riid, ppvObject);
MS\Internal\Interop\DWrite\IDWriteFontCollectionLoader.cs (2)
12public int QueryInterface(Guid* riid, void** ppvObject) 14return ((delegate* unmanaged<IDWriteFontCollectionLoader*, Guid*, void**, int>)(lpVtbl[0]))((IDWriteFontCollectionLoader*)Unsafe.AsPointer(ref this), riid, ppvObject);
MS\Internal\Interop\DWrite\IDWriteFontFace.cs (2)
12public int QueryInterface(Guid* riid, void** ppvObject) 14return ((delegate* unmanaged<IDWriteFontFace*, Guid*, void**, int>)(lpVtbl[0]))((IDWriteFontFace*)Unsafe.AsPointer(ref this), riid, ppvObject);
MS\Internal\Interop\DWrite\IDWriteFontFile.cs (2)
12public int QueryInterface(Guid* riid, void** ppvObject) 14return ((delegate* unmanaged<IDWriteFontFile*, Guid*, void**, int>)(lpVtbl[0]))((IDWriteFontFile*)Unsafe.AsPointer(ref this), riid, ppvObject);
MS\Internal\Interop\DWrite\IDWriteFontFileLoader.cs (2)
12public int QueryInterface(Guid* riid, void** ppvObject) 14return ((delegate* unmanaged<IDWriteFontFileLoader*, Guid*, void**, int>)(lpVtbl[0]))((IDWriteFontFileLoader*)Unsafe.AsPointer(ref this), riid, ppvObject);
MS\Internal\Interop\DWrite\IDWriteTextAnalyzer.cs (2)
12public int QueryInterface(Guid* riid, void** ppvObject) 14return ((delegate* unmanaged<IDWriteTextAnalyzer*, Guid*, void**, int>)(lpVtbl[0]))((IDWriteTextAnalyzer*)Unsafe.AsPointer(ref this), riid, ppvObject);
MS\Internal\Interop\IUnknown.cs (1)
8int QueryInterface(Guid* guid, void** comObject);
MS\Internal\IO\Packaging\DeobfuscatingStream.cs (1)
329Guid guid = new Guid(guidString);
MS\Internal\Text\TextInterface\Factory.cs (2)
19private static readonly Guid IID_IDWriteFactory = new Guid(0xb859ee5a, 0xd838, 0x4b5b, 0xa2, 0xe8, 0x1a, 0xdc, 0x7d, 0x93, 0xdb, 0x48); 102Guid iid = IID_IDWriteFactory;
MS\Internal\WindowsRuntime\Windows\UI\ViewManagement\InputPaneRcw.cs (6)
19private static readonly Guid IID_IActivationFactory = Guid.Parse("00000035-0000-0000-C000-000000000046"); 28Guid iid = IID_IActivationFactory; 50void GetIids(out uint iidCount, [MarshalAs(UnmanagedType.LPStruct)] out Guid iids); 59IInputPane2 GetForWindow([In] IntPtr appWindow, [In] ref Guid riid); 67void GetIids(out uint iidCount, [MarshalAs(UnmanagedType.LPStruct)] out Guid iids);
MS\Internal\WindowsRuntime\Windows\UI\ViewManagement\NativeMethods.cs (1)
27internal static extern unsafe int RoGetActivationFactory(IntPtr runtimeClassId, ref Guid iid, [MarshalAs(UnmanagedType.Interface)] out object factory);
MS\Win32\UnsafeNativeMethodsPenimc.cs (8)
151Guid clsid = Guid.Parse(PimcConstants.PimcManager3CLSID); 152Guid iid = Guid.Parse(PimcConstants.IPimcManager3IID); 338Guid unused = Guid.Empty; 606ref Guid clsid, 611ref Guid iid);
MS\Win32\UnsafeNativeMethodsTablet.cs (3)
17internal static extern int CreateRecognizer([In] ref Guid clsid, [Out] out RecognizerSafeHandle hRec); 175public Guid guid; 258public Guid guidProperty;
src\Microsoft.DotNet.Wpf\src\Common\Graphics\wgx_exports.cs (65)
163ref Guid pixelFormatGuid, 203internal static readonly Guid WICPixelFormatDontCare = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x00); 206internal static readonly Guid WICPixelFormat1bppIndexed = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x01); 207internal static readonly Guid WICPixelFormat2bppIndexed = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x02); 208internal static readonly Guid WICPixelFormat4bppIndexed = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x03); 209internal static readonly Guid WICPixelFormat8bppIndexed = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x04); 211internal static readonly Guid WICPixelFormatBlackWhite = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x05); 212internal static readonly Guid WICPixelFormat2bppGray = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x06); 213internal static readonly Guid WICPixelFormat4bppGray = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x07); 214internal static readonly Guid WICPixelFormat8bppGray = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x08); 220internal static readonly Guid WICPixelFormat16bppBGR555 = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x09); 221internal static readonly Guid WICPixelFormat16bppBGR565 = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x0a); 222internal static readonly Guid WICPixelFormat16bppGray = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x0b); 225internal static readonly Guid WICPixelFormat24bppBGR = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x0c); 226internal static readonly Guid WICPixelFormat24bppRGB = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x0d); 229internal static readonly Guid WICPixelFormat32bppBGR = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x0e); 230internal static readonly Guid WICPixelFormat32bppBGRA = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x0f); 231internal static readonly Guid WICPixelFormat32bppPBGRA = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x10); 232internal static readonly Guid WICPixelFormat32bppGrayFloat = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x11); 238internal static readonly Guid WICPixelFormat32bppBGR101010 = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x14); 241internal static readonly Guid WICPixelFormat48bppRGB = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x15); 244internal static readonly Guid WICPixelFormat64bppRGBA = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x16); 245internal static readonly Guid WICPixelFormat64bppPRGBA = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x17); 248internal static readonly Guid WICPixelFormat128bppRGBAFloat = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x19); 249internal static readonly Guid WICPixelFormat128bppPRGBAFloat = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x1a); 250internal static readonly Guid WICPixelFormat128bppRGBFloat = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x1b); 253internal static readonly Guid WICPixelFormat32bppCMYK = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x1c); 264internal static readonly Guid IID_IMILRenderTargetBitmap = new Guid(0x00000201, 0xa8f2, 0x4877, 0xba, 0xa, 0xfd, 0x2b, 0x66, 0x45, 0xfb, 0x94); 266internal static readonly Guid IID_IWICPalette = new Guid(0x00000040, 0xa8f2, 0x4877, 0xba, 0x0a, 0xfd, 0x2b, 0x66, 0x45, 0xfb, 0x94); 268internal static readonly Guid IID_IWICBitmapSource = new Guid(0x00000120, 0xa8f2, 0x4877, 0xba, 0x0a, 0xfd, 0x2b, 0x66, 0x45, 0xfb, 0x94); 270internal static readonly Guid IID_IWICFormatConverter = new Guid(0x00000301, 0xa8f2, 0x4877, 0xba, 0x0a, 0xfd, 0x2b, 0x66, 0x45, 0xfb, 0x94); 272internal static readonly Guid IID_IWICBitmapScaler = new Guid(0x00000302, 0xa8f2, 0x4877, 0xba, 0x0a, 0xfd, 0x2b, 0x66, 0x45, 0xfb, 0x94); 274internal static readonly Guid IID_IWICBitmapClipper = new Guid(0xE4FBCF03, 0x223D, 0x4e81, 0x93, 0x33, 0xD6, 0x35, 0x55, 0x6D, 0xD1, 0xB5); 276internal static readonly Guid IID_IWICBitmapFlipRotator = new Guid(0x5009834F, 0x2D6A, 0x41ce, 0x9E, 0x1B, 0x17, 0xC5, 0xAF, 0xF7, 0xA7, 0x82); 278internal static readonly Guid IID_IWICBitmap = new Guid(0x00000121, 0xa8f2, 0x4877, 0xba, 0x0a, 0xfd, 0x2b, 0x66, 0x45, 0xfb, 0x94); 280internal static readonly Guid IID_IWICBitmapEncoder = new Guid(0x00000103, 0xa8f2, 0x4877, 0xba, 0x0a, 0xfd, 0x2b, 0x66, 0x45, 0xfb, 0x94); 282internal static readonly Guid IID_IWICBitmapFrameEncode = new Guid(0x00000105, 0xa8f2, 0x4877, 0xba, 0x0a, 0xfd, 0x2b, 0x66, 0x45, 0xfb, 0x94); 284internal static readonly Guid IID_IWICBitmapDecoder = new Guid(0x9EDDE9E7, 0x8DEE, 0x47ea, 0x99, 0xDF, 0xE6, 0xFA, 0xF2, 0xED, 0x44, 0xBF); 286internal static readonly Guid IID_IWICBitmapFrameDecode = new Guid(0x3B16811B, 0x6A43, 0x4ec9, 0xA8, 0x13, 0x3D, 0x93, 0x0C, 0x13, 0xB9, 0x40); 288internal static readonly Guid IID_IWICMetadataQueryReader = new Guid(0x30989668, 0xE1C9, 0x4597, 0xB3, 0x95, 0x45, 0x8E, 0xED, 0xB8, 0x08, 0xDF); 290internal static readonly Guid IID_IWICMetadataQueryWriter = new Guid(0xA721791A, 0x0DEF, 0x4d06, 0xBD, 0x91, 0x21, 0x18, 0xBF, 0x1D, 0xB1, 0x0B); 292internal static readonly Guid IID_IWICMetadataReader = new Guid(0x9204FE99, 0xD8FC, 0x4FD5, 0xA0, 0x01, 0x95, 0x36, 0xB0, 0x67, 0xA8, 0x99); 294internal static readonly Guid IID_IWICMetadataWriter = new Guid(0xF7836E16, 0x3BE0, 0x470B, 0x86, 0xBB, 0x16, 0x0D, 0x0A, 0xEC, 0xD7, 0xDE); 296internal static readonly Guid IID_IWICPixelFormatInfo = new Guid(0xE8EDA601, 0x3D48, 0x431a, 0xAB, 0x44, 0x69, 0x05, 0x9B, 0xE8, 0x8B, 0xBE); 298internal static readonly Guid IID_IWICImagingFactory = new Guid(0xec5ec8a9, 0xc395, 0x4314, 0x9c, 0x77, 0x54, 0xd7, 0xa9, 0x35, 0xff, 0x70); 300internal static readonly Guid CLSID_WICBmpDecoder = new Guid(0x6b462062, 0x7cbf, 0x400d, 0x9f, 0xdb, 0x81, 0x3d, 0xd1, 0x0f, 0x27, 0x78); 302internal static readonly Guid CLSID_WICPngDecoder = new Guid(0x389ea17b, 0x5078, 0x4cde, 0xb6, 0xef, 0x25, 0xc1, 0x51, 0x75, 0xc7, 0x51); 304internal static readonly Guid CLSID_WICIcoDecoder = new Guid(0xc61bfcdf, 0x2e0f, 0x4aad, 0xa8, 0xd7, 0xe0, 0x6b, 0xaf, 0xeb, 0xcd, 0xfe); 306internal static readonly Guid CLSID_WICJpegDecoder = new Guid(0x9456a480, 0xe88b, 0x43ea, 0x9e, 0x73, 0x0b, 0x2d, 0x9b, 0x71, 0xb1, 0xca); 308internal static readonly Guid CLSID_WICGifDecoder = new Guid(0x381dda3c, 0x9ce9, 0x4834, 0xa2, 0x3e, 0x1f, 0x98, 0xf8, 0xfc, 0x52, 0xbe); 310internal static readonly Guid CLSID_WICTiffDecoder = new Guid(0xb54e85d9, 0xfe23, 0x499f, 0x8b, 0x88, 0x6a, 0xce, 0xa7, 0x13, 0x75, 0x2b); 312internal static readonly Guid CLSID_WICWmpDecoder = new Guid(0xa26cec36, 0x234c, 0x4950, 0xae, 0x16, 0xe3, 0x4a, 0xac, 0xe7, 0x1d, 0x0d); 314internal static readonly Guid CLSID_WICBmpEncoder = new Guid(0x69be8bb4, 0xd66d, 0x47c8, 0x86, 0x5a, 0xed, 0x15, 0x89, 0x43, 0x37, 0x82); 316internal static readonly Guid CLSID_WICPngEncoder = new Guid(0x27949969, 0x876a, 0x41d7, 0x94, 0x47, 0x56, 0x8f, 0x6a, 0x35, 0xa4, 0xdc); 318internal static readonly Guid CLSID_WICJpegEncoder = new Guid(0x1a34f5c1, 0x4a5a, 0x46dc, 0xb6, 0x44, 0x1f, 0x45, 0x67, 0xe7, 0xa6, 0x76); 320internal static readonly Guid CLSID_WICGifEncoder = new Guid(0x114f5598, 0x0b22, 0x40a0, 0x86, 0xa1, 0xc8, 0x3e, 0xa4, 0x95, 0xad, 0xbd); 322internal static readonly Guid CLSID_WICTiffEncoder = new Guid(0x0131be10, 0x2001, 0x4c5f, 0xa9, 0xb0, 0xcc, 0x88, 0xfa, 0xb6, 0x4c, 0xe8); 324internal static readonly Guid CLSID_WICWmpEncoder = new Guid(0xac4ce3cb, 0xe1c1, 0x44cd, 0x82, 0x15, 0x5a, 0x16, 0x65, 0x50, 0x9e, 0xc2); 326internal static readonly Guid GUID_ContainerFormatBmp = new Guid(0x0af1d87e, 0xfcfe, 0x4188, 0xbd, 0xeb, 0xa7, 0x90, 0x64, 0x71, 0xcb, 0xe3); 328internal static readonly Guid GUID_ContainerFormatIco = new Guid(0xa3a860c4, 0x338f, 0x4c17, 0x91, 0x9a, 0xfb, 0xa4, 0xb5, 0x62, 0x8f, 0x21); 330internal static readonly Guid GUID_ContainerFormatGif = new Guid(0x1f8a5601, 0x7d4d, 0x4cbd, 0x9c, 0x82, 0x1b, 0xc8, 0xd4, 0xee, 0xb9, 0xa5); 332internal static readonly Guid GUID_ContainerFormatJpeg = new Guid(0x19e4a5aa, 0x5662, 0x4fc5, 0xa0, 0xc0, 0x17, 0x58, 0x02, 0x8e, 0x10, 0x57); 334internal static readonly Guid GUID_ContainerFormatPng = new Guid(0x1b7cfaf4, 0x713f, 0x473c, 0xbb, 0xcd, 0x61, 0x37, 0x42, 0x5f, 0xae, 0xaf); 336internal static readonly Guid GUID_ContainerFormatTiff = new Guid(0x163bcc30, 0xe2e9, 0x4f0b, 0x96, 0x1d, 0xa3, 0xe9, 0xfd, 0xb7, 0x88, 0xa3); 338internal static readonly Guid GUID_ContainerFormatWmp = new Guid(0x57a37caa, 0x367a, 0x4540, 0x91, 0x6b, 0xf1, 0x83, 0xc5, 0x09, 0x3a, 0x4b);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\Ink\Native.cs (1)
24SizeOfGuid = (uint)Unsafe.SizeOf<Guid>();
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Ink\KnownIds.cs (58)
16public static readonly Guid Color = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.ColorRef]; 20public static readonly Guid StylusTip = new Guid(0x3526c731, 0xee79, 0x4988, 0xb9, 0x3e, 0x70, 0xd9, 0x2f, 0x89, 0x7, 0xed); 24public static readonly Guid StylusTipTransform = new Guid(0x4b63bc16, 0x7bc4, 0x4fd2, 0x95, 0xda, 0xac, 0xff, 0x47, 0x75, 0x73, 0x2d); 28public static readonly Guid StylusHeight = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.StylusHeight]; 32public static readonly Guid StylusWidth = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.StylusWidth]; 36public static readonly Guid DrawingFlags = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.DrawingFlags]; 40public static readonly Guid IsHighlighter = new Guid(0xce305e1a, 0xe08, 0x45e3, 0x8c, 0xdc, 0xe4, 0xb, 0xb4, 0x50, 0x6f, 0x21); 52internal static readonly Guid X = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.X]; 56internal static readonly Guid Y = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.Y]; 60internal static readonly Guid Z = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.Z]; 64internal static readonly Guid PacketStatus = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.PacketStatus]; 68internal static readonly Guid TimerTick = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.TimerTick]; 72internal static readonly Guid SerialNumber = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.SerialNumber]; 76internal static readonly Guid NormalPressure = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.NormalPressure]; 80internal static readonly Guid TangentPressure = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.TangentPressure]; 84internal static readonly Guid ButtonPressure = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.ButtonPressure]; 88internal static readonly Guid XTiltOrientation = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.XTiltOrientation]; 92internal static readonly Guid YTiltOrientation = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.YTiltOrientation]; 96internal static readonly Guid AzimuthOrientation = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.AzimuthOrientation]; 100internal static readonly Guid AltitudeOrientation = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.AltitudeOrientation]; 104internal static readonly Guid TwistOrientation = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.TwistOrientation]; 108internal static readonly Guid PitchRotation = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.PitchRotation]; 112internal static readonly Guid RollRotation = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.RollRotation]; 116internal static readonly Guid YawRotation = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.YawRotation]; 120internal static readonly Guid Color = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.ColorRef]; 124internal static readonly Guid DrawingFlags = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.DrawingFlags]; 128internal static readonly Guid CursorId = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.CursorId]; 132internal static readonly Guid WordAlternates = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.WordAlternates]; 136internal static readonly Guid CharacterAlternates = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.CharAlternates]; 140internal static readonly Guid InkMetrics = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.InkMetrics]; 144internal static readonly Guid GuideStructure = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.GuideStructure]; 148internal static readonly Guid Timestamp = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.Timestamp]; 152internal static readonly Guid Language = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.Language]; 156internal static readonly Guid Transparency = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.Transparency]; 160internal static readonly Guid CurveFittingError = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.CurveFittingError]; 164internal static readonly Guid RecognizedLattice = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.RecoLattice]; 168internal static readonly Guid CursorDown = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.CursorDown]; 172internal static readonly Guid SecondaryTipSwitch = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.SecondaryTipSwitch]; 176internal static readonly Guid TabletPick = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.TabletPick]; 180internal static readonly Guid BarrelDown = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.BarrelDown]; 184internal static readonly Guid RasterOperation = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.RasterOperation]; 189internal static readonly Guid StylusHeight = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.StylusHeight]; 194internal static readonly Guid StylusWidth = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.StylusWidth]; 199internal static readonly Guid Highlighter = KnownIdCache.TabletInternalIdTable[(int)KnownIdCache.TabletInternalIdIndex.Highlighter]; 203internal static readonly Guid InkProperties = KnownIdCache.TabletInternalIdTable[(int)KnownIdCache.TabletInternalIdIndex.InkProperties]; 207internal static readonly Guid InkStyleBold = KnownIdCache.TabletInternalIdTable[(int)KnownIdCache.TabletInternalIdIndex.InkStyleBold]; 211internal static readonly Guid InkStyleItalics = KnownIdCache.TabletInternalIdTable[(int)KnownIdCache.TabletInternalIdIndex.InkStyleItalics]; 215internal static readonly Guid StrokeTimestamp = KnownIdCache.TabletInternalIdTable[(int)KnownIdCache.TabletInternalIdIndex.StrokeTimestamp]; 219internal static readonly Guid StrokeTimeId = KnownIdCache.TabletInternalIdTable[(int)KnownIdCache.TabletInternalIdIndex.StrokeTimeId]; 224internal static readonly Guid StylusTip = new Guid(0x3526c731, 0xee79, 0x4988, 0xb9, 0x3e, 0x70, 0xd9, 0x2f, 0x89, 0x7, 0xed); 229internal static readonly Guid StylusTipTransform = new Guid(0x4b63bc16, 0x7bc4, 0x4fd2, 0x95, 0xda, 0xac, 0xff, 0x47, 0x75, 0x73, 0x2d); 235internal static readonly Guid IsHighlighter = new Guid(0xce305e1a, 0xe08, 0x45e3, 0x8c, 0xdc, 0xe4, 0xb, 0xb4, 0x50, 0x6f, 0x21); 263internal static readonly Guid PenStyle = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.PenStyle]; 268internal static readonly Guid PenTip = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.PenTip]; 274internal static readonly Guid InkCustomStrokes = KnownIdCache.TabletInternalIdTable[(int)KnownIdCache.TabletInternalIdIndex.InkCustomStrokes]; 279internal static readonly Guid InkStrokeLattice = KnownIdCache.TabletInternalIdTable[(int)KnownIdCache.TabletInternalIdIndex.InkStrokeLattice]; 292internal static string ConvertToString (Guid id) 307if ( id == (Guid)typeof(KnownIds).InvokeMember(info.Name,
src\Microsoft.DotNet.Wpf\src\Shared\Telemetry\Managed\EventSourceActivity.cs (7)
40private static Guid _emptyGuid; 43private Guid _parentId; 44private Guid _id = Guid.NewGuid(); 78:this(eventSource, startStopOptions, Guid.Empty) 102internal EventSourceActivity(EventSource eventSource, EventSourceOptions startStopOptions, Guid parentActivityId) 161internal Guid Id
System\Windows\Ink\DrawingAttributes.cs (11)
303public void AddPropertyData(Guid propertyDataId, object propertyData) 313public void RemovePropertyData(Guid propertyDataId) 322public object GetPropertyData(Guid propertyDataId) 330public Guid[] GetPropertyDataIds() 339public bool ContainsPropertyData(Guid propertyDataId) 656internal static object GetDefaultDrawingAttributeValue(Guid id) 694internal static void ValidateStylusTipTransform(Guid propertyDataId, object propertyData) 720internal static bool RemoveIdFromExtendedProperties(Guid id) 760internal static bool IsGeometricalDaGuid(Guid guid) 886private void SetExtendedPropertyBackedProperty(Guid id, object value) 935private object GetExtendedPropertyBackedProperty(Guid id)
System\Windows\Ink\Events.cs (3)
92private Guid _propertyGuid; 97public PropertyDataChangedEventArgs(Guid propertyGuid, 114public Guid PropertyGuid
System\Windows\Ink\Stroke.cs (5)
386public void AddPropertyData(Guid propertyDataId, object propertyData) 410public void RemovePropertyData(Guid propertyDataId) 422public object GetPropertyData(Guid propertyDataId) 430public Guid[] GetPropertyDataIds() 439public bool ContainsPropertyData(Guid propertyDataId)
System\Windows\Ink\StrokeCollection.cs (6)
150public void AddPropertyData(Guid propertyDataId, object propertyData) 171public void RemovePropertyData(Guid propertyDataId) 183public object GetPropertyData(Guid propertyDataId) 185if ( propertyDataId == Guid.Empty ) 196public Guid[] GetPropertyDataIds() 205public bool ContainsPropertyData(Guid propertyDataId)
System\Windows\Input\DefaultTextStore.cs (2)
84public void GetValue(ref Guid guidAttribute, out object varValue) 275Guid guid = UnsafeNativeMethods.GUID_COMPARTMENT_TRANSITORYEXTENSION_DOCUMENTMANAGER;
System\Windows\Input\InputMethod.cs (5)
1246internal void OnChange(ref Guid rguid) 1496Guid iidFn = UnsafeNativeMethods.IID_ITfFnConfigure; 1497Guid guidNull = UnsafeNativeMethods.Guid_Null; 1549Guid iidFn = UnsafeNativeMethods.IID_ITfFnConfigureRegisterWord; 1550Guid guidNull = UnsafeNativeMethods.Guid_Null;
System\Windows\Input\InputMethodStateTypeInfo.cs (4)
62Guid guid, 81internal static InputMethodStateType ToType(ref Guid rguid) 106internal Guid Guid {get{return _guid;}} 166private Guid _guid;
System\Windows\Input\InputProcessorProfiles.cs (1)
185Guid guid = UnsafeNativeMethods.IID_ITfLanguageProfileNotifySink;
System\Windows\Input\Stylus\Common\StylusButton.cs (3)
16internal StylusButton(string name, Guid id) 26public Guid Guid 108private Guid _guid;
System\Windows\Input\Stylus\Common\StylusButtonCollection.cs (1)
32public StylusButton GetStylusButtonByGuid(Guid guid)
System\Windows\Input\Stylus\Common\StylusPointDescription.cs (9)
61List<Guid> seenIds = new List<Guid>(); 145internal StylusPointPropertyInfo GetPropertyInfo(Guid guid) 159internal int GetPropertyIndex(Guid guid) 175internal Guid[] GetStylusPointPropertyIds() 177Guid[] ret = new Guid[_stylusPointPropertyInfos.Length]; 390Guid id = _stylusPointPropertyInfos[x].Id; 403private int IndexOf(Guid propertyId)
System\Windows\Input\Stylus\Common\StylusPointProperty.cs (4)
16private Guid _id; 24public StylusPointProperty(Guid identifier, bool isButton) 45private void Initialize(Guid identifier, bool isButton) 74public Guid Id
System\Windows\Input\Stylus\Common\StylusPointPropertyId.cs (33)
18public static readonly Guid X = new Guid(0x598A6A8F, 0x52C0, 0x4BA0, 0x93, 0xAF, 0xAF, 0x35, 0x74, 0x11, 0xA5, 0x61); 23public static readonly Guid Y = new Guid(0xB53F9F75, 0x04E0, 0x4498, 0xA7, 0xEE, 0xC3, 0x0D, 0xBB, 0x5A, 0x90, 0x11); 28public static readonly Guid Z = new Guid(0x735ADB30, 0x0EBB, 0x4788, 0xA0, 0xE4, 0x0F, 0x31, 0x64, 0x90, 0x05, 0x5D); 33public static readonly Guid Width = new Guid(0xbaabe94d, 0x2712, 0x48f5, 0xbe, 0x9d, 0x8f, 0x8b, 0x5e, 0xa0, 0x71, 0x1a); 38public static readonly Guid Height = new Guid(0xe61858d2, 0xe447, 0x4218, 0x9d, 0x3f, 0x18, 0x86, 0x5c, 0x20, 0x3d, 0xf4); 43public static readonly Guid SystemTouch = new Guid(0xe706c804, 0x57f0, 0x4f00, 0x8a, 0x0c, 0x85, 0x3d, 0x57, 0x78, 0x9b, 0xe9); 48public static readonly Guid PacketStatus = new Guid(0x6E0E07BF, 0xAFE7, 0x4CF7, 0x87, 0xD1, 0xAF, 0x64, 0x46, 0x20, 0x84, 0x18); 53public static readonly Guid SerialNumber = new Guid(0x78A81B56, 0x0935, 0x4493, 0xBA, 0xAE, 0x00, 0x54, 0x1A, 0x8A, 0x16, 0xC4); 58public static readonly Guid NormalPressure = new Guid(0x7307502D, 0xF9F4, 0x4E18, 0xB3, 0xF2, 0x2C, 0xE1, 0xB1, 0xA3, 0x61, 0x0C); 63public static readonly Guid TangentPressure = new Guid(0x6DA4488B, 0x5244, 0x41EC, 0x90, 0x5B, 0x32, 0xD8, 0x9A, 0xB8, 0x08, 0x09); 68public static readonly Guid ButtonPressure = new Guid(0x8B7FEFC4, 0x96AA, 0x4BFE, 0xAC, 0x26, 0x8A, 0x5F, 0x0B, 0xE0, 0x7B, 0xF5); 73public static readonly Guid XTiltOrientation = new Guid(0xA8D07B3A, 0x8BF0, 0x40B0, 0x95, 0xA9, 0xB8, 0x0A, 0x6B, 0xB7, 0x87, 0xBF); 78public static readonly Guid YTiltOrientation = new Guid(0x0E932389, 0x1D77, 0x43AF, 0xAC, 0x00, 0x5B, 0x95, 0x0D, 0x6D, 0x4B, 0x2D); 83public static readonly Guid AzimuthOrientation = new Guid(0x029123B4, 0x8828, 0x410B, 0xB2, 0x50, 0xA0, 0x53, 0x65, 0x95, 0xE5, 0xDC); 88public static readonly Guid AltitudeOrientation = new Guid(0x82DEC5C7, 0xF6BA, 0x4906, 0x89, 0x4F, 0x66, 0xD6, 0x8D, 0xFC, 0x45, 0x6C); 93public static readonly Guid TwistOrientation = new Guid(0x0D324960, 0x13B2, 0x41E4, 0xAC, 0xE6, 0x7A, 0xE9, 0xD4, 0x3D, 0x2D, 0x3B); 98public static readonly Guid PitchRotation = new Guid(0x7F7E57B7, 0xBE37, 0x4BE1, 0xA3, 0x56, 0x7A, 0x84, 0x16, 0x0E, 0x18, 0x93); 103public static readonly Guid RollRotation = new Guid(0x5D5D5E56, 0x6BA9, 0x4C5B, 0x9F, 0xB0, 0x85, 0x1C, 0x91, 0x71, 0x4E, 0x56); 108public static readonly Guid YawRotation = new Guid(0x6A849980, 0x7C3A, 0x45B7, 0xAA, 0x82, 0x90, 0xA2, 0x62, 0x95, 0x0E, 0x89); 113public static readonly Guid TipButton = new Guid(0x39143d3, 0x78cb, 0x449c, 0xa8, 0xe7, 0x67, 0xd1, 0x88, 0x64, 0xc3, 0x32); 118public static readonly Guid BarrelButton = new Guid(0xf0720328, 0x663b, 0x418f, 0x85, 0xa6, 0x95, 0x31, 0xae, 0x3e, 0xcd, 0xfa); 123public static readonly Guid SecondaryTipButton = new Guid(0x67743782, 0xee5, 0x419a, 0xa1, 0x2b, 0x27, 0x3a, 0x9e, 0xc0, 0x8f, 0x3d); 195private static Dictionary<HidUsagePage, Dictionary<HidUsage, Guid>> _hidToGuidMap = new Dictionary<HidUsagePage, Dictionary<HidUsage, Guid>>() 198new Dictionary<HidUsage, Guid>() 206new Dictionary<HidUsage, Guid>() 240internal static Guid GetKnownGuid(HidUsagePage page, HidUsage usage) 242Guid result = Guid.Empty; 244Dictionary<HidUsage, Guid> pageMap = null; 259internal static bool IsKnownId(Guid guid) 294internal static string GetStringRepresentation(Guid guid) 396internal static bool IsKnownButton(Guid guid)
System\Windows\Input\Stylus\Common\StylusPointPropertyInfoDefaults.cs (2)
233new StylusPointPropertyInfo(new StylusPointProperty(Guid.NewGuid(), false), 243new StylusPointPropertyInfo(new StylusPointProperty(Guid.NewGuid(), true),
System\Windows\Input\Stylus\Pointer\PointerStylusPointPropertyInfoHelper.cs (2)
58Guid propGuid = 63if (propGuid != Guid.Empty)
System\Windows\Input\Stylus\Wisp\PenContext.cs (2)
112Guid guid; 140Guid buttonGuid;
System\Windows\Input\Stylus\Wisp\PenImcRcw.cs (7)
17void GetPacketPropertyInfo(int iProp, out Guid guid, out int iMin, out int iMax, out int iUnits, out float flResolution); 18void GetPacketButtonInfo(int iButton, out Guid guid); 39void GetCursorButtonInfo (int iCursor, int iButton, [MarshalAs(UnmanagedType.LPWStr)] out string sName, out Guid guid); 40void IsPropertySupported(Guid guid, [MarshalAs(UnmanagedType.Bool)] out bool fSupported); 41void GetPropertyInfo(Guid guid, out int min, out int max, out int units, out float resolution); 45void GetPacketPropertyInfo(int iProp, out Guid guid, out int iMin, out int iMax, out int iUnits, out float flResolution); 46void GetPacketButtonInfo(int iButton, out Guid guid);
System\Windows\Input\Stylus\Wisp\PenThreadWorker.cs (3)
907Guid guid; 924Guid buttonGuid; 979Guid buttonGuid;
System\Windows\Input\TextServicesCompartment.cs (3)
29internal TextServicesCompartment(Guid guid, UnsafeNativeMethods.ITfCompartmentMgr compartmentmgr) 95Guid guid = UnsafeNativeMethods.IID_ITfCompartmentEventSink; 232private Guid _guid;
System\Windows\Input\TextServicesCompartmentContext.cs (2)
68internal TextServicesCompartment GetThreadCompartment(Guid guid) 98internal TextServicesCompartment GetGlobalCompartment(Guid guid)
System\Windows\Input\TextServicesCompartmentEventSink.cs (1)
45public void OnChange(ref Guid rguid)
System\Windows\Input\TextServicesContext.cs (2)
333Guid guid; 381Guid guid;
System\Windows\InterOp\HwndTarget.cs (1)
2550Guid monitorGuid = NativeMethods.GUID_MONITOR_POWER_ON;
System\Windows\Media\Imaging\BitmapCodecInfo.cs (2)
46public virtual Guid ContainerFormat 53Guid containerFormat;
System\Windows\Media\Imaging\BitmapDecoder.cs (15)
54Guid expectedClsId 57Guid clsId = Guid.Empty; 111Guid expectedClsId 114Guid clsId = Guid.Empty; 135if (clsId != Guid.Empty && clsId != expectedClsId) 228Guid clsId = Guid.Empty; 991out Guid clsId, 1124Guid vendorMicrosoft = new Guid(MILGuidData.GUID_VendorMicrosoft); 1224private static Guid GetCLSIDFromDecoder(SafeMILHandle decoderHandle, out string decoderMimeTypes) 1226Guid clsId; 1325out Guid clsId 1328clsId = Guid.Empty;
System\Windows\Media\Imaging\BitmapEncoder.cs (7)
24internal Guid clsid; 71public static BitmapEncoder Create(Guid containerFormat) 73if (containerFormat == Guid.Empty) 465internal virtual Guid ContainerFormat 469return Guid.Empty; 555Guid vendorMicrosoft = new Guid(MILGuidData.GUID_VendorMicrosoft); 556Guid containerFormat = ContainerFormat;
System\Windows\Media\Imaging\BitmapMetadata.cs (18)
35out Guid containerFormat 69out Guid containerFormat 127internal BitmapMetadataBlockWriter(Guid containerFormat, bool fixedSize) 136Guid guidVendor = new Guid(MILGuidData.GUID_VendorMicrosoft); 180out Guid containerFormat 214Guid wicMetadataReader = MILGuidData.IID_IWICMetadataReader; 254Guid guidVendor = new Guid(MILGuidData.GUID_VendorMicrosoft); 338Guid wicMetadataWriter = MILGuidData.IID_IWICMetadataWriter; 433private readonly Guid _containerFormat; 518Guid wicMetadataReader = MILGuidData.IID_IWICMetadataReader; 583Guid guid = new Guid(); 635private void Init(Guid containerFormat, bool readOnly, bool fixedSize) 642Guid vendorMicrosoft = new Guid(MILGuidData.GUID_VendorMicrosoft); 671private void InitializeFromBlockWriter(Guid containerFormat, bool readOnly, bool fixedSize) 774Guid guidVendor = new Guid(MILGuidData.GUID_VendorMicrosoft); 899Guid guid = GuidFormat; 1458internal Guid GuidFormat 1462Guid guid = new Guid();
System\Windows\Media\Imaging\BitmapSource.cs (6)
583Guid _uuidWicBitmapSource = MILGuidData.IID_IWICBitmapSource; 819Guid destFmt = GetClosestDUCEFormat(Format, Palette).Guid; 1160Guid fmtDestFmt = destFmt.Guid; 1632out Guid guidFormat 1716int IWICBitmapSource.GetPixelFormat(out Guid guidFormat) 1726guidFormat = Guid.Empty;
System\Windows\Media\Imaging\BitmapSourceSafeMILHandle.cs (2)
107Guid guidFormat; 149private static Guid _uuidBitmap = MILGuidData.IID_IWICBitmapSource;
System\Windows\Media\Imaging\BitmapVisualManager.cs (1)
111Guid iidRTB = MILGuidData.IID_IMILRenderTargetBitmap;
System\Windows\Media\Imaging\BmpBitmapEncoder.cs (2)
42internal override Guid ContainerFormat 75private Guid _containerFormat = MILGuidData.GUID_ContainerFormatBmp;
System\Windows\Media\Imaging\CachedBitmap.cs (1)
361Guid guidFmt = pixelFormat.Guid;
System\Windows\Media\Imaging\ColorConvertedBitmap.cs (1)
96Guid fmtDestFmt = DestinationFormat.Guid;
System\Windows\Media\Imaging\FormatConvertedBitmap.cs (1)
108Guid format = DestinationFormat.Guid;
System\Windows\Media\Imaging\GifBitmapEncoder.cs (2)
42internal override Guid ContainerFormat 75private Guid _containerFormat = MILGuidData.GUID_ContainerFormatGif;
System\Windows\Media\Imaging\InteropBitmapSource.cs (1)
113Guid formatGuid = format.Guid;
System\Windows\Media\Imaging\JpegBitmapEncoder.cs (2)
172internal override Guid ContainerFormat 343private Guid _containerFormat = MILGuidData.GUID_ContainerFormatJpeg;
System\Windows\Media\Imaging\PngBitmapEncoder.cs (2)
86internal override Guid ContainerFormat 144private Guid _containerFormat = MILGuidData.GUID_ContainerFormatPng;
System\Windows\Media\Imaging\PropVariant.cs (9)
287else if (value is Guid[]) 289InitVector(value as Array, typeof(Guid), VarEnum.VT_CLSID); 381else if (value is Guid) 383byte[] guid = ((Guid)value).ToByteArray(); 409Guid wicMetadataQueryReader = MILGuidData.IID_IWICMetadataQueryReader; 578Guid[] array = new Guid[ca.cElems]; 691Guid guidIWICQueryWriter = MILGuidData.IID_IWICMetadataQueryWriter; 692Guid guidIWICQueryReader = MILGuidData.IID_IWICMetadataQueryReader;
System\Windows\Media\Imaging\TiffBitmapEncoder.cs (2)
111internal override Guid ContainerFormat 180private Guid _containerFormat = MILGuidData.GUID_ContainerFormatTiff;
System\Windows\Media\Imaging\UnknownBitmapEncoder.cs (3)
24public UnknownBitmapEncoder(Guid containerFormat) : 45internal override Guid ContainerFormat 78private Guid _containerFormat;
System\Windows\Media\Imaging\WmpBitmapEncoder.cs (2)
842internal override Guid ContainerFormat 864private Guid _containerFormat = MILGuidData.GUID_ContainerFormatWmp;
System\Windows\Media\Imaging\WriteableBitmap.cs (2)
107Guid formatGuid = pixelFormat.Guid; 722Guid formatGuid = source.Format.Guid;
System\Windows\Media\MediaContext.cs (2)
199_contextGuid = Guid.NewGuid(); 2628private Guid _contextGuid;
System\Windows\Media\PixelFormat.cs (13)
146internal PixelFormat(Guid guidPixelFormat) 150Debug.Assert(Unsafe.SizeOf<Guid>() == 16); 155Guid guidWicPixelFormat = WICPixelFormatGUIDs.WICPixelFormatDontCare; 231private static Guid GetGuidFromFormat(PixelFormatEnum format) => format switch 396Guid guidPixelFormat = _guidFormat; 409Guid guidPixelFormatInfo = MILGuidData.IID_IWICPixelFormatInfo; 486internal readonly Guid Guid 505Guid guidPixelFormat = WICPixelFormatGUIDs.WICPixelFormatDontCare; 517internal static PixelFormat GetPixelFormat(Guid pixelFormatGuid) 560private static PixelFormatFlags GetPixelFormatFlagsFromGuid(Guid pixelFormatGuid) 719private readonly Guid _guidFormat; 722private static readonly Guid WICPixelFormatPhotonFirst = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x1d); 725private static readonly Guid WICPixelFormatPhotonLast = new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x42);
System\Windows\Media\UnsafeNativeMethodsMilCoreApi.cs (23)
212out Guid pclsid); 248out Guid pguidContainerFormat); 306out Guid pguidContainerFormat); 405out Guid pPixelFormatEnum); 527ref Guid guid, 533ref Guid guid, 557ref Guid pixelFormatGuid, 688ref Guid guidVendor, 696ref Guid guidVendor, 703ref Guid clsidComponent, 739ref Guid guidContainerFormat, 740ref Guid guidVendor, 755ref Guid pixelFormatGuid, 766ref Guid pixelFormatGuid, 799ref Guid metadataFormat, 800ref Guid guidVendor, 808ref Guid guidVendor, 819ref Guid guidVendor, 906ref Guid dstFormat, 960ref Guid pixelFmtDest 1015ref Guid dstPixelFormatGuid, 1028ref Guid guid, 1036ref Guid guid);
PresentationCore.Tests (1)
System\Windows\Media\Animation\KeySplineConverter.Tests.cs (1)
300yield return new object[] { new KeySpline(0.5, 0.5, 0.5, 0.5), typeof(Guid), CultureInfo.CurrentCulture };
PresentationFramework (283)
Microsoft\Win32\CommonItemDialog.cs (2)
112public Guid? ClientGuid { get; set; } 371if (ClientGuid is Guid guid)
Microsoft\Win32\FileDialogCustomPlace.cs (2)
18public FileDialogCustomPlace(Guid knownFolder) 31public Guid KnownFolder { get; private set; }
MS\Internal\Annotations\AnnotationMap.cs (4)
67internal List<IAttachedAnnotation> GetAttachedAnnotations(Guid annotationId) 89foreach (Guid annId in _annotationIdToAttachedAnnotations.Keys) 105private Dictionary<Guid, List<IAttachedAnnotation>> _annotationIdToAttachedAnnotations = new Dictionary<Guid, List<IAttachedAnnotation>>();
MS\Internal\Annotations\Storage\StoreAnnotationsMap.cs (14)
80public void RemoveAnnotation(Guid id) 104public Dictionary<Guid, Annotation> FindAnnotations(ContentLocator anchorLocator) 108Dictionary<Guid, Annotation> annotations = new Dictionary<Guid, Annotation>(); 113Dictionary<Guid, CachedAnnotation>.ValueCollection.Enumerator annotationsEnumerator = _currentAnnotations.Values.GetEnumerator(); 167public Dictionary<Guid, Annotation> FindAnnotations() 169Dictionary<Guid, Annotation> annotations = new Dictionary<Guid, Annotation>(); 170foreach (KeyValuePair<Guid, CachedAnnotation> annotKV in _currentAnnotations) 182public Annotation FindAnnotation(Guid id) 200foreach (KeyValuePair<Guid, CachedAnnotation> annotKV in _currentAnnotations) 216foreach (KeyValuePair<Guid, CachedAnnotation> annotKV in _currentAnnotations) 282private Dictionary<Guid, CachedAnnotation> _currentAnnotations = new Dictionary<Guid, CachedAnnotation>();
MS\Internal\AppModel\Journaling.cs (13)
67internal JournalEntryGroupState(Guid navSvcId, uint contentId) 73internal Guid NavigationServiceId 126private Guid _navigationServiceId; 264_pageFunctionId = (Guid)info.GetValue("_pageFunctionId", typeof(Guid)); 265_parentPageFunctionId = (Guid)info.GetValue("_parentPageFunctionId", typeof(Guid)); 287internal Guid PageFunctionId 298internal Guid ParentPageFunctionId 354if (endingPF.ParentPageFunctionId == Guid.Empty) 372Debug.Assert(endingPF.ParentPageFunctionId == Guid.Empty, 388private Guid _pageFunctionId; 389private Guid _parentPageFunctionId;
MS\Internal\AppModel\ShellProvider.cs (33)
44private readonly Guid _fmtid; 48private PKEY(Guid fmtid, uint pid) 115object GetAt([In] uint uiIndex, [In] ref Guid riid); 128new object GetAt([In] uint uiIndex, [In] ref Guid riid); 179[In] ref Guid riid); 183object BindToStorage(IntPtr pidl, IBindCtx pbc, [In] ref Guid riid); 205object CreateViewObject(IntPtr hwndOwner, [In] ref Guid riid); 226[In] ref Guid riid, 256object BindToHandler(IBindCtx pbc, [In] ref Guid bhid, [In] ref Guid riid); 280new object BindToHandler(IBindCtx pbc, [In] ref Guid bhid, [In] ref Guid riid); 291[In] ref Guid riid); 297[In] ref Guid riid); 304[In] ref Guid riid); 309[In] ref Guid riid); 316Guid GetCLSID(IntPtr key); 341object BindToHandler(IBindCtx pbc, [In] ref Guid rbhid, [In] ref Guid riid); 344object GetPropertyStore(int flags, [In] ref Guid riid); 347object GetPropertyDescriptionList([In] ref PKEY keyType, [In] ref Guid riid); 479void SetClientGuid([In] ref Guid guid); 540new void SetClientGuid([In] ref Guid guid); 587new void SetClientGuid([In] ref Guid guid); 633new void SetClientGuid([In] ref Guid guid); 697object GetList(ADLT listtype, uint cItemsDesired, [In] ref Guid riid); 712object BeginList(out uint pcMaxSlots, [In] ref Guid riid); 725object GetRemovedDestinations([In] ref Guid riid); 947public static string GetPathForKnownFolder(Guid knownFolder) 949if (knownFolder == default(Guid)) 970Guid iidShellItem2 = new Guid(IID.ShellItem2); 1011internal static extern HRESULT SHCreateItemFromParsingName([MarshalAs(UnmanagedType.LPWStr)] string pszPath, IBindCtx pbc, [In] ref Guid riid, [MarshalAs(UnmanagedType.Interface)] out object ppv); 1015internal static extern HRESULT SHGetFolderPathEx([In] ref Guid rfid, KF_FLAG dwFlags, [In, Optional] IntPtr hToken, [Out, MarshalAs(UnmanagedType.LPWStr)] StringBuilder pszPath, uint cchPath);
MS\Internal\Controls\ConnectionPointCookie.cs (1)
25Guid tmp = eventInterface.GUID;
MS\Internal\Controls\WebBrowserEvent.cs (1)
94Guid lastNavigation = _parent.LastNavigation;
MS\Internal\Controls\WebBrowserSite.cs (1)
161int UnsafeNativeMethods.IDocHostUIHandler.TranslateAccelerator(ref System.Windows.Interop.MSG msg, ref Guid group, int nCmdID)
MS\Internal\Interop\IndexingFilter.cs (5)
279internal Guid guid; 564IntPtr BindRegion([In] FILTERREGION origPos, [In] ref Guid riid); 594void GetClassID(out Guid pClassID); 761void GetClassID(out Guid pClassID); 828void GetClassID(out Guid pClassID);
MS\Internal\IO\Packaging\CorePropertiesFilter.cs (3)
36internal PropertyChunk(uint chunkId, Guid guid, uint propId) 362internal Guid CurrentGuid 425private object GetValue(Guid guid, uint propId)
MS\Internal\IO\Packaging\EncryptedPackageFilter.cs (1)
101public IntPtr BindRegion([In] FILTERREGION origPos, [In] ref Guid riid)
MS\Internal\IO\Packaging\indexingfiltermarshaler.cs (2)
35internal static Guid PSGUID_STORAGE = new Guid(0xb725f130, 0x47ef, 0x101a, 0xa5, 0xf1, 0x02, 0x60, 0x8c, 0x9e, 0xeb, 0xac); 323public IntPtr BindRegion(FILTERREGION origPos, ref Guid riid)
MS\Internal\IO\Packaging\ManagedFilter.cs (3)
146internal Guid Guid 168internal ManagedFullPropSpec(Guid guid, uint propId) 198private Guid _guid;
MS\Internal\IO\Packaging\PackageFilter.cs (2)
256public IntPtr BindRegion(FILTERREGION origPos, ref Guid riid) 277private IFilter GetFilterFromClsid(Guid clsid)
MS\Internal\IO\Packaging\XpsFilter.cs (4)
288IntPtr IFilter.BindRegion([In] FILTERREGION origPos, [In] ref Guid riid) 302void IPersistFile.GetClassID(out Guid pClassID) 487void IPersistStream.GetClassID(out Guid pClassID) 667private static readonly Guid _filterClsid = new Guid(0x0B8732A6,
MS\Internal\WindowsRuntime\Generated\Windows.Data.Text.cs (6)
68private bool IsOverridableInterface(Guid iid) => false; 70global::System.Runtime.InteropServices.CustomQueryInterfaceResult global::System.Runtime.InteropServices.ICustomQueryInterface.GetInterface(ref Guid iid, out IntPtr ppv) 286private bool IsOverridableInterface(Guid iid) => false; 288global::System.Runtime.InteropServices.CustomQueryInterfaceResult global::System.Runtime.InteropServices.ICustomQueryInterface.GetInterface(ref Guid iid, out IntPtr ppv) 393private bool IsOverridableInterface(Guid iid) => false; 395global::System.Runtime.InteropServices.CustomQueryInterfaceResult global::System.Runtime.InteropServices.ICustomQueryInterface.GetInterface(ref Guid iid, out IntPtr ppv)
MS\Internal\WindowsRuntime\Generated\Windows.Globalization.cs (2)
173private bool IsOverridableInterface(Guid iid) => false; 175global::System.Runtime.InteropServices.CustomQueryInterfaceResult global::System.Runtime.InteropServices.ICustomQueryInterface.GetInterface(ref Guid iid, out IntPtr ppv)
MS\Internal\WindowsRuntime\Generated\WinRT.cs (2)
56public static extern unsafe int RoGetActivationFactory(IntPtr runtimeClassId, ref Guid iid, IntPtr* factory); 208Guid iid = typeof(IActivationFactoryVftbl).GUID;
MS\Internal\WindowsRuntime\Generated\WinRT\ComWrappersSupport.cs (5)
21private static readonly Guid IID_IAgileObject = Guid.Parse("94ea2b94-e9cc-49e0-c0ff-ee64ca8f5b90"); 148var iids = new Guid[interfaceTableEntries.Count]; 168public Guid[] IIDs { get; } 172public InspectableInfo(Type type, Guid[] iids)
MS\Internal\WindowsRuntime\Generated\WinRT\Context.cs (2)
12private static extern int CoGetObjectContext(ref Guid riid, out IntPtr ppv); 16Guid riid = typeof(IContextCallback).GUID;
MS\Internal\WindowsRuntime\Generated\WinRT\GuidGenerator.cs (6)
13public static Guid GetGUID(Type type) 18public static Guid GetIID(Type type) 25return (Guid)type.GetField("PIID").GetValue(null); 103private static Guid encode_guid(byte[] data) 128private static Guid wrt_pinterface_namespace = new Guid("d57af411-737b-c042-abae-878b1e16adee"); 130public static Guid CreateIID(Type type)
MS\Internal\WindowsRuntime\Generated\WinRT\IInspectable.cs (2)
24internal delegate int _GetIids(IntPtr pThis, out uint iidCount, out Guid[] iids); 49private static int Do_Abi_GetIids(IntPtr pThis, out uint iidCount, out Guid[] iids)
MS\Internal\WindowsRuntime\Generated\WinRT\Interop\ExceptionErrorInfo.cs (11)
12Guid GetGuid(); 22bool InterfaceSupportsErrorInfo(Guid riid); 52public bool InterfaceSupportsErrorInfo(Guid riid) => true; 54public Guid GetGuid() => default; 84internal delegate int _GetGuid(IntPtr thisPtr, out Guid guid); 112private static int Do_Abi_GetGuid_0(IntPtr thisPtr, out Guid guid) 214public Guid GetGuid() 216Guid __return_value__; 327internal delegate int _InterfaceSupportsErrorInfo(IntPtr thisPtr, ref Guid riid); 346private static int Do_Abi_InterfaceSupportsErrorInfo_0(IntPtr thisPtr, ref Guid guid) 374public bool InterfaceSupportsErrorInfo(Guid riid)
MS\Internal\WindowsRuntime\Generated\WinRT\Interop\IContextCallback.cs (3)
30Guid riid, 48ref Guid riid, 75public unsafe void ContextCallback(global::WinRT.Interop.PFNCONTEXTCALL pfnCallback, ComCallData* pParam, Guid riid, int iMethod)
MS\Internal\WindowsRuntime\Generated\WinRT\Interop\IUnknownVftbl.cs (1)
11public unsafe delegate int _QueryInterface(IntPtr pThis, ref Guid iid, out IntPtr vftbl);
MS\Internal\WindowsRuntime\Generated\WinRT\Interop\StandardDelegates.cs (2)
62internal delegate int _get_PropertyAsGuid(IntPtr thisPtr, out Guid value); 64internal delegate int _put_PropertyAsGuid(IntPtr thisPtr, Guid value);
MS\Internal\WindowsRuntime\Generated\WinRT\ObjectReference.cs (6)
52public ObjectReference<T> As<T>(Guid iid) 61public virtual unsafe int TryAs<T>(Guid iid, out ObjectReference<T> objRef) 73public unsafe IObjectReference As(Guid iid) => As<IUnknownVftbl>(iid); 223private static readonly Guid IID_ICallbackWithNoReentrancyToApplicationSTA = Guid.Parse("0A299774-3E4E-FC42-1D9D-72CEE105CA57"); 246public override int TryAs<U>(Guid iid, out ObjectReference<U> objRef)
MS\Internal\WindowsRuntime\Generated\WinRT\Projections.cs (1)
131|| type == typeof(Guid)
MS\Internal\WindowsRuntime\Generated\WinRT\Projections\IEnumerable.cs (4)
98public static Guid PIID = GuidGenerator.CreateIID(typeof(IEnumerable<T>)); 150public static Guid PIID = Vftbl.PIID; 423public static Guid PIID = GuidGenerator.CreateIID(typeof(IEnumerator<T>)); 555public static Guid PIID = Vftbl.PIID;
MS\Internal\WindowsRuntime\Generated\WinRT\Projections\IReadOnlyList.cs (2)
212public static Guid PIID = GuidGenerator.CreateIID(typeof(IReadOnlyList<T>)); 347public static Guid PIID = Vftbl.PIID;
src\Microsoft.DotNet.Wpf\src\Shared\Telemetry\Managed\EventSourceActivity.cs (7)
40private static Guid _emptyGuid; 43private Guid _parentId; 44private Guid _id = Guid.NewGuid(); 78:this(eventSource, startStopOptions, Guid.Empty) 102internal EventSourceActivity(EventSource eventSource, EventSourceOptions startStopOptions, Guid parentActivityId) 161internal Guid Id
System\Windows\Annotations\Annotation.cs (7)
73_id = Guid.Empty; 98_id = Guid.NewGuid(); 122public Annotation(XmlQualifiedName annotationType, Guid id, DateTime creationTime, DateTime lastModificationTime) 134if (id.Equals(Guid.Empty)) 410public Guid Id 670if (_id.Equals(Guid.Empty)) 913private Guid _id;
System\Windows\Annotations\AnnotationResource.cs (9)
47_id = Guid.NewGuid(); 62_id = Guid.NewGuid(); 73public AnnotationResource(Guid id) 75if (Guid.Empty.Equals(id)) 241public Guid Id 431Guid tempId = Guid.Empty; 460if (Guid.Empty.Equals(tempId)) 517private Guid _id;
System\Windows\Annotations\AnnotationService.cs (1)
1307private void AnnotationDeleted(Guid annotationId)
System\Windows\Annotations\Storage\AnnotationStore.cs (2)
69public abstract Annotation DeleteAnnotation(Guid annotationId); 98public abstract Annotation GetAnnotation(Guid annotationId);
System\Windows\Annotations\Storage\XmlStreamStore.cs (13)
162public override Annotation DeleteAnnotation(Guid annotationId) 309public override Annotation GetAnnotation(Guid annotationId) 541private List<Guid> FindAnnotationIds(string queryExpression) 546Guid annId; 547List<Guid> retObj = null; 560retObj = new List<Guid>(iterator.Count); 583retObj = new List<Guid>(0); 645private IList<Annotation> MergeAndCacheAnnotations(Dictionary<Guid, Annotation> mapAnnotations, List<Guid> storeAnnotationsId) 658foreach (Guid annotationId in storeAnnotationsId) 688List<Guid> annotationIds = FindAnnotationIds(query); 689Dictionary<Guid, Annotation> annotations = null; 898private XPathNavigator GetAnnotationNodeForId(Guid id)
System\Windows\Controls\Frame.cs (1)
1182internal Guid NavSvcGuid;
System\Windows\Controls\Primitives\Popup.cs (1)
3446Guid iid = new Guid(MS.Internal.AppModel.IID.Accessible);
System\Windows\Controls\WebBrowser.cs (6)
287Guid guid = Guid.Empty; 535internal override object CreateActiveXObject(Guid clsid) 694internal Guid LastNavigation 858LastNavigation = Guid.NewGuid(); 1000private Guid _lastNavigation;
System\Windows\Documents\NLGSpellerInterop.cs (10)
1002private static object CreateInstance(Guid clsid, Guid iid) 1065internal static extern void NlGetClassObject(ref Guid clsid, ref Guid iid, [MarshalAs(UnmanagedType.Interface)] out object classObject); 2018private static readonly Guid CLSID_ITextContext = new Guid(0x333E6924, 0x4353, 0x4934, 0xA7, 0xBE, 0x5F, 0xB5, 0xBD, 0xDD, 0xB2, 0xD6); 2021private static readonly Guid IID_ITextContext = new Guid(0xB6797CC0, 0x11AE, 0x4047, 0xA4, 0x38, 0x26, 0xC0, 0xC9, 0x16, 0xEB, 0x8D); 2024private static readonly Guid CLSID_ITextChunk = new Guid(0x89EA5B5A, 0xD01C, 0x4560, 0xA8, 0x74, 0x9F, 0xC9, 0x2A, 0xFB, 0x0E, 0xFA); 2027private static readonly Guid IID_ITextChunk = new Guid(0x549F997E, 0x0EC3, 0x43d4, 0xB4, 0x43, 0x2B, 0xF8, 0x02, 0x10, 0x10, 0xCF); 2029private static readonly Guid CLSID_Lexicon = new Guid("D385FDAD-D394-4812-9CEC-C6575C0B2B38"); 2030private static readonly Guid IID_ILexicon = new Guid("004CD7E2-8B63-4ef9-8D46-080CDBBE47AF");
System\Windows\Documents\TextServicesDisplayAttributePropertyRanges.cs (3)
78Guid displayAttributeGuid; 230Guid guid; 250Guid clsid;
System\Windows\Documents\TextServicesHost.cs (3)
116Guid guid; 148Guid guid; 292Guid guid;
System\Windows\Documents\TextServicesPropertyRanges.cs (4)
29Guid guid) 157fixed (Guid *pguid = &_guid) 189protected Guid Guid 215private Guid _guid;
System\Windows\Documents\TextStore.cs (15)
72public void AdviseSink(ref Guid riid, object obj, UnsafeNativeMethods.AdviseFlags flags) 549public void GetEmbedded(int index, ref Guid guidService, ref Guid riid, out object obj) 577public void QueryInsertEmbedded(ref Guid guidService, IntPtr formatEtc, out bool insertable) 843public int RequestSupportedAttrs(UnsafeNativeMethods.AttributeFlags flags, int count, Guid[] filterAttributes) 860public int RequestAttrsAtPosition(int index, int count, Guid[] filterAttributes, UnsafeNativeMethods.AttributeFlags flags) 881public void RequestAttrsTransitioningAtPosition(int position, int count, Guid[] filterAttributes, UnsafeNativeMethods.AttributeFlags flags) 887public void FindNextAttrTransition(int startIndex, int haltIndex, int count, Guid[] filterAttributes, UnsafeNativeMethods.AttributeFlags flags, out int acpNext, out bool found, out int foundOffset) 1838Guid guidSysFunc = UnsafeNativeMethods.GUID_SYSTEM_FUNCTIONPROVIDER; 1839Guid guidNull = UnsafeNativeMethods.Guid_Null; 1840Guid iidFnReconv = UnsafeNativeMethods.IID_ITfFnReconversion; 2747private void PrepareAttributes(InputScope inputScope, double fontSize, FontFamily fontFamily, XmlLanguage language, Visual visual, int count, Guid[] filterAttributes) 4174internal TextServicesAttribute(Guid guid, AttributeStyle style) 4180internal Guid Guid 4190private Guid _guid;
System\Windows\Documents\Tracing\SpellerCOMActionTraceLogger.cs (2)
98public Guid Id { get; set; } 152Id = Guid.NewGuid(),
System\Windows\Interop\ActiveXHost.cs (3)
80internal ActiveXHost(Guid clsid, bool fTrusted ) : base( fTrusted ) 263internal virtual object CreateActiveXObject(Guid clsid) 1038private Guid _clsid;
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
359case 266: t = () => typeof(Guid); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
5522typeof(System.Guid),
System\Windows\Markup\KnownTypes.cs (1)
5813case KnownElements.Guid: t = typeof(System.Guid); break;
System\Windows\Navigation\Journal.cs (1)
501internal void RemoveEntries(Guid navSvcId)
System\Windows\Navigation\JournalEntry.cs (1)
389internal Guid NavigationServiceId
System\Windows\Navigation\NavigationService.cs (7)
56GuidId = Guid.NewGuid(); 643internal NavigationService FindTarget(Guid navigationServiceId) 921if (!pf._Resume && pf.ParentPageFunctionId == Guid.Empty && _bp is PageFunctionBase) 924Debug.Assert(pf.ParentPageFunctionId != Guid.Empty); 3370internal Guid GuidId 4028private Guid _guidId = Guid.Empty;
System\Windows\Navigation\PageFunction.cs (6)
30PageFunctionId = Guid.NewGuid(); 31ParentPageFunctionId = Guid.Empty; 140internal Guid PageFunctionId 151internal Guid ParentPageFunctionId 193private Guid _pageFunctionId; 194private Guid _parentPageFunctionId;
System\Windows\Shell\JumpList.cs (2)
478Guid removedIid = new Guid(IID.ObjectArray); 761Guid unknownIid = new Guid(IID.Unknown);
System\Windows\Standard\MessageWindow.cs (1)
41_className = $"MessageWindowClass+{Guid.NewGuid()}";
System\Windows\Standard\NativeMethods.cs (4)
1553public SafeConnectionPointCookie(IConnectionPointContainer target, object sink, Guid eventId) 1779public Guid guidItem; 3204public static extern void SHGetItemFromDataObject(IDataObject pdtobj, DOGIF dwFlags, [In] ref Guid riid, [Out, MarshalAs(UnmanagedType.Interface)] out object ppv); 3207public static extern HRESULT SHCreateItemFromParsingName([MarshalAs(UnmanagedType.LPWStr)] string pszPath, IBindCtx pbc, [In] ref Guid riid, [Out, MarshalAs(UnmanagedType.Interface)] out object ppv);
System\Windows\Standard\ShellProvider.cs (25)
342private readonly Guid _fmtid; 346public PKEY(Guid fmtid, uint pid) 394void Next(uint celt, [In] ref Guid riid, [Out, MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.IUnknown, IidParameterIndex = 1, SizeParamIndex = 0)] object[] rgelt, [Out] out uint pceltFetched); 421object GetAt([In] uint uiIndex, [In] ref Guid riid); 434new object GetAt([In] uint uiIndex, [In] ref Guid riid); 485[In] ref Guid riid); 489object BindToStorage([In] IntPtr pidl, [In] IBindCtx pbc, [In] ref Guid riid); 511object CreateViewObject([In] IntPtr hwndOwner, [In] ref Guid riid); 532[In] ref Guid riid, 565object BindToHandler(IBindCtx pbc, [In] ref Guid bhid, [In] ref Guid riid); 585object BindToHandler(IBindCtx pbc, [In] ref Guid rbhid, [In] ref Guid riid); 588object GetPropertyStore(int flags, [In] ref Guid riid); 591object GetPropertyDescriptionList([In] ref PKEY keyType, [In] ref Guid riid); 615new object BindToHandler([In] IBindCtx pbc, [In] ref Guid bhid, [In] ref Guid riid); 626[In] ref Guid riid); 632[In] ref Guid riid); 639[In] ref Guid riid); 644[In] ref Guid riid); 651Guid GetCLSID(IntPtr key); 806object GetList([In] APPDOCLISTTYPE listtype, [In] uint cItemsDesired, [In] ref Guid riid); 821object BeginList(out uint pcMaxSlots, [In] ref Guid riid); 834object GetRemovedDestinations([In] ref Guid riid);
PresentationFramework.Tests (1)
System\Windows\Controls\VirtualizationCacheLengthConverter.Tests.cs (1)
281yield return new object[] { new VirtualizationCacheLength(17.5), typeof(Guid), new CultureInfo("de-DE") };
PresentationUI (29)
MS\Internal\Documents\Application\NativeDirectoryServicesQueryAPIs.cs (6)
74public Guid clsidHandler; 76public Guid clsidDefaultForm; 156public Guid clsidNamespace; 163internal static readonly Guid CLSID_CommonQuery = new Guid(0x83bc5ec0, 0x6f2a, 0x11d0, 0xa1, 0xc4, 0x00, 0xaa, 0x00, 0xc1, 0x6e, 0x65); 164internal static readonly Guid CLSID_DsQuery = new Guid(0x08a23e65e, 0x31c2, 0x11d0, 0x89, 0x1c, 0x00, 0xa0, 0x24, 0xab, 0x2d, 0xbb); 165internal static readonly Guid CLSID_DsFindPeople = new Guid(0x83ee3fe2, 0x57d9, 0x11d0, 0xb9, 0x32, 0x0, 0xa0, 0x24, 0xab, 0x2d, 0xbb);
MS\Internal\Documents\DigitalSignature.cs (2)
144internal Guid? GuidID 232private Guid? _guidID;
MS\Internal\Documents\DigitalSignatureProvider.cs (10)
132digitalSignature.GuidID = Guid.NewGuid(); 140(Guid)digitalSignature.GuidID, 172Guid IDigitalSignatureProvider.AddRequestSignature(DigitalSignature digitalSignature) 177Guid guidID = Guid.NewGuid(); 208void IDigitalSignatureProvider.RemoveRequestSignature(Guid spotId) 243void IDigitalSignatureProvider.UnsignDocument(Guid id) 390IDictionary<Guid, XpsSignatureDefinition> signatureDefinitionMap = 391new Dictionary<Guid, XpsSignatureDefinition>(); 654private XpsSignatureDefinition FindSignatureDefinition(Guid id)
MS\Internal\Documents\DocumentSignatureManager.cs (7)
582_changeLog.Add(new ChangeLogEntity((Guid)digSig.GuidID, true)); 623_changeLog.Add(new ChangeLogEntity((Guid)digSig.GuidID, false)); 765DigitalSignatureProvider.RemoveRequestSignature((Guid)digSig.GuidID); 787Guid spotId = DigitalSignatureProvider.AddRequestSignature(digSigRequest); 1461internal ChangeLogEntity(Guid id, bool isSignatureRequest) 1473public Guid Id 1488private Guid _id;
MS\Internal\Documents\IDigitalSignatureProvider.cs (3)
30Guid AddRequestSignature(DigitalSignature digitalSignature); 49void RemoveRequestSignature(Guid spotId); 59void UnsignDocument(Guid id);
MS\Internal\Documents\PeoplePickerWrapper.cs (1)
518Unsafe.SizeOf<Guid>() + sizeof(UInt32);
Publishers.Common (2)
Entry.cs (2)
8public Guid Id { get; set; } = Guid.NewGuid();
RazorPagesWebSite (2)
ModelHandlerTestModel.cs (2)
40Guid guid = default(Guid),
ReachFramework (21)
packaging\XpsDigitalSignature.cs (2)
142Guid? 147Guid? id = null;
Packaging\XpsDocument.cs (2)
399Guid id 440Guid id,
Packaging\XpsFixedPageReaderWriter.cs (1)
1907Guid guid = new Guid(fileName );
Packaging\XpsFont.cs (1)
88ObfuscateFontData( byte[] fontData, Guid guid )
Packaging\XpsManager.cs (3)
397String uniqueUri = "/Resources/" + Guid.NewGuid().ToString() + XpsS0Markup.ObfuscatedFontExt; 1085Guid uniqueName = Guid.NewGuid();
Packaging\XPSSignatureDefinition.cs (2)
251Guid? 309private Guid? _spotId;
Serialization\Manager\XpsOMPackagingPolicy.cs (1)
797String uniqueUri = "/Resources/" + Guid.NewGuid().ToString() + XpsS0Markup.ObfuscatedFontExt;
Serialization\RCW\IPrintDocumentPackageTarget.cs (3)
25void GetPackageTargetTypes(out uint targetCount, [MarshalAs(UnmanagedType.LPStruct)] out Guid targetTypes); 28void GetPackageTarget([In] ref Guid guidTargetType, [In] ref Guid riid, out IntPtr ppvTarget);
Serialization\RCW\PrintDocumentPackageStatusProvider.cs (1)
20Guid riid = typeof(IPrintDocumentPackageStatusEvent).GUID;
Serialization\RCW\tagSTATSTG.cs (1)
35internal Guid clsid;
Serialization\XpsFontSubsetter.cs (4)
592Guid guid = ParseGuidFromUri(_fontResourceStream.Uri); 618Guid guid = ParseGuidFromUri(destUri); 654Guid 677ObfuscateData( byte[] fontData, Guid guid )
Replay (1)
Replay.cs (1)
65pipeName: Guid.NewGuid().ToString(),
Roslyn.Test.PdbUtilities (43)
Reader\MockSymUnmanagedReader.cs (3)
75public int GetDocument(string url, Guid language, Guid languageVendor, Guid documentType, out ISymUnmanagedDocument document)
Reader\NotImplementedSymUnmanagedReader.cs (4)
20public int GetDocument(string url, Guid language, Guid languageVendor, Guid documentType, out ISymUnmanagedDocument retVal) 150public int MatchesModule(Guid guid, uint stamp, int age, out bool result)
Reader\PdbTestUtilities.cs (3)
45ImmutableArray<byte> GetCdiBytes(Guid kind) 65private static bool TryGetCustomDebugInformation(MetadataReader reader, EntityHandle handle, Guid kind, out CustomDebugInformation customDebugInfo) 72var id = reader.GetGuid(info.Kind);
Reader\PdbValidation.cs (1)
641private static unsafe void ValidatePortablePdbId(MetadataReader pdbReader, uint stampInDebugDirectory, Guid guidInDebugDirectory)
Reader\SymReaderFactory.cs (5)
27private static extern void CreateSymReader32(ref Guid id, [MarshalAs(UnmanagedType.IUnknown)] out object symReader); 31private static extern void CreateSymReaderAmd64(ref Guid id, [MarshalAs(UnmanagedType.IUnknown)] out object symReader); 35private static extern void CreateSymReaderArm64(ref Guid id, [MarshalAs(UnmanagedType.IUnknown)] out object symReader); 41var guid = default(Guid);
Reader\Token2SourceLineExporter.cs (13)
23internal Guid doctype; 24internal Guid language; 25internal Guid vendor; 27internal PdbSource(string name, Guid doctype, Guid language, Guid vendor) 283internal void ReadGuid(out Guid guid) 1125internal Guid idOem; // an oem ID (GUID) 1239bits.ReadGuid(out var guid); // 12..27 GUID 1284private static readonly Guid s_msilMetaData = 1364private static readonly Guid s_symDocumentTypeGuid = new Guid("{5a869d0b-6611-11d3-bd2a-0000f80849bd}"); 1389PdbSource src = new PdbSource(/*(uint)ni,*/ (string)names[(int)chk.name], s_symDocumentTypeGuid, Guid.Empty, Guid.Empty);
Shared\DummyMetadataImport.cs (2)
416public Guid GetScopeProps(StringBuilder stringName, uint cchName, out uint pchName) 447public uint ResolveTypeRef(uint tr, [In] ref Guid riid, [MarshalAs(UnmanagedType.Interface)] out object ppIScope)
Writer\DelegatingSymUnmanagedWriter.cs (6)
41public override int DefineDocument(string name, Guid language, Guid vendor, Guid type, Guid algorithmId, ReadOnlySpan<byte> checksum, ReadOnlySpan<byte> source) 53public override void GetSignature(out Guid guid, out uint stamp, out int age) 83public override void UpdateSignature(Guid guid, uint stamp, int age)
Writer\MockSymUnmanagedWriter.cs (6)
46public override int DefineDocument(string name, Guid language, Guid vendor, Guid type, Guid algorithmId, ReadOnlySpan<byte> checksum, ReadOnlySpan<byte> source) 66public override void GetSignature(out Guid guid, out uint stamp, out int age) 116public override void UpdateSignature(Guid guid, uint stamp, int age)
Roslyn.VisualStudio.DiagnosticsWindow (4)
Guids.cs (1)
19public static readonly Guid guidVisualStudioDiagnosticsWindowCmdSet = new Guid(guidVisualStudioDiagnosticsWindowCmdSetString);
Loggers\OutputWindowLogger.cs (2)
51private static readonly Guid s_outputPaneGuid = new Guid("BBAFF416-4AF5-41F2-9F93-91F283E43C3B"); 115var workspacePaneGuid = s_outputPaneGuid;
VisualStudioDiagnosticsWindowPackage.cs (1)
98public override IVsAsyncToolWindowFactory GetAsyncToolWindowFactory(Guid toolWindowType)
Roslyn.VisualStudio.Next.UnitTests (45)
Services\AssetProviderTests.cs (6)
47var sessionId = Checksum.Create(ImmutableArray.CreateRange(Guid.NewGuid().ToByteArray())); 48var checksum = Checksum.Create(ImmutableArray.CreateRange(Guid.NewGuid().ToByteArray())); 84var sessionId = Checksum.Create(ImmutableArray.CreateRange(Guid.NewGuid().ToByteArray())); 112var sessionId = Checksum.Create(ImmutableArray.CreateRange(Guid.NewGuid().ToByteArray())); 137var sessionId = Checksum.Create(ImmutableArray.CreateRange(Guid.NewGuid().ToByteArray())); 166var sessionId = Checksum.Create(ImmutableArray.CreateRange(Guid.NewGuid().ToByteArray()));
Services\ServiceHubServicesTests.cs (23)
131var sessionId = Checksum.Create(ImmutableArray.CreateRange(Guid.NewGuid().ToByteArray())); 535ImmutableArray.Create(("SG.cs", CreateText(Guid.NewGuid().ToString())))); 541var sourceText = CreateText(Guid.NewGuid().ToString()); 550var sourceText = Guid.NewGuid().ToString(); 560[("SG.cs", CreateText(Guid.NewGuid().ToString()))], 561[("SG.cs", CreateText(Guid.NewGuid().ToString()))]); 568[("SG.cs", CreateText(Guid.NewGuid().ToString()))], 569[("NewName.cs", CreateText(Guid.NewGuid().ToString()))]); 575var sourceText = CreateText(Guid.NewGuid().ToString()); 584var sourceText = Guid.NewGuid().ToString(); 594[("SG.cs", CreateText(Guid.NewGuid().ToString()))], 595[("NewName.cs", CreateText(Guid.NewGuid().ToString()))]); 618[("SG.cs", CreateText(Guid.NewGuid().ToString()))], 627[("SG.cs", CreateText(Guid.NewGuid().ToString()))]); 633var contents = Guid.NewGuid().ToString(); 642var contents = Guid.NewGuid().ToString(); 651var contents = Guid.NewGuid().ToString(); 660var contents = Guid.NewGuid().ToString(); 669var contents = Guid.NewGuid().ToString(); 679var contents = CreateText(Guid.NewGuid().ToString()); 687var contents = CreateText(Guid.NewGuid().ToString()); 696var contents = Guid.NewGuid().ToString(); 706var contents = Guid.NewGuid().ToString();
Services\SolutionAssetCacheTests.cs (3)
34var checksum = Checksum.Create(ImmutableArray.CreateRange(Guid.NewGuid().ToByteArray())); 48var checksum = Checksum.Create(ImmutableArray.CreateRange(Guid.NewGuid().ToByteArray())); 84var checksum2 = Checksum.Create(ImmutableArray.CreateRange(Guid.NewGuid().ToByteArray()));
Services\SolutionServiceTests.cs (11)
556Checksum.Create(ImmutableArray.CreateRange(Guid.NewGuid().ToByteArray())), new SolutionAssetCache(), new SimpleAssetSource(workspace.Services.GetService<ISerializerService>(), map), remoteWorkspace.Services.SolutionServices); 597Checksum.Create(ImmutableArray.CreateRange(Guid.NewGuid().ToByteArray())), new SolutionAssetCache(), new SimpleAssetSource(workspace.Services.GetService<ISerializerService>(), map), remoteWorkspace.Services.SolutionServices); 639Checksum.Create(ImmutableArray.CreateRange(Guid.NewGuid().ToByteArray())), new SolutionAssetCache(), new SimpleAssetSource(workspace.Services.GetService<ISerializerService>(), map), remoteWorkspace.Services.SolutionServices); 672Checksum.Create(ImmutableArray.CreateRange(Guid.NewGuid().ToByteArray())), new SolutionAssetCache(), new SimpleAssetSource(workspace.Services.GetService<ISerializerService>(), map), remoteWorkspace.Services.SolutionServices); 714Checksum.Create(ImmutableArray.CreateRange(Guid.NewGuid().ToByteArray())), new SolutionAssetCache(), new SimpleAssetSource(workspace.Services.GetService<ISerializerService>(), map), remoteWorkspace.Services.SolutionServices); 754Checksum.Create(ImmutableArray.CreateRange(Guid.NewGuid().ToByteArray())), new SolutionAssetCache(), new SimpleAssetSource(workspace.Services.GetService<ISerializerService>(), map), remoteWorkspace.Services.SolutionServices); 792Checksum.Create(ImmutableArray.CreateRange(Guid.NewGuid().ToByteArray())), new SolutionAssetCache(), new SimpleAssetSource(workspace.Services.GetService<ISerializerService>(), map), remoteWorkspace.Services.SolutionServices); 825Checksum.Create(ImmutableArray.CreateRange(Guid.NewGuid().ToByteArray())), new SolutionAssetCache(), new SimpleAssetSource(workspace.Services.GetService<ISerializerService>(), map), remoteWorkspace.Services.SolutionServices); 880Checksum.Create(ImmutableArray.CreateRange(Guid.NewGuid().ToByteArray())), new SolutionAssetCache(), new SimpleAssetSource(workspace.Services.GetService<ISerializerService>(), map), remoteWorkspace.Services.SolutionServices); 949Checksum.Create(ImmutableArray.CreateRange(Guid.NewGuid().ToByteArray())), new SolutionAssetCache(), new SimpleAssetSource(workspace.Services.GetService<ISerializerService>(), map), remoteWorkspace.Services.SolutionServices); 1323var sessionId = Checksum.Create(ImmutableArray.CreateRange(Guid.NewGuid().ToByteArray()));
UnifiedSettings\TestModel\Utilities.cs (2)
29if (Guid.TryParse(resources, out var packageGuid))
Sample (1)
Endpoints\MapVersionedEndpoints.cs (1)
11v1.MapGet("/array-of-guids", (Guid[] guids) => guids);
ScenarioTests.Common.Tests (40)
ScenarioTestTypes.cs (14)
375private Guid _guidValue; 465public Guid GuidValue 656private Guid _guidValue; 659public Guid GuidValue 770public Task<Guid> ServicePingCallback(Guid guid) 776return Task.Run<Guid>(() => guid); 779public Task<Guid> ServicePingFaultCallback(Guid guid) 789var tcs = new TaskCompletionSource<Guid>(); 922private TaskCompletionSource<Guid> _tcs; 928_tcs = new TaskCompletionSource<Guid>(); 933public Guid CallbackGuid 969public void OnPingCallback(Guid guid)
ServiceInterfaces.cs (26)
296String RestartService(Guid uniqueIdentifier); 299String NonRestartService(Guid uniqueIdentifier); 330void Ping(Guid guid); 336void OnPingCallback(Guid guid); 372Task<Guid> Ping(Guid guid); 377Task<Guid> FaultPing(Guid guid); 383Task<Guid> ServicePingCallback(Guid guid); 388Task<Guid> ServicePingFaultCallback(Guid guid); 397void Ping_DataContract(Guid guid); 412void Ping_Xml(Guid guid); 732void AddIntParams(Guid guid, IntParams par); 735IntParams GetAndRemoveIntParams(Guid guid); 761void AddIntParams(Guid guid, IntParams par); 764IntParams GetAndRemoveIntParams(Guid guid); 790void AddIntParams(Guid guid, IntParams par); 793IntParams GetAndRemoveIntParams(Guid guid); 807void AddString(Guid guid, string testString); 810string GetAndRemoveString(Guid guid); 818void AddString(Guid guid, string testString); 821string GetAndRemoveString(Guid guid); 829void AddString(Guid guid, string testString); 832string GetAndRemoveString(Guid guid);
Security.TransportSecurity.IntegrationTests (13)
Http\ClientCredentialTypeTests.4.1.0.cs (6)
34string username = Guid.NewGuid().ToString("n").Substring(0, 8); 35string password = Guid.NewGuid().ToString("n").Substring(0, 16); 36string realm = Guid.NewGuid().ToString("n").Substring(0, 5); 95string username = Guid.NewGuid().ToString("n").Substring(0, 8); 96string password = Guid.NewGuid().ToString("n").Substring(0, 16); 97string realm = Guid.NewGuid().ToString("n").Substring(0, 5);
Https\ClientCredentialTypeTests.4.1.0.cs (4)
50username = Guid.NewGuid().ToString("n").Substring(0, 8); 51password = Guid.NewGuid().ToString("n").Substring(0, 16); 125username = Guid.NewGuid().ToString("n").Substring(0, 8); 126password = Guid.NewGuid().ToString("n").Substring(0, 16);
Tcp\ClientCredentialTypeTests.4.1.1.cs (3)
232Guid guid = Guid.NewGuid(); 260Guid returnedGuid = callbackService.CallbackGuid;
SemanticSearch.BuildTask (7)
GenerateFilteredReferenceAssembliesTask.cs (7)
420var mvidOffset = metadataOffset + metadataReader.GetHeapMetadataOffset(HeapIndex.Guid) + (MetadataTokens.GetHeapOffset(moduleDef.Mvid) - 1) * sizeof(Guid); 425var newMvid = CreateMvid(writableStream); 551private static unsafe Guid ReadGuid(Stream stream) 553var buffer = new byte[sizeof(Guid)]; 562private static unsafe void WriteGuid(BinaryWriter writer, Guid guid) 564var buffer = new byte[sizeof(Guid)]; 570private static Guid CreateMvid(Stream stream)
Shared (1)
JsonSchemaExporter\JsonSchemaExporter.cs (1)
619[typeof(Guid)] = _ => new JsonSchema { Type = JsonSchemaType.String, Format = "uuid" },
Shared.Tests (6)
JsonSchemaExporter\TestTypes.cs (6)
101yield return new TestData<Guid>(Guid.Empty, """{"type":"string","format":"uuid"}"""); 120yield return new TestData<Guid?>(Guid.Empty, """{"type":["string","null"],"format":"uuid"}"""); 1230[JsonSerializable(typeof(Guid))] 1247[JsonSerializable(typeof(Guid?))]
SignalR.Client.FunctionalTestApp (2)
ComplexObject.cs (1)
11public Guid Guid { get; set; }
Startup.cs (1)
25private readonly SymmetricSecurityKey SecurityKey = new SymmetricSecurityKey(SHA256.HashData(Guid.NewGuid().ToByteArray()));
SqlServerEndToEnd.Common (2)
Entry.cs (2)
8public Guid Id { get; set; } = Guid.NewGuid();
Stress.ApiService (2)
TestMetrics.cs (2)
20new KeyValuePair<string, object?>("meter-tag", Guid.NewGuid().ToString()) 25new KeyValuePair<string, object?>("instrument-tag", Guid.NewGuid().ToString())
Swaggatherer (1)
SwaggathererApplication.cs (1)
256var text = Guid.NewGuid().ToString();
System.CodeDom (2)
System\CodeDom\CodeChecksumPragma.cs (2)
14public CodeChecksumPragma(string fileName, Guid checksumAlgorithmId, byte[] checksumData) 27public Guid ChecksumAlgorithmId { get; set; }
System.Collections.Immutable (1)
System\Collections\Frozen\Constants.cs (1)
63typeof(T) == typeof(Guid) ||
System.ComponentModel.Composition (3)
System\ComponentModel\Composition\MetadataViewGenerator.cs (3)
70private static readonly AssemblyName ProxyAssemblyName = new AssemblyName($"MetadataViewProxies_{Guid.NewGuid()}"); 190$"_proxy_{viewType.FullName}_{Guid.NewGuid()}", 211string fieldName = $"_{propertyInfo.Name}_{Guid.NewGuid()}";
System.ComponentModel.TypeConverter (46)
System\ComponentModel\Design\CommandID.cs (2)
19public CommandID(Guid menuGroup, int commandID) 44public virtual Guid Guid { get; }
System\ComponentModel\Design\StandardCommands.cs (7)
25private static readonly Guid s_standardCommandSet = ShellGuids.VSStandardCommandSet97; 31private static readonly Guid s_ndpCommandSet = new Guid("{74D21313-2AEE-11d1-8BFB-00A0C90F26F7}"); 1345internal static readonly Guid VSStandardCommandSet97 = new Guid("{5efc7975-14bc-11cf-9b2b-00aa00573819}"); 1346internal static readonly Guid guidDsdCmdId = new Guid("{1F0FD094-8e53-11d2-8f9c-0060089fc486}"); 1347internal static readonly Guid SID_SOleComponentUIManager = new Guid("{5efc7974-14bc-11cf-9b2b-00aa00573819}"); 1348internal static readonly Guid GUID_VSTASKCATEGORY_DATADESIGNER = new Guid("{6B32EAED-13BB-11d3-A64F-00C04F683820}"); 1349internal static readonly Guid GUID_PropertyBrowserToolWindow = new Guid(0xeefa5220, 0xe298, 0x11d0, 0x8f, 0x78, 0x0, 0xa0, 0xc9, 0x11, 0x0, 0x57);
System\ComponentModel\Design\StandardToolWindows.cs (8)
15public static readonly Guid ObjectBrowser = new Guid("{970d9861-ee83-11d0-a778-00a0c91110c3}"); 20public static readonly Guid OutputWindow = new Guid("{34e76e81-ee4a-11d0-ae2e-00a0c90fffc3}"); 25public static readonly Guid ProjectExplorer = new Guid("{3ae79031-e1bc-11d0-8f78-00a0c9110057}"); 30public static readonly Guid PropertyBrowser = new Guid("{eefa5220-e298-11d0-8f78-00a0c9110057}"); 35public static readonly Guid RelatedLinks = new Guid("{66dba47c-61df-11d2-aa79-00c04f990343}"); 40public static readonly Guid ServerExplorer = new Guid("{74946827-37a0-11d2-a273-00c04f8ef4ff}"); 45public static readonly Guid TaskList = new Guid("{4a9b7e51-aa16-11d0-a8c5-00a0c921a4d2}"); 50public static readonly Guid Toolbox = new Guid("{b1e99781-ab81-11d0-b683-00aa00a3ee26}");
System\ComponentModel\GuidConverter.cs (2)
58if (destinationType == typeof(InstanceDescriptor) && value is Guid) 60ConstructorInfo? ctor = typeof(Guid).GetConstructor(new Type[] { typeof(string) });
System\ComponentModel\ReflectTypeDescriptionProvider.cs (7)
59private static readonly Guid s_extenderPropertiesKey = Guid.NewGuid(); 60private static readonly Guid s_extenderProviderPropertiesKey = Guid.NewGuid(); 84internal static Guid ExtenderProviderKey { get; } = Guid.NewGuid(); 178[typeof(Guid)] = new IntrinsicTypeConverterData((type) => new GuidConverter()),
System\ComponentModel\TypeDescriptor.cs (20)
89private static readonly Guid[] s_pipelineInitializeKeys = new Guid[] 91Guid.NewGuid(), // attributes 92Guid.NewGuid(), // properties 93Guid.NewGuid() // events 96private static readonly Guid[] s_pipelineMergeKeys = new Guid[] 98Guid.NewGuid(), // attributes 99Guid.NewGuid(), // properties 100Guid.NewGuid() // events 103private static readonly Guid[] s_pipelineFilterKeys = new Guid[] 105Guid.NewGuid(), // attributes 106Guid.NewGuid(), // properties 107Guid.NewGuid() // events 110private static readonly Guid[] s_pipelineAttributeFilterKeys = new Guid[] 112Guid.NewGuid(), // attributes 113Guid.NewGuid(), // properties 114Guid.NewGuid() // events
System.Data.Common (31)
System\Data\ColumnTypeConverter.cs (1)
26typeof(Guid),
System\Data\Common\DataRecordInternal.cs (2)
249public override Guid GetGuid(int i) 251return ((Guid)_values[i]);
System\Data\Common\DataStorage.cs (1)
86typeof(Guid),
System\Data\Common\DbDataReader.cs (1)
178public abstract Guid GetGuid(int ordinal);
System\Data\Common\DbDataRecord.cs (1)
49public abstract Guid GetGuid(int i);
System\Data\Common\ObjectStorage.cs (3)
247if (_dataType == typeof(Guid) && valType == typeof(string)) 331if (type == typeof(Guid)) 411if (type == typeof(char) || type == typeof(Guid))
System\Data\Common\SQLConvert.cs (3)
270StorageType.Guid => (Guid)value, 467return XmlConvert.ToString((Guid)value); 717return XmlConvert.ToString((Guid)value);
System\Data\DataReaderExtensions.cs (1)
113public static Guid GetGuid(this DbDataReader reader, string name)
System\Data\DataTableReader.cs (2)
542public override Guid GetGuid(int ordinal) 548return (Guid)_currentDataRow![ordinal];
System\Data\Filter\BinaryNode.cs (2)
200return ((Guid)vLeft).CompareTo((Guid)vRight);
System\Data\IDataRecord.cs (1)
25Guid GetGuid(int i);
System\Data\Select.cs (2)
692((isLConst && !isRConst && (leftType == StorageType.String) && (rightType == StorageType.Guid) && (null != (namedNode = expr._right as NameNode)) && (namedNode._column!.DataType == typeof(Guid))) || 693(isRConst && !isLConst && (rightType == StorageType.String) && (leftType == StorageType.Guid) && (null != (namedNode = expr._left as NameNode)) && (namedNode._column!.DataType == typeof(Guid))))
System\Data\SqlDbType.cs (1)
88/// <see cref="Guid"/>. A globally unique identifier (or GUID).
System\Data\SQLTypes\SQLGuid.cs (5)
28private Guid? _value; // the SqlGuid is null if _value is null 44public SqlGuid(Guid g) 75public Guid Value => _value ?? throw new SqlNullValueException(); 78public static implicit operator SqlGuid(Guid x) 84public static explicit operator Guid(SqlGuid x)
System\Data\TypeLimiter.cs (1)
150typeof(Guid),
System\Data\XDRSchema.cs (1)
267new NameType("uuid", typeof(Guid) ),
System\Data\xmlsaver.cs (3)
1326if (col.DataType == typeof(Guid) || col.DataType == typeof(Type)) 2632if (valuesType == typeof(Type) || valuesType == typeof(Guid) || valuesType == typeof(char) || 3064if (valuesType == typeof(Type) || valuesType == typeof(Guid) || valuesType == typeof(char) ||
System.Data.Odbc (7)
Common\System\Data\ProviderBase\DbBuffer.cs (2)
662internal Guid ReadGuid(int offset) 669internal void WriteGuid(int offset, Guid value)
System\Data\Odbc\Odbc32.cs (2)
783private static readonly TypeMap s_uniqueId = new TypeMap(OdbcType.UniqueIdentifier, DbType.Guid, typeof(Guid), ODBC32.SQL_TYPE.GUID, ODBC32.SQL_C.GUID, ODBC32.SQL_C.GUID, 16, 36, false); 896else if (dataType == typeof(System.Guid))
System\Data\Odbc\OdbcDataReader.cs (2)
910public override Guid GetGuid(int i) 912return (Guid)internalGetGuid(i);
System\Data\Odbc\OdbcUtils.cs (1)
253WriteGuid(offset, (Guid)value);
System.Data.OleDb (39)
artifacts\obj\System.Data.OleDb\Debug\net10.0\System.Data.OleDb.notsupported.cs (39)
118public System.Data.DataTable? GetOleDbSchemaTable(System.Guid schema, object?[]? restrictions) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_OleDb); } 214public override System.Guid GetGuid(int ordinal) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_OleDb); } 441public static readonly System.Guid Assertions; 442public static readonly System.Guid Catalogs; 443public static readonly System.Guid Character_Sets; 444public static readonly System.Guid Check_Constraints; 445public static readonly System.Guid Check_Constraints_By_Table; 446public static readonly System.Guid Collations; 447public static readonly System.Guid Columns; 448public static readonly System.Guid Column_Domain_Usage; 449public static readonly System.Guid Column_Privileges; 450public static readonly System.Guid Constraint_Column_Usage; 451public static readonly System.Guid Constraint_Table_Usage; 452public static readonly System.Guid DbInfoKeywords; 453public static readonly System.Guid DbInfoLiterals; 454public static readonly System.Guid Foreign_Keys; 455public static readonly System.Guid Indexes; 456public static readonly System.Guid Key_Column_Usage; 457public static readonly System.Guid Primary_Keys; 458public static readonly System.Guid Procedures; 459public static readonly System.Guid Procedure_Columns; 460public static readonly System.Guid Procedure_Parameters; 461public static readonly System.Guid Provider_Types; 462public static readonly System.Guid Referential_Constraints; 463public static readonly System.Guid SchemaGuids; 464public static readonly System.Guid Schemata; 465public static readonly System.Guid Sql_Languages; 466public static readonly System.Guid Statistics; 467public static readonly System.Guid Tables; 468public static readonly System.Guid Tables_Info; 469public static readonly System.Guid Table_Constraints; 470public static readonly System.Guid Table_Privileges; 471public static readonly System.Guid Table_Statistics; 472public static readonly System.Guid Translations; 473public static readonly System.Guid Trustee; 474public static readonly System.Guid Usage_Privileges; 475public static readonly System.Guid Views; 476public static readonly System.Guid View_Column_Usage; 477public static readonly System.Guid View_Table_Usage;
System.Diagnostics.DiagnosticSource (7)
System\Diagnostics\Activity.cs (2)
1405Guid g = Guid.NewGuid();
System\Diagnostics\Metrics\MetricsEventSource.cs (1)
647sessionId = Guid.NewGuid().ToString();
System\Diagnostics\RandomNumberGenerator.cs (4)
21Guid g1 = Guid.NewGuid(); 22Guid g2 = Guid.NewGuid();
System.Diagnostics.EventLog (9)
artifacts\obj\System.Diagnostics.EventLog\Debug\net10.0\System.Diagnostics.EventLog.notsupported.cs (9)
214public System.Guid? ProviderControlGuid { get { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } 353public override System.Guid? ActivityId { get { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } 368public override System.Guid? ProviderId { get { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } 372public override System.Guid? RelatedActivityId { get { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } 456public abstract System.Guid? ActivityId { get; } 469public abstract System.Guid? ProviderId { get; } 473public abstract System.Guid? RelatedActivityId { get; } 496public System.Guid EventGuid { get { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } 512public System.Guid Id { get { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } }
System.Diagnostics.PerformanceCounter (2)
artifacts\obj\System.Diagnostics.PerformanceCounter\Debug\net10.0\System.Diagnostics.PerformanceCounter.notsupported.cs (2)
221public CounterSet(System.Guid providerGuid, System.Guid counterSetGuid, System.Diagnostics.PerformanceData.CounterSetInstanceType instanceType) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_PerfCounters); }
System.Diagnostics.StackTrace (23)
System\Diagnostics\SymbolStore\ISymbolDocument.cs (4)
10Guid DocumentType { get; } 13Guid Language { get; } 14Guid LanguageVendor { get; } 17Guid CheckSumAlgorithmId { get; }
System\Diagnostics\SymbolStore\ISymbolReader.cs (3)
11Guid language, 12Guid languageVendor, 13Guid documentType);
System\Diagnostics\SymbolStore\ISymbolWriter.cs (3)
20Guid language, 21Guid languageVendor, 22Guid documentType);
System\Diagnostics\SymbolStore\SymDocumentType.cs (1)
8public static readonly Guid Text = new Guid(0x5a869d0b, 0x6611, 0x11d3, 0xbd, 0x2a, 0x0, 0x0, 0xf8, 0x8, 0x49, 0xbd);
System\Diagnostics\SymbolStore\SymLanguageType.cs (11)
8public static readonly Guid C = new Guid(0x63a08714, unchecked((short)0xfc37), 0x11d2, 0x90, 0x4c, 0x0, 0xc0, 0x4f, 0xa3, 0x02, 0xa1); 9public static readonly Guid CPlusPlus = new Guid(0x3a12d0b7, unchecked((short)0xc26c), 0x11d0, 0xb4, 0x42, 0x0, 0xa0, 0x24, 0x4a, 0x1d, 0xd2); 11public static readonly Guid CSharp = new Guid(0x3f5162f8, unchecked((short)0x07c6), 0x11d3, 0x90, 0x53, 0x0, 0xc0, 0x4f, 0xa3, 0x02, 0xa1); 13public static readonly Guid Basic = new Guid(0x3a12d0b8, unchecked((short)0xc26c), 0x11d0, 0xb4, 0x42, 0x0, 0xa0, 0x24, 0x4a, 0x1d, 0xd2); 15public static readonly Guid Java = new Guid(0x3a12d0b4, unchecked((short)0xc26c), 0x11d0, 0xb4, 0x42, 0x0, 0xa0, 0x24, 0x4a, 0x1d, 0xd2); 17public static readonly Guid Cobol = new Guid(unchecked((int)0xaf046cd1), unchecked((short)0xd0e1), 0x11d2, 0x97, 0x7c, 0x0, 0xa0, 0xc9, 0xb4, 0xd5, 0xc); 19public static readonly Guid Pascal = new Guid(unchecked((int)0xaf046cd2), unchecked((short)0xd0e1), 0x11d2, 0x97, 0x7c, 0x0, 0xa0, 0xc9, 0xb4, 0xd5, 0xc); 21public static readonly Guid ILAssembly = new Guid(unchecked((int)0xaf046cd3), unchecked((short)0xd0e1), 0x11d2, 0x97, 0x7c, 0x0, 0xa0, 0xc9, 0xb4, 0xd5, 0xc); 23public static readonly Guid JScript = new Guid(0x3a12d0b6, unchecked((short)0xc26c), 0x11d0, 0xb4, 0x42, 0x00, 0xa0, 0x24, 0x4a, 0x1d, 0xd2); 25public static readonly Guid SMC = new Guid(unchecked((int)0xd9b9f7b), 0x6611, unchecked((short)0x11d3), 0xbd, 0x2a, 0x0, 0x0, 0xf8, 0x8, 0x49, 0xbd); 27public static readonly Guid MCPlusPlus = new Guid(0x4b35fde8, unchecked((short)0x07c6), 0x11d3, 0x90, 0x53, 0x0, 0xc0, 0x4f, 0xa3, 0x02, 0xa1);
System\Diagnostics\SymbolStore\SymLanguageVendor.cs (1)
8public static readonly Guid Microsoft = new Guid(unchecked((int)0x994b45c4), unchecked((short)0xe6e9), 0x11d2, 0x90, 0x3f, 0x00, 0xc0, 0x4f, 0xa3, 0x02, 0xa1);
System.Diagnostics.TextWriterTraceListener (5)
System\Diagnostics\TextWriterTraceListener.cs (1)
241fileNameOnly = $"{Guid.NewGuid()}{fileNameOnly}";
System\Diagnostics\XmlWriterTraceListener.cs (4)
192public override void TraceTransfer(TraceEventCache? eventCache, string source, int id, string? message, Guid relatedActivityId) 202private void WriteHeader(string source, TraceEventType eventType, int id, TraceEventCache? eventCache, Guid relatedActivityId) 243InternalWrite(eventCache != null ? Trace.CorrelationManager.ActivityId : Guid.Empty); 404private void InternalWrite(Guid message)
System.Diagnostics.TraceSource (6)
System\Diagnostics\CorrelationManager.cs (4)
13private readonly AsyncLocal<Guid> _activityId = new AsyncLocal<Guid>(); 24public void StartLogicalOperation() => StartLogicalOperation(Guid.NewGuid()); 28public Guid ActivityId { get { return _activityId.Value; } set { _activityId.Value = value; } }
System\Diagnostics\TraceListener.cs (1)
176public virtual void TraceTransfer(TraceEventCache? eventCache, string source, int id, string? message, Guid relatedActivityId)
System\Diagnostics\TraceSource.cs (1)
429public void TraceTransfer(int id, string? message, Guid relatedActivityId)
System.DirectoryServices (70)
artifacts\obj\System.DirectoryServices\Debug\net10.0\System.DirectoryServices.notsupported.cs (70)
11public ActiveDirectoryAccessRule(System.Security.Principal.IdentityReference identity, System.DirectoryServices.ActiveDirectoryRights adRights, System.Security.AccessControl.AccessControlType type) : base (default(System.Security.Principal.IdentityReference), default(int), default(bool), default(System.Security.AccessControl.InheritanceFlags), default(System.Security.AccessControl.PropagationFlags), default(System.Guid), default(System.Guid), default(System.Security.AccessControl.AccessControlType)) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } 12public ActiveDirectoryAccessRule(System.Security.Principal.IdentityReference identity, System.DirectoryServices.ActiveDirectoryRights adRights, System.Security.AccessControl.AccessControlType type, System.DirectoryServices.ActiveDirectorySecurityInheritance inheritanceType) : base (default(System.Security.Principal.IdentityReference), default(int), default(bool), default(System.Security.AccessControl.InheritanceFlags), default(System.Security.AccessControl.PropagationFlags), default(System.Guid), default(System.Guid), default(System.Security.AccessControl.AccessControlType)) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } 13public ActiveDirectoryAccessRule(System.Security.Principal.IdentityReference identity, System.DirectoryServices.ActiveDirectoryRights adRights, System.Security.AccessControl.AccessControlType type, System.DirectoryServices.ActiveDirectorySecurityInheritance inheritanceType, System.Guid inheritedObjectType) : base (default(System.Security.Principal.IdentityReference), default(int), default(bool), default(System.Security.AccessControl.InheritanceFlags), default(System.Security.AccessControl.PropagationFlags), default(System.Guid), default(System.Guid), default(System.Security.AccessControl.AccessControlType)) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } 14public ActiveDirectoryAccessRule(System.Security.Principal.IdentityReference identity, System.DirectoryServices.ActiveDirectoryRights adRights, System.Security.AccessControl.AccessControlType type, System.Guid objectType) : base (default(System.Security.Principal.IdentityReference), default(int), default(bool), default(System.Security.AccessControl.InheritanceFlags), default(System.Security.AccessControl.PropagationFlags), default(System.Guid), default(System.Guid), default(System.Security.AccessControl.AccessControlType)) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } 15public ActiveDirectoryAccessRule(System.Security.Principal.IdentityReference identity, System.DirectoryServices.ActiveDirectoryRights adRights, System.Security.AccessControl.AccessControlType type, System.Guid objectType, System.DirectoryServices.ActiveDirectorySecurityInheritance inheritanceType) : base (default(System.Security.Principal.IdentityReference), default(int), default(bool), default(System.Security.AccessControl.InheritanceFlags), default(System.Security.AccessControl.PropagationFlags), default(System.Guid), default(System.Guid), default(System.Security.AccessControl.AccessControlType)) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } 16public ActiveDirectoryAccessRule(System.Security.Principal.IdentityReference identity, System.DirectoryServices.ActiveDirectoryRights adRights, System.Security.AccessControl.AccessControlType type, System.Guid objectType, System.DirectoryServices.ActiveDirectorySecurityInheritance inheritanceType, System.Guid inheritedObjectType) : base (default(System.Security.Principal.IdentityReference), default(int), default(bool), default(System.Security.AccessControl.InheritanceFlags), default(System.Security.AccessControl.PropagationFlags), default(System.Guid), default(System.Guid), default(System.Security.AccessControl.AccessControlType)) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } 22public ActiveDirectoryAuditRule(System.Security.Principal.IdentityReference identity, System.DirectoryServices.ActiveDirectoryRights adRights, System.Security.AccessControl.AuditFlags auditFlags) : base (default(System.Security.Principal.IdentityReference), default(int), default(bool), default(System.Security.AccessControl.InheritanceFlags), default(System.Security.AccessControl.PropagationFlags), default(System.Guid), default(System.Guid), default(System.Security.AccessControl.AuditFlags)) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } 23public ActiveDirectoryAuditRule(System.Security.Principal.IdentityReference identity, System.DirectoryServices.ActiveDirectoryRights adRights, System.Security.AccessControl.AuditFlags auditFlags, System.DirectoryServices.ActiveDirectorySecurityInheritance inheritanceType) : base (default(System.Security.Principal.IdentityReference), default(int), default(bool), default(System.Security.AccessControl.InheritanceFlags), default(System.Security.AccessControl.PropagationFlags), default(System.Guid), default(System.Guid), default(System.Security.AccessControl.AuditFlags)) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } 24public ActiveDirectoryAuditRule(System.Security.Principal.IdentityReference identity, System.DirectoryServices.ActiveDirectoryRights adRights, System.Security.AccessControl.AuditFlags auditFlags, System.DirectoryServices.ActiveDirectorySecurityInheritance inheritanceType, System.Guid inheritedObjectType) : base (default(System.Security.Principal.IdentityReference), default(int), default(bool), default(System.Security.AccessControl.InheritanceFlags), default(System.Security.AccessControl.PropagationFlags), default(System.Guid), default(System.Guid), default(System.Security.AccessControl.AuditFlags)) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } 25public ActiveDirectoryAuditRule(System.Security.Principal.IdentityReference identity, System.DirectoryServices.ActiveDirectoryRights adRights, System.Security.AccessControl.AuditFlags auditFlags, System.Guid objectType) : base (default(System.Security.Principal.IdentityReference), default(int), default(bool), default(System.Security.AccessControl.InheritanceFlags), default(System.Security.AccessControl.PropagationFlags), default(System.Guid), default(System.Guid), default(System.Security.AccessControl.AuditFlags)) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } 26public ActiveDirectoryAuditRule(System.Security.Principal.IdentityReference identity, System.DirectoryServices.ActiveDirectoryRights adRights, System.Security.AccessControl.AuditFlags auditFlags, System.Guid objectType, System.DirectoryServices.ActiveDirectorySecurityInheritance inheritanceType) : base (default(System.Security.Principal.IdentityReference), default(int), default(bool), default(System.Security.AccessControl.InheritanceFlags), default(System.Security.AccessControl.PropagationFlags), default(System.Guid), default(System.Guid), default(System.Security.AccessControl.AuditFlags)) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } 27public ActiveDirectoryAuditRule(System.Security.Principal.IdentityReference identity, System.DirectoryServices.ActiveDirectoryRights adRights, System.Security.AccessControl.AuditFlags auditFlags, System.Guid objectType, System.DirectoryServices.ActiveDirectorySecurityInheritance inheritanceType, System.Guid inheritedObjectType) : base (default(System.Security.Principal.IdentityReference), default(int), default(bool), default(System.Security.AccessControl.InheritanceFlags), default(System.Security.AccessControl.PropagationFlags), default(System.Guid), default(System.Guid), default(System.Security.AccessControl.AuditFlags)) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } 61public sealed override System.Security.AccessControl.AccessRule AccessRuleFactory(System.Security.Principal.IdentityReference identityReference, int accessMask, bool isInherited, System.Security.AccessControl.InheritanceFlags inheritanceFlags, System.Security.AccessControl.PropagationFlags propagationFlags, System.Security.AccessControl.AccessControlType type, System.Guid objectGuid, System.Guid inheritedObjectGuid) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } 65public sealed override System.Security.AccessControl.AuditRule AuditRuleFactory(System.Security.Principal.IdentityReference identityReference, int accessMask, bool isInherited, System.Security.AccessControl.InheritanceFlags inheritanceFlags, System.Security.AccessControl.PropagationFlags propagationFlags, System.Security.AccessControl.AuditFlags flags, System.Guid objectGuid, System.Guid inheritedObjectGuid) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } 107public CreateChildAccessRule(System.Security.Principal.IdentityReference identity, System.Security.AccessControl.AccessControlType type, System.DirectoryServices.ActiveDirectorySecurityInheritance inheritanceType, System.Guid inheritedObjectType) : base (default(System.Security.Principal.IdentityReference), default(System.DirectoryServices.ActiveDirectoryRights), default(System.Security.AccessControl.AccessControlType)) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } 108public CreateChildAccessRule(System.Security.Principal.IdentityReference identity, System.Security.AccessControl.AccessControlType type, System.Guid childType) : base (default(System.Security.Principal.IdentityReference), default(System.DirectoryServices.ActiveDirectoryRights), default(System.Security.AccessControl.AccessControlType)) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } 109public CreateChildAccessRule(System.Security.Principal.IdentityReference identity, System.Security.AccessControl.AccessControlType type, System.Guid childType, System.DirectoryServices.ActiveDirectorySecurityInheritance inheritanceType) : base (default(System.Security.Principal.IdentityReference), default(System.DirectoryServices.ActiveDirectoryRights), default(System.Security.AccessControl.AccessControlType)) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } 110public CreateChildAccessRule(System.Security.Principal.IdentityReference identity, System.Security.AccessControl.AccessControlType type, System.Guid childType, System.DirectoryServices.ActiveDirectorySecurityInheritance inheritanceType, System.Guid inheritedObjectType) : base (default(System.Security.Principal.IdentityReference), default(System.DirectoryServices.ActiveDirectoryRights), default(System.Security.AccessControl.AccessControlType)) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } 116public DeleteChildAccessRule(System.Security.Principal.IdentityReference identity, System.Security.AccessControl.AccessControlType type, System.DirectoryServices.ActiveDirectorySecurityInheritance inheritanceType, System.Guid inheritedObjectType) : base (default(System.Security.Principal.IdentityReference), default(System.DirectoryServices.ActiveDirectoryRights), default(System.Security.AccessControl.AccessControlType)) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } 117public DeleteChildAccessRule(System.Security.Principal.IdentityReference identity, System.Security.AccessControl.AccessControlType type, System.Guid childType) : base (default(System.Security.Principal.IdentityReference), default(System.DirectoryServices.ActiveDirectoryRights), default(System.Security.AccessControl.AccessControlType)) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } 118public DeleteChildAccessRule(System.Security.Principal.IdentityReference identity, System.Security.AccessControl.AccessControlType type, System.Guid childType, System.DirectoryServices.ActiveDirectorySecurityInheritance inheritanceType) : base (default(System.Security.Principal.IdentityReference), default(System.DirectoryServices.ActiveDirectoryRights), default(System.Security.AccessControl.AccessControlType)) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } 119public DeleteChildAccessRule(System.Security.Principal.IdentityReference identity, System.Security.AccessControl.AccessControlType type, System.Guid childType, System.DirectoryServices.ActiveDirectorySecurityInheritance inheritanceType, System.Guid inheritedObjectType) : base (default(System.Security.Principal.IdentityReference), default(System.DirectoryServices.ActiveDirectoryRights), default(System.Security.AccessControl.AccessControlType)) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } 125public DeleteTreeAccessRule(System.Security.Principal.IdentityReference identity, System.Security.AccessControl.AccessControlType type, System.DirectoryServices.ActiveDirectorySecurityInheritance inheritanceType, System.Guid inheritedObjectType) : base (default(System.Security.Principal.IdentityReference), default(System.DirectoryServices.ActiveDirectoryRights), default(System.Security.AccessControl.AccessControlType)) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } 154public System.Guid Guid { get { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } } 335public ExtendedRightAccessRule(System.Security.Principal.IdentityReference identity, System.Security.AccessControl.AccessControlType type, System.DirectoryServices.ActiveDirectorySecurityInheritance inheritanceType, System.Guid inheritedObjectType) : base (default(System.Security.Principal.IdentityReference), default(System.DirectoryServices.ActiveDirectoryRights), default(System.Security.AccessControl.AccessControlType)) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } 336public ExtendedRightAccessRule(System.Security.Principal.IdentityReference identity, System.Security.AccessControl.AccessControlType type, System.Guid extendedRightType) : base (default(System.Security.Principal.IdentityReference), default(System.DirectoryServices.ActiveDirectoryRights), default(System.Security.AccessControl.AccessControlType)) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } 337public ExtendedRightAccessRule(System.Security.Principal.IdentityReference identity, System.Security.AccessControl.AccessControlType type, System.Guid extendedRightType, System.DirectoryServices.ActiveDirectorySecurityInheritance inheritanceType) : base (default(System.Security.Principal.IdentityReference), default(System.DirectoryServices.ActiveDirectoryRights), default(System.Security.AccessControl.AccessControlType)) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } 338public ExtendedRightAccessRule(System.Security.Principal.IdentityReference identity, System.Security.AccessControl.AccessControlType type, System.Guid extendedRightType, System.DirectoryServices.ActiveDirectorySecurityInheritance inheritanceType, System.Guid inheritedObjectType) : base (default(System.Security.Principal.IdentityReference), default(System.DirectoryServices.ActiveDirectoryRights), default(System.Security.AccessControl.AccessControlType)) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } 344public ListChildrenAccessRule(System.Security.Principal.IdentityReference identity, System.Security.AccessControl.AccessControlType type, System.DirectoryServices.ActiveDirectorySecurityInheritance inheritanceType, System.Guid inheritedObjectType) : base (default(System.Security.Principal.IdentityReference), default(System.DirectoryServices.ActiveDirectoryRights), default(System.Security.AccessControl.AccessControlType)) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } 360public PropertyAccessRule(System.Security.Principal.IdentityReference identity, System.Security.AccessControl.AccessControlType type, System.DirectoryServices.PropertyAccess access, System.DirectoryServices.ActiveDirectorySecurityInheritance inheritanceType, System.Guid inheritedObjectType) : base (default(System.Security.Principal.IdentityReference), default(System.DirectoryServices.ActiveDirectoryRights), default(System.Security.AccessControl.AccessControlType)) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } 361public PropertyAccessRule(System.Security.Principal.IdentityReference identity, System.Security.AccessControl.AccessControlType type, System.DirectoryServices.PropertyAccess access, System.Guid propertyType) : base (default(System.Security.Principal.IdentityReference), default(System.DirectoryServices.ActiveDirectoryRights), default(System.Security.AccessControl.AccessControlType)) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } 362public PropertyAccessRule(System.Security.Principal.IdentityReference identity, System.Security.AccessControl.AccessControlType type, System.DirectoryServices.PropertyAccess access, System.Guid propertyType, System.DirectoryServices.ActiveDirectorySecurityInheritance inheritanceType) : base (default(System.Security.Principal.IdentityReference), default(System.DirectoryServices.ActiveDirectoryRights), default(System.Security.AccessControl.AccessControlType)) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } 363public PropertyAccessRule(System.Security.Principal.IdentityReference identity, System.Security.AccessControl.AccessControlType type, System.DirectoryServices.PropertyAccess access, System.Guid propertyType, System.DirectoryServices.ActiveDirectorySecurityInheritance inheritanceType, System.Guid inheritedObjectType) : base (default(System.Security.Principal.IdentityReference), default(System.DirectoryServices.ActiveDirectoryRights), default(System.Security.AccessControl.AccessControlType)) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } 390public PropertySetAccessRule(System.Security.Principal.IdentityReference identity, System.Security.AccessControl.AccessControlType type, System.DirectoryServices.PropertyAccess access, System.Guid propertySetType) : base (default(System.Security.Principal.IdentityReference), default(System.DirectoryServices.ActiveDirectoryRights), default(System.Security.AccessControl.AccessControlType)) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } 391public PropertySetAccessRule(System.Security.Principal.IdentityReference identity, System.Security.AccessControl.AccessControlType type, System.DirectoryServices.PropertyAccess access, System.Guid propertySetType, System.DirectoryServices.ActiveDirectorySecurityInheritance inheritanceType) : base (default(System.Security.Principal.IdentityReference), default(System.DirectoryServices.ActiveDirectoryRights), default(System.Security.AccessControl.AccessControlType)) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } 392public PropertySetAccessRule(System.Security.Principal.IdentityReference identity, System.Security.AccessControl.AccessControlType type, System.DirectoryServices.PropertyAccess access, System.Guid propertySetType, System.DirectoryServices.ActiveDirectorySecurityInheritance inheritanceType, System.Guid inheritedObjectType) : base (default(System.Security.Principal.IdentityReference), default(System.DirectoryServices.ActiveDirectoryRights), default(System.Security.AccessControl.AccessControlType)) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } 666public System.Guid SchemaGuid { get { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } set { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } } 715public System.Guid SchemaGuid { get { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } set { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } } 1033public System.Guid LastOriginatingInvocationId { get { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } } 1558public System.Guid SourceInvocationId { get { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } } 1597public System.Guid SourceInvocationId { get { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } }
System.DirectoryServices.AccountManagement (1)
artifacts\obj\System.DirectoryServices.AccountManagement\Debug\net10.0\System.DirectoryServices.AccountManagement.notsupported.cs (1)
196public System.Guid? Guid { get { throw new System.PlatformNotSupportedException(System.SR.DirectoryServicesAccountManagement_PlatformNotSupported); } }
System.Drawing.Common.Tests (37)
System\Drawing\BitmapTests.cs (2)
496Assert.Equal(1, bitmap.GetFrameCount(new FrameDimension(Guid.Empty))); 518Assert.Equal(0, bitmap.SelectActiveFrame(new FrameDimension(Guid.Empty), index));
System\Drawing\ImageFormatConverterTests.cs (8)
32Assert.False(_imgFmtConv.CanConvertFrom(null, typeof(Guid)), "Guid"); 39Assert.False(_imgFmtConvFrmTD.CanConvertFrom(null, typeof(Guid)), "TD Guid"); 50Assert.False(_imgFmtConv.CanConvertTo(null, typeof(Guid)), "Guid"); 57Assert.False(_imgFmtConvFrmTD.CanConvertTo(null, typeof(Guid)), "TD Guid"); 110Guid testGuid = Guid.NewGuid(); 147Assert.Throws<NotSupportedException>(() => _imgFmtConv.ConvertTo(null, CultureInfo.InvariantCulture, _imageFmt, typeof(Guid))); 152Assert.Throws<NotSupportedException>(() => _imgFmtConvFrmTD.ConvertTo(null, CultureInfo.InvariantCulture, _imageFmt, typeof(Guid)));
System\Drawing\ImageTests.cs (3)
615new Guid[] 630new Guid[] 644public void GetEncoderParameterList_ReturnsExpected(ImageFormat format, Guid[] expectedParameters)
System\Drawing\Imaging\EncoderParameterTests.cs (4)
32yield return new object[] { new Encoder(Guid.NewGuid()), byte.MinValue }; 33yield return new object[] { new Encoder(Guid.NewGuid()), 1 }; 34yield return new object[] { new Encoder(Guid.NewGuid()), byte.MaxValue }; 199Encoder encoder = new(Guid.NewGuid());
System\Drawing\Imaging\EncoderTests.cs (4)
11Guid guid = Guid.NewGuid(); 35public void DefinedEncoders_ReturnsExpected(Guid defined, Guid expected)
System\Drawing\Imaging\FrameDimensionTests.cs (5)
11Guid guid = Guid.NewGuid(); 51public void Guid_ReturnsExpected(Guid expected, FrameDimension frameDimension) 66Guid guid = Guid.NewGuid();
System\Drawing\Imaging\ImageCodecInfoTests.cs (2)
45private readonly Dictionary<Guid, ImageCodecInfo> _decoders; 46private readonly Dictionary<Guid, ImageCodecInfo> _encoders;
System\Drawing\Imaging\ImageFormatTests.cs (3)
94public void Guid_ReturnsExpected(Guid expectedGuid, ImageFormat imageFormat) 124Guid guid = Guid.NewGuid();
System\Drawing\Printing\MarginsConverterTests.cs (6)
22Assert.False(mc.CanConvertFrom(context, typeof(Guid))); 37Assert.False(mc.CanConvertTo(context, typeof(Guid))); 111Assert.Throws<NotSupportedException>(() => mc.ConvertFrom(context, culture, Guid.NewGuid())); 121Guid guid = Guid.NewGuid(); 141Assert.Throws<NotSupportedException>(() => mc.ConvertTo(context, culture, guid, typeof(Guid)));
System.IO.FileSystem.AccessControl (4)
artifacts\obj\System.IO.FileSystem.AccessControl\Debug\net10.0\System.IO.FileSystem.AccessControl.notsupported.cs (4)
30public virtual System.Security.AccessControl.AccessRule AccessRuleFactory(System.Security.Principal.IdentityReference identityReference, int accessMask, bool isInherited, System.Security.AccessControl.InheritanceFlags inheritanceFlags, System.Security.AccessControl.PropagationFlags propagationFlags, System.Security.AccessControl.AccessControlType type, System.Guid objectType, System.Guid inheritedObjectType) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl); } 33public virtual System.Security.AccessControl.AuditRule AuditRuleFactory(System.Security.Principal.IdentityReference identityReference, int accessMask, bool isInherited, System.Security.AccessControl.InheritanceFlags inheritanceFlags, System.Security.AccessControl.PropagationFlags propagationFlags, System.Security.AccessControl.AuditFlags flags, System.Guid objectType, System.Guid inheritedObjectType) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl); }
System.IO.MemoryMappedFiles (2)
System\IO\MemoryMappedFiles\MemoryMappedFile.Unix.cs (2)
265Guid.NewGuid().TryFormat(guid, out int charsWritten, "N"); 316string path = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString("N"));
System.IO.Packaging (2)
System\IO\Packaging\InternalRelationshipCollection.cs (1)
599return string.Concat("R", Guid.NewGuid().ToString("N").Substring(0, TimestampLength));
System\IO\Packaging\PartBasedPackageProperties.cs (1)
731+ Guid.NewGuid().ToString(GuidStorageFormatString)
System.Linq.Expressions (27)
System\Linq\Expressions\SymbolDocumentInfo.cs (27)
28public virtual Guid Language => Guid.Empty; 33public virtual Guid LanguageVendor => Guid.Empty; 35internal static readonly Guid DocumentType_Text = new Guid(0x5a869d0b, 0x6611, 0x11d3, 0xbd, 0x2a, 0, 0, 0xf8, 8, 0x49, 0xbd); 41public virtual Guid DocumentType => DocumentType_Text; 46internal SymbolDocumentWithGuids(string fileName, ref Guid language) 53internal SymbolDocumentWithGuids(string fileName, ref Guid language, ref Guid vendor) 61internal SymbolDocumentWithGuids(string fileName, ref Guid language, ref Guid vendor, ref Guid documentType) 69public override Guid Language { get; } 71public override Guid LanguageVendor { get; } 73public override Guid DocumentType { get; } 92/// <param name="language">A <see cref="Guid"/> to set the <see cref="SymbolDocumentInfo.Language"/> equal to.</param> 95public static SymbolDocumentInfo SymbolDocument(string fileName, Guid language) 104/// <param name="language">A <see cref="Guid"/> to set the <see cref="SymbolDocumentInfo.Language"/> equal to.</param> 105/// <param name="languageVendor">A <see cref="Guid"/> to set the <see cref="SymbolDocumentInfo.LanguageVendor"/> equal to.</param> 109public static SymbolDocumentInfo SymbolDocument(string fileName, Guid language, Guid languageVendor) 118/// <param name="language">A <see cref="Guid"/> to set the <see cref="SymbolDocumentInfo.Language"/> equal to.</param> 119/// <param name="languageVendor">A <see cref="Guid"/> to set the <see cref="SymbolDocumentInfo.LanguageVendor"/> equal to.</param> 120/// <param name="documentType">A <see cref="Guid"/> to set the <see cref="SymbolDocumentInfo.DocumentType"/> equal to.</param> 125public static SymbolDocumentInfo SymbolDocument(string fileName, Guid language, Guid languageVendor, Guid documentType)
System.Net.Http (8)
System\Net\Http\DiagnosticsHandler.cs (7)
108Guid loggingRequestId = Guid.Empty; 145loggingRequestId = Guid.NewGuid(); 311internal RequestData(HttpRequestMessage request, Guid loggingRequestId, long timestamp) 319public Guid LoggingRequestId { get; } 328internal ResponseData(HttpResponseMessage? response, Guid loggingRequestId, long timestamp, TaskStatus requestTaskStatus) 337public Guid LoggingRequestId { get; }
System\Net\Http\MultipartContent.cs (1)
93return Guid.NewGuid().ToString();
System.Net.HttpListener (2)
System\Net\Managed\HttpListenerRequest.Managed.cs (2)
342public Guid RequestTraceIdentifier { get; } = Guid.NewGuid();
System.Net.Mail (3)
System\Net\Mail\Attachment.cs (1)
203cid = Guid.NewGuid().ToString();
System\Net\Mail\SmtpClient.cs (1)
378filename = $"{Guid.NewGuid()}.eml";
System\Net\Mime\MimeMultiPart.cs (1)
239return $"--boundary_{(uint)b}_{Guid.NewGuid()}";
System.Net.WebSockets.Client (1)
System\Net\WebSockets\WebSocketHandle.Managed.cs (1)
493bool success = Guid.NewGuid().TryWriteBytes(bytes);
System.Private.CoreLib (300)
artifacts\obj\coreclr\System.Private.CoreLib\linux.x64.Debug\NativeRuntimeEventSource.Generated.cs (5)
709private void ModuleLoad_V2(ulong ModuleID, ulong AssemblyID, uint ModuleFlags, uint Reserved1, string ModuleILPath, string ModuleNativePath, ushort ClrInstanceID, Guid ManagedPdbSignature, uint ManagedPdbAge, string ManagedPdbBuildPath, Guid NativePdbSignature, uint NativePdbAge, string NativePdbBuildPath) 716private void ModuleUnload_V2(ulong ModuleID, ulong AssemblyID, uint ModuleFlags, uint Reserved1, string ModuleILPath, string ModuleNativePath, ushort ClrInstanceID, Guid ManagedPdbSignature, uint ManagedPdbAge, string ManagedPdbBuildPath, Guid NativePdbSignature, uint NativePdbAge, string NativePdbBuildPath) 786private void RuntimeInformationStart(ushort ClrInstanceID, ushort Sku, ushort BclMajorVersion, ushort BclMinorVersion, ushort BclBuildNumber, ushort BclQfeNumber, ushort VMMajorVersion, ushort VMMinorVersion, ushort VMBuildNumber, ushort VMQfeNumber, uint StartupFlags, byte StartupMode, string CommandLine, Guid ComObjectGuid, string RuntimeDllPath)
src\Internal\Runtime\InteropServices\ComActivationContextInternal.cs (2)
13public Guid ClassId; 14public Guid InterfaceId;
src\libraries\Common\src\Interop\Windows\Kernel32\Interop.Globalization.cs (1)
156internal Guid guidCustomVersion;
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Formatter\Utf8Formatter.Guid.cs (6)
29public static bool TryFormat(Guid value, Span<byte> destination, out int bytesWritten, StandardFormat format = default) 36flags = 36 + Guid.TryFormatFlags_UseDashes; 40flags = 38 + Guid.TryFormatFlags_UseDashes + Guid.TryFormatFlags_CurlyBraces; 44flags = 38 + Guid.TryFormatFlags_UseDashes + Guid.TryFormatFlags_Parens;
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Guid.cs (3)
29public static bool TryParse(ReadOnlySpan<byte> source, out Guid value, out int bytesConsumed, char standardFormat = default) 54private static bool TryParseGuidN(ReadOnlySpan<byte> text, out Guid value, out int bytesConsumed) 105private static bool TryParseGuidCore(ReadOnlySpan<byte> source, out Guid value, out int bytesConsumed, int ends)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\CodeAnalysis\StringSyntaxAttribute.cs (1)
50/// <summary>The syntax identifier for strings containing <see cref="Guid"/> format specifiers.</summary>
src\libraries\System.Private.CoreLib\src\System\Diagnostics\SymbolStore\ISymbolDocumentWriter.cs (1)
8void SetCheckSum(Guid algorithmId, byte[] checkSum);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\ActivityTracker.cs (15)
45public void OnStart(string providerName, string activityName, int task, ref Guid activityId, ref Guid relatedActivityId, EventActivityOptions options, bool useTplSource = true) 79activityId = Guid.Empty; 80relatedActivityId = Guid.Empty; 127public void OnStop(string providerName, string activityName, int task, ref Guid activityId, bool useTplSource = true) 155activityId = Guid.Empty; 287public ActivityInfo(string name, long uniqueId, ActivityInfo? creator, Guid activityIDToRestore, EventActivityOptions options) 300public Guid ActivityId => m_guid; 349private unsafe void CreateActivityPathGuid(out Guid idRet, out int activityPathGuidOffset) 351fixed (Guid* outPtr = &idRet) 380private unsafe void CreateOverflowGuid(Guid* outPtr) 428private static unsafe int AddIdToGuid(Guid* outPtr, int whereToAddId, uint id, bool overflow = false) 518internal readonly Guid m_guid; // Activity Guid, it is basically an encoding of the Path() (see CreateActivityPathGuid) 525internal readonly Guid m_activityIdToRestore; // The Guid to restore after a stop. 591EventSource.SetCurrentThreadActivityId(Guid.Empty);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventPipe.cs (2)
17internal Guid ActivityId; 18internal Guid ChildActivityId;
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventPipe.Internal.cs (3)
45internal static partial int EventActivityIdControl(uint controlCode, ref Guid activityId); 48internal static unsafe partial void WriteEventData(IntPtr eventHandle, EventProvider.EventData* pEventData, uint dataCount, Guid* activityId, Guid* relatedActivityId);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventPipeEventProvider.cs (5)
73internal override unsafe void Register(Guid id, string name) 105Guid* activityId, 106Guid* relatedActivityId, 134internal override int ActivityIdControl(Interop.Advapi32.ActivityControl controlCode, ref Guid activityId) 147internal static int EventActivityIdControl(Interop.Advapi32.ActivityControl controlCode, ref Guid activityId)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventPipeMetadataGenerator.cs (2)
555else if (type == typeof(Guid)) 657if (parameterType == typeof(Guid)) // Guid is not a part of TypeCode enum
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventPipePayloadDecoder.cs (1)
92else if (parameterType == typeof(Guid))
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventProvider.cs (17)
65private Guid _providerId; // Control Guid 108internal void Register(Guid id, string name) 383else if (data is Guid) 385dataDescriptor->Size = (uint)sizeof(Guid); 386Guid* guidptr = (Guid*)dataBuffer; 387*guidptr = (Guid)data; 463internal unsafe bool WriteEvent(ref EventDescriptor eventDescriptor, IntPtr eventHandle, Guid* activityID, Guid* childActivityID, object?[] eventPayload) 673protected internal unsafe bool WriteEvent(ref EventDescriptor eventDescriptor, IntPtr eventHandle, Guid* activityID, Guid* childActivityID, int dataCount, IntPtr data) 697Guid* activityID, 698Guid* relatedActivityID, 1235internal virtual void Register(Guid id, string name) 1246Guid* activityId, 1247Guid* relatedActivityId, 1254internal virtual int ActivityIdControl(Interop.Advapi32.ActivityControl ControlCode, ref Guid ActivityId)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (54)
230private Guid m_guid; // GUID representing the ETW eventSource to the OS. 311public Guid Guid => m_guid; 368public static Guid GetGuid(Type eventSourceType) 378if (Guid.TryParse(attrib.Guid, out Guid g)) 608public static void SetCurrentThreadActivityId(Guid activityId) 636public static Guid CurrentThreadActivityId 647Guid retVal = default; 680public static void SetCurrentThreadActivityId(Guid activityId, out Guid oldActivityThatWillContinue) 767Guid eventSourceGuid = GetGuid(myType); 1237public static implicit operator EventSourcePrimitive(Guid value) => new(value); 1370protected unsafe void WriteEventWithRelatedActivityIdCore(int eventId, Guid* relatedActivityId, int eventDataCount, EventData* data) 1380Guid* pActivityId = null; 1381Guid activityId = Guid.Empty; 1382Guid relActivityId = Guid.Empty; 1396if (activityId != Guid.Empty) 1398if (relActivityId != Guid.Empty) 1502protected unsafe void WriteEventWithRelatedActivityId(int eventId, Guid relatedActivityId, params object?[] args) 1586Guid* activityID, 1587Guid* relatedActivityID, 1613internal EventSource(Guid eventSourceGuid, string eventSourceName) 1618internal EventSource(Guid eventSourceGuid, string eventSourceName, EventSourceSettings settings, string[]? traits = null) 1637private unsafe void Initialize(Guid eventSourceGuid, string eventSourceName, string[]? traits) 1647if (eventSourceGuid == Guid.Empty) 1757private static Guid GenerateGuidFromName(string name) 1901else if (dataType == typeof(Guid)) 1904decoded = *(Guid*)dataPointer; 1975private unsafe void WriteEventVarargs(int eventId, Guid* childActivityID, object?[] args) 2002Guid* pActivityId = null; 2003Guid activityId = Guid.Empty; 2004Guid relatedActivityId = Guid.Empty; 2020if (activityId != Guid.Empty) 2022if (relatedActivityId != Guid.Empty) 3176Guid providerGuid = source?.Guid ?? GetGuid(eventSourceType); 3451if (args.Length > 0 && args[0].ParameterType == typeof(Guid) && 3904Guid id = new Guid("20752bc4-c151-50f5-f27b-df92d8af5a61"); 3917private static readonly Dictionary<Guid, EventSource.OverrideEventProvider> s_preregisteredEtwProviders = new Dictionary<Guid, EventSource.OverrideEventProvider>(); 3942internal static unsafe void PreregisterEventProviders(Guid id, string name, Func<EventSource?> eventSourceFactory) 4017internal static EventSource.OverrideEventProvider? TryGetPreregisteredEtwProvider(Guid id) 4806private Guid _activityId; 4811public Guid ActivityId 4815if (_activityId == Guid.Empty) 4827public Guid RelatedActivityId => _moreInfo?.RelatedActivityId ?? default; 4938internal unsafe EventWrittenEventArgs(EventSource eventSource, int eventId, Guid* pActivityID, Guid* pChildActivityID) 4960public Guid RelatedActivityId; 5313public ManifestBuilder(string providerName, Guid providerGuid, string? dllName, ResourceManager? resources, 6080if (type == typeof(Guid))
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\NativeRuntimeEventSource.cs (2)
44internal unsafe void ProcessEvent(uint eventID, uint osThreadID, DateTime timeStamp, Guid activityId, Guid childActivityId, ReadOnlySpan<byte> payload)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\RuntimeEventSource.cs (1)
17internal static readonly Guid EventSourceGuid = new Guid("49592C0F-5A05-516D-AA4B-A64E02026C89");
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\PropertyValue.cs (7)
53public Guid AsGuid; 97private PropertyValue(Guid value) : this(new Scalar() { AsGuid = value }, sizeof(Guid)) { } 119if (type == typeof(Guid)) return value => new PropertyValue((Guid)value!); 244if (type == typeof(Guid)) { var f = GetGetMethod<Guid>(property); return container => new PropertyValue(f((TContainer)container.ReferenceValue!)); }
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\SimpleTypeInfos.cs (3)
95public static TraceLoggingTypeInfo Guid() => s_guid ??= new ScalarTypeInfo(typeof(Guid), TraceLoggingDataType.Guid); 156public static unsafe TraceLoggingTypeInfo Guid() => s_guid ??= new ScalarArrayTypeInfo(typeof(Guid[]), TraceLoggingDataType.Guid, sizeof(Guid));
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\Statics.cs (2)
474else if (elementType == typeof(Guid)) 556else if (dataType == typeof(Guid))
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TraceLoggingEventSource.cs (20)
275ref Guid activityId, 276ref Guid relatedActivityId, 284fixed (Guid* pActivity = &activityId, pRelated = &relatedActivityId) 291relatedActivityId == Guid.Empty ? null : pRelated, 332Guid* activityID, 333Guid* childActivityID, 392Guid* activityID, 393Guid* childActivityID, 511Guid* activityID, 512Guid* childActivityID, 581Guid* pActivityId, 582Guid* pRelatedActivityId, 625Guid activityId = Guid.Empty; 626Guid relatedActivityId = Guid.Empty; 640if (activityId != Guid.Empty) 642if (relatedActivityId != Guid.Empty) 698private unsafe void WriteToAllListeners(string? eventName, ref EventDescriptor eventDescriptor, EventTags tags, Guid* pActivityId, Guid* pChildActivityId, EventPayload? payload)
src\libraries\System.Private.CoreLib\src\System\Globalization\SortVersion.cs (5)
14private readonly Guid m_SortId; // Do not rename (binary serialization) 18public Guid SortId => m_SortId; 20public SortVersion(int fullVersion, Guid sortId) 26internal SortVersion(int nlsVersion, int effectiveId, Guid customVersion) 30if (customVersion == Guid.Empty)
src\libraries\System.Private.CoreLib\src\System\Guid.cs (61)
26IComparable<Guid>, 27IEquatable<Guid>, 28ISpanParsable<Guid>, 38public static readonly Guid Empty; 40/// <summary>Gets a <see cref="Guid" /> where all bits are set.</summary> 42public static Guid AllBitsSet => new Guid(uint.MaxValue, ushort.MaxValue, ushort.MaxValue, byte.MaxValue, byte.MaxValue, byte.MaxValue, byte.MaxValue, byte.MaxValue, byte.MaxValue, byte.MaxValue, byte.MaxValue); 70this = MemoryMarshal.Read<Guid>(b); 87this = MemoryMarshal.Read<Guid>(b); 244public readonly Guid ToGuid() 246return Unsafe.As<GuidResult, Guid>(ref Unsafe.AsRef(in this)); 275/// <summary>Gets the value of the variant field for the <see cref="Guid" />.</summary> 282/// <summary>Gets the value of the version field for the <see cref="Guid" />.</summary> 289/// <summary>Creates a new <see cref="Guid" /> according to RFC 9562, following the Version 7 format.</summary> 290/// <returns>A new <see cref="Guid" /> according to RFC 9562, following the Version 7 format.</returns> 295public static Guid CreateVersion7() => CreateVersion7(DateTimeOffset.UtcNow); 297/// <summary>Creates a new <see cref="Guid" /> according to RFC 9562, following the Version 7 format.</summary> 299/// <returns>A new <see cref="Guid" /> according to RFC 9562, following the Version 7 format.</returns> 304public static Guid CreateVersion7(DateTimeOffset timestamp) 311Guid result = NewGuid(); 331public static Guid Parse(string input) 337public static Guid Parse(ReadOnlySpan<char> input) 346public static bool TryParse([NotNullWhen(true)] string? input, out Guid result) 357public static bool TryParse(ReadOnlySpan<char> input, out Guid result) 372public static Guid ParseExact(string input, [StringSyntax(StringSyntaxAttribute.GuidFormat)] string format) 380public static Guid ParseExact(ReadOnlySpan<char> input, [StringSyntax(StringSyntaxAttribute.GuidFormat)] ReadOnlySpan<char> format) 404public static bool TryParseExact([NotNullWhen(true)] string? input, [NotNullWhen(true), StringSyntax(StringSyntaxAttribute.GuidFormat)] string? format, out Guid result) 415public static bool TryParseExact(ReadOnlySpan<char> input, [StringSyntax(StringSyntaxAttribute.GuidFormat)] ReadOnlySpan<char> format, out Guid result) 908Guid guid = new Guid(MemoryMarshal.AsBytes(new ReadOnlySpan<Guid>(in this)), false); 926Guid guid = new Guid(MemoryMarshal.AsBytes(new ReadOnlySpan<Guid>(in this)), bigEndian); 945Guid guid = new Guid(MemoryMarshal.AsBytes(new ReadOnlySpan<Guid>(in this)), false); 967Guid guid = new Guid(MemoryMarshal.AsBytes(new ReadOnlySpan<Guid>(in this)), bigEndian); 983public override bool Equals([NotNullWhen(true)] object? o) => o is Guid g && EqualsCore(this, g); 985public bool Equals(Guid g) => EqualsCore(this, g); 988private static bool EqualsCore(in Guid left, in Guid right) 992return Vector128.LoadUnsafe(ref Unsafe.As<Guid, byte>(ref Unsafe.AsRef(in left))) == Vector128.LoadUnsafe(ref Unsafe.As<Guid, byte>(ref Unsafe.AsRef(in right))); 1014if (value is not Guid other) 1021public int CompareTo(Guid value) 1081public static bool operator ==(Guid a, Guid b) => EqualsCore(a, b); 1083public static bool operator !=(Guid a, Guid b) => !EqualsCore(a, b); 1416private static (Vector128<byte>, Vector128<byte>, Vector128<byte>) FormatGuidVector128Utf8(Guid value, bool useDashes) 1428Vector128<byte> srcVec = Unsafe.As<Guid, Vector128<byte>>(ref value); 1488public static bool operator <(Guid left, Guid right) 1549public static bool operator <=(Guid left, Guid right) 1610public static bool operator >(Guid left, Guid right) 1671public static bool operator >=(Guid left, Guid right) 1736public static Guid Parse(string s, IFormatProvider? provider) => Parse(s); 1739public static bool TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, out Guid result) => TryParse(s, out result); 1746public static Guid Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s); 1749public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out Guid result) => TryParse(s, out result);
src\libraries\System.Private.CoreLib\src\System\Guid.Unix.cs (3)
11public static unsafe Guid NewGuid() 13Guid g; 18Interop.GetCryptographicallySecureRandomBytes((byte*)&g, sizeof(Guid));
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\ModuleBuilder.cs (5)
40public ISymbolDocumentWriter DefineDocument(string url, Guid language, Guid languageVendor, Guid documentType) => 51public ISymbolDocumentWriter DefineDocument(string url, Guid language = default) 65protected virtual ISymbolDocumentWriter DefineDocumentCore(string url, Guid language = default) =>
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (1)
306public override Guid GUID => throw new NotSupportedException(SR.NotSupported_NonReflectedType);
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeBuilderInstantiation.cs (1)
100public override Guid GUID => throw new NotSupportedException();
src\libraries\System.Private.CoreLib\src\System\Reflection\ModifiedType.cs (1)
87public override Guid GUID => _unmodifiedType.GUID;
src\libraries\System.Private.CoreLib\src\System\Reflection\Module.cs (1)
25public virtual Guid ModuleVersionId => throw NotImplemented.ByDesign;
src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureType.cs (1)
104public sealed override Guid GUID => throw new NotSupportedException(SR.NotSupported_SignatureType);
src\libraries\System.Private.CoreLib\src\System\Reflection\TypeDelegator.cs (1)
41public override Guid GUID => typeImpl.GUID;
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\TaskAwaiter.cs (1)
256Guid prevActivityId = default;
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\YieldAwaitable.cs (1)
165Guid prevActivityId = default;
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ComEventsHelpers.NoCom.cs (2)
13public static void Combine(object rcw, Guid iid, int dispid, Delegate d) 18public static Delegate Remove(object rcw, Guid iid, int dispid, Delegate d)
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ComTypes\IConnectionPoint.cs (1)
14void GetConnectionInterface(out Guid pIID);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ComTypes\IConnectionPointContainer.cs (1)
15void FindConnectionPoint([In] ref Guid riid, out IConnectionPoint? ppCP);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ComTypes\IMoniker.cs (3)
23void GetClassID(out Guid pClassID); 33void BindToObject(IBindCtx pbc, IMoniker? pmkToLeft, [In] ref Guid riidResult, [MarshalAs(UnmanagedType.Interface)] out object ppvResult); 34void BindToStorage(IBindCtx pbc, IMoniker? pmkToLeft, [In] ref Guid riid, [MarshalAs(UnmanagedType.Interface)] out object ppvObj);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ComTypes\IPersistFile.cs (1)
15void GetClassID(out Guid pClassID);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ComTypes\IStream.cs (1)
20public Guid clsid;
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ComTypes\ITypeInfo.cs (2)
61public Guid guid; 314void CreateInstance([MarshalAs(UnmanagedType.IUnknown)] object? pUnkOuter, [In] ref Guid riid, [MarshalAs(UnmanagedType.IUnknown), Out] out object ppvObj);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ComTypes\ITypeInfo2.cs (6)
27new void CreateInstance([MarshalAs(UnmanagedType.IUnknown)] object? pUnkOuter, [In] ref Guid riid, [MarshalAs(UnmanagedType.IUnknown), Out] out object ppvObj); 40void GetCustData(ref Guid guid, out object pVarVal); 41void GetFuncCustData(int index, ref Guid guid, out object pVarVal); 42void GetParamCustData(int indexFunc, int indexParam, ref Guid guid, out object pVarVal); 43void GetVarCustData(int index, ref Guid guid, out object pVarVal); 44void GetImplTypeCustData(int index, ref Guid guid, out object pVarVal);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ComTypes\ITypeLib.cs (2)
31public Guid guid; 49void GetTypeInfoOfGuid(ref Guid guid, out ITypeInfo ppTInfo);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ComTypes\ITypeLib2.cs (2)
18new void GetTypeInfoOfGuid(ref Guid guid, out ITypeInfo ppTInfo); 27void GetCustData(ref Guid guid, out object pVarVal);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ComWrappers.cs (1)
87public Guid IID;
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ICustomQueryInterface.cs (1)
12CustomQueryInterfaceResult GetInterface([In] ref Guid iid, out IntPtr ppv);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.cs (5)
133public static unsafe int QueryInterface(IntPtr pUnk, in Guid iid, out IntPtr ppv) 137fixed (Guid* pIID = &iid) 140return ((delegate* unmanaged<IntPtr, Guid*, IntPtr*, int>)(*(*(void***)pUnk + 0 /* IUnknown.QueryInterface slot */)))(pUnk, pIID, p); 1049public static Guid GenerateGuidForType(Type type) 1247public static Type? GetTypeFromCLSID(Guid clsid) => GetTypeFromCLSID(clsid, null, throwOnError: false);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.NoCom.cs (1)
178internal static Type? GetTypeFromCLSID(Guid clsid, string? server, bool throwOnError)
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\ComVariant.cs (1)
90public Guid _version;
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (1)
2307Guid savedActivityID = default;
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskContinuation.cs (4)
436Guid activityId = TplEventSource.CreateGuidForTaskID(continuationId); 437Diagnostics.Tracing.EventSource.SetCurrentThreadActivityId(activityId, out Guid savedActivityId); 631Guid savedActivityId = default; 634Guid activityId = TplEventSource.CreateGuidForTaskID(m_continuationId);
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TplEventSource.cs (5)
222Guid childActivityId = CreateGuidForTaskID(TaskID); 335Guid childActivityId = CreateGuidForTaskID(TaskID); 421Guid continuationActivityId = CreateGuidForTaskID(ContinueWithTaskId); 530public void SetActivityId(Guid NewId) 566internal static Guid CreateGuidForTaskID(int taskID)
src\libraries\System.Private.CoreLib\src\System\Type.cs (5)
556public abstract Guid GUID { get; } 559public static Type? GetTypeFromCLSID(Guid clsid) => GetTypeFromCLSID(clsid, null, throwOnError: false); 561public static Type? GetTypeFromCLSID(Guid clsid, bool throwOnError) => GetTypeFromCLSID(clsid, null, throwOnError: throwOnError); 563public static Type? GetTypeFromCLSID(Guid clsid, string? server) => GetTypeFromCLSID(clsid, server, throwOnError: false); 565public static Type? GetTypeFromCLSID(Guid clsid, string? server, bool throwOnError) => Marshal.GetTypeFromCLSID(clsid, server, throwOnError);
src\System\Reflection\Emit\RuntimeEnumBuilder.cs (1)
59public override Guid GUID => m_typeBuilder.GUID;
src\System\Reflection\Emit\RuntimeGenericTypeParameterBuilder.cs (1)
85public override Guid GUID => throw new NotSupportedException();
src\System\Reflection\Emit\RuntimeModuleBuilder.cs (1)
697public override Guid ModuleVersionId => InternalModule.ModuleVersionId;
src\System\Reflection\Emit\RuntimeTypeBuilder.cs (1)
628public override Guid GUID
src\System\Reflection\InstanceCalliHelper.cs (4)
42internal static Guid Call(delegate*<object, Guid> fn, object o) => fn(o); 104internal static void Call(delegate*<object, Guid, void> fn, object o, Guid arg1) => fn(o, arg1);
src\System\Reflection\MdImport.cs (2)
481private static extern int GetScopeProps(IntPtr scope, out Guid mvid); 483public void GetScopeProps(out Guid mvid)
src\System\Reflection\RuntimeModule.cs (2)
436public override Guid ModuleVersionId 440MetadataImport.GetScopeProps(out Guid mvid);
src\System\Runtime\InteropServices\ComWrappers.cs (1)
385internal static int CallICustomQueryInterface(object customQueryInterfaceMaybe, ref Guid iid, out IntPtr ppObject)
src\System\Runtime\Loader\AssemblyLoadContext.CoreCLR.cs (3)
204private static void StartAssemblyLoad(ref Guid activityId, ref Guid relatedActivityId) 216private static void StopAssemblyLoad(ref Guid activityId)
src\System\RuntimeType.CoreCLR.cs (4)
3356public override unsafe Guid GUID 3363return Guid.Empty; 3366Guid result; 3385private static unsafe partial void GetGuid(MethodTable* pMT, Guid* result);
System.Private.CoreLib.Generators (4)
EventSourceGenerator.cs (1)
50private sealed record EventSourceClass(string Namespace, string ClassName, string SourceName, Guid Guid);
EventSourceGenerator.Parser.cs (3)
66if (!Guid.TryParse(guid, out Guid result)) 99private static Guid GenerateGuidFromName(string name)
System.Private.DataContractSerialization (85)
System\Runtime\Serialization\DataContract.cs (2)
643"Guid" => typeof(Guid), 731else if (type == typeof(Guid))
System\Runtime\Serialization\ExtensionDataReader.cs (3)
721Guid guid = isTypedNode ? ((DataNode<Guid>)dataNode).GetValue() : (Guid)dataNode.Value;
System\Runtime\Serialization\Globals.cs (1)
72s_typeOfGuid ??= typeof(Guid);
System\Runtime\Serialization\Json\XmlJsonWriter.cs (5)
296public override void WriteArray(string? prefix, string localName, string? namespaceUri, Guid[] array, int offset, int count) 346public override void WriteArray(string? prefix, XmlDictionaryString localName, XmlDictionaryString? namespaceUri, Guid[] array, int offset, int count) 996public override void WriteValue(Guid value) 1422else if (value is Guid) 1424WriteValue((Guid)value);
System\Runtime\Serialization\PrimitiveDataContract.cs (3)
986internal GuidDataContract(XmlDictionaryString name, XmlDictionaryString ns) : base(typeof(Guid), name, ns) 997writer.WriteGuid((Guid)obj); 1012xmlWriter.WriteGuid((Guid)obj!, name, ns);
System\Runtime\Serialization\XmlReaderDelegator.cs (4)
325return new DataNode<Guid>(ReadContentAsGuid()); 677internal Guid ReadElementContentAsGuid() 701internal Guid ReadContentAsGuid() 706return Guid.Parse(str);
System\Runtime\Serialization\XmlWriterDelegator.cs (4)
345WriteGuid((Guid)value); 424WriteGuid(((DataNode<Guid>)dataNode).GetValue()); 630internal void WriteGuid(Guid value) 635internal void WriteGuid(Guid value, XmlDictionaryString name, XmlDictionaryString? ns)
System\Xml\ArrayHelper.cs (6)
341internal sealed class GuidArrayHelperWithString : ArrayHelper<string, Guid> 345protected override int ReadArray(XmlDictionaryReader reader, string localName, string namespaceUri, Guid[] array, int offset, int count) 350protected override void WriteArray(XmlDictionaryWriter writer, string prefix, string localName, string namespaceUri, Guid[] array, int offset, int count) 356internal sealed class GuidArrayHelperWithDictionaryString : ArrayHelper<XmlDictionaryString, Guid> 360protected override int ReadArray(XmlDictionaryReader reader, XmlDictionaryString localName, XmlDictionaryString namespaceUri, Guid[] array, int offset, int count) 365protected override void WriteArray(XmlDictionaryWriter writer, string prefix, XmlDictionaryString localName, XmlDictionaryString namespaceUri, Guid[] array, int offset, int count)
System\Xml\UniqueId.cs (4)
53public UniqueId() : this(Guid.NewGuid()) 57public UniqueId(Guid guid) : this(guid.ToByteArray()) 264public bool TryGetGuid(out Guid guid) 269guid = Guid.Empty;
System\Xml\ValueHandle.cs (3)
196return typeof(Guid); 406public Guid ToGuid() 934private Guid GetGuid()
System\Xml\XmlBaseReader.cs (5)
1652public override Guid ReadContentAsGuid() 1657Guid value = node.Value.ToGuid(); 1707else if (type == typeof(Guid)) 1862public override Guid[] ReadGuidArray(string localName, string namespaceUri) 1867public override Guid[] ReadGuidArray(XmlDictionaryString localName, XmlDictionaryString namespaceUri)
System\Xml\XmlBaseWriter.cs (3)
1217else if (value is Guid) 1219WriteValue((Guid)value); 1403public override void WriteValue(Guid value)
System\Xml\XmlBinaryReader.cs (7)
264public override Guid ReadElementContentAsGuid() 271Guid value = BufferReader.ReadGuid(); 1190type = typeof(Guid); 1428private int ReadArray(Guid[] array, int offset, int count) 1440foreach (ref Guid item in array.AsSpan(offset, actual)) 1449public override int ReadArray(string localName, string namespaceUri, Guid[] array, int offset, int count) 1456public override int ReadArray(XmlDictionaryString localName, XmlDictionaryString namespaceUri, Guid[] array, int offset, int count)
System\Xml\XmlBinaryWriter.cs (5)
811public override void WriteGuidText(Guid guid) 983public void WriteGuidArray(ReadOnlySpan<Guid> items) 993foreach (ref readonly Guid guid in items) 1237else if (type == typeof(Guid)) 1432public override void WriteArray(string? prefix, string localName, string? namespaceUri, Guid[] array, int offset, int count)
System\Xml\XmlBufferReader.cs (3)
465public Guid ReadGuid() 469Guid guid = GetGuid(offset); 993public Guid GetGuid(int offset)
System\Xml\XmlConverter.cs (5)
285public static Guid ToGuid(string value) 305public static Guid ToGuid(byte[] buffer, int offset, int count) 392public static string ToString(Guid value) { return value.ToString(); } 418else if (value is Guid) 419return ToString((Guid)value);
System\Xml\XmlDictionaryAsyncCheckWriter.cs (3)
529public override void WriteValue(Guid value) 664public override void WriteArray(string? prefix, string localName, string? namespaceUri, Guid[] array, int offset, int count) 670public override void WriteArray(string? prefix, XmlDictionaryString localName, XmlDictionaryString? namespaceUri, Guid[] array, int offset, int count)
System\Xml\XmlDictionaryReader.cs (10)
590if (type == typeof(Guid[])) 593Guid[] guids = new Guid[values.Length]; 664public virtual Guid ReadContentAsGuid() 886public virtual Guid ReadElementContentAsGuid() 889Guid value; 1257public virtual Guid[] ReadGuidArray(string localName, string namespaceUri) 1262public virtual Guid[] ReadGuidArray(XmlDictionaryString localName, XmlDictionaryString namespaceUri) 1267public virtual int ReadArray(string localName, string namespaceUri, Guid[] array, int offset, int count) 1279public virtual int ReadArray(XmlDictionaryString localName, XmlDictionaryString namespaceUri, Guid[] array, int offset, int count)
System\Xml\XmlDictionaryWriter.cs (5)
181public virtual void WriteValue(Guid value) 308else if (type == typeof(Guid)) 337else if (type == typeof(Guid)) 585public virtual void WriteArray(string? prefix, string localName, string? namespaceUri, Guid[] array, int offset, int count) 596public virtual void WriteArray(string? prefix, XmlDictionaryString localName, XmlDictionaryString? namespaceUri, Guid[] array, int offset, int count)
System\Xml\XmlNodeWriter.cs (2)
90public abstract void WriteGuidText(Guid value); 140public override void WriteGuidText(Guid value) { }
System\Xml\XmlSigningNodeWriter.cs (1)
317public override void WriteGuidText(Guid value)
System\Xml\XmlUTF8TextWriter.cs (1)
625public override void WriteGuidText(Guid value)
System.Private.Windows.Core (44)
Windows\Win32\System\Com\CLSID.cs (5)
9internal static Guid AutoComplete { get; } = new(0x00BB2763, 0x6A77, 0x11D0, 0xA5, 0x35, 0x00, 0xC0, 0x4F, 0xD7, 0xD0, 0x62); 12internal static Guid DragDropHelper { get; } = new(0x4657278A, 0x411B, 0x11D2, 0x83, 0x9A, 0x0, 0xC0, 0x4F, 0xD9, 0x18, 0xD0); 15internal static Guid FileSaveDialog { get; } = new(0xC0B4E2F3, 0xBA21, 0x4773, 0x8D, 0xBA, 0x33, 0x5E, 0xC9, 0x46, 0xEB, 0x8B); 18internal static Guid FileOpenDialog { get; } = new(0xDC1C5A9C, 0xE88A, 0x4DDE, 0xA5, 0xA1, 0x60, 0xF8, 0x2A, 0x20, 0xAE, 0xF7); 21internal static Guid StdGlobalInterfaceTable { get; } = new(0x00000323, 0x0000, 0x0000, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46);
Windows\Win32\System\Com\ComHelpers.cs (2)
324Guid typeLibrary, 327Guid interfaceId)
Windows\Win32\System\Com\GlobalInterfaceTable.cs (1)
18Guid guid = CLSID.StdGlobalInterfaceTable;
Windows\Win32\System\Com\GlobalInterfaceTable.UnknownStrategy.cs (1)
25int IIUnknownStrategy.QueryInterface(void* instancePtr, in Guid iid, out void* ppObj)
Windows\Win32\System\Com\IComCallableWrapper.cs (8)
15public static Guid IID_Guid { get; } = new(0x73b17daf, 0x0480, 0x4702, 0xaf, 0x7c, 0xaf, 0x3b, 0xd4, 0x71, 0x5d, 0x71); 17static ref readonly Guid IComIID.Guid 28return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data)); 32public unsafe HRESULT QueryInterface(in Guid riid, out void* ppvObject) 35fixed (Guid* riidLocal = &riid) 41public unsafe HRESULT QueryInterface(Guid* riid, void** ppvObject) 44return ((delegate* unmanaged[Stdcall]<IComCallableWrapper*, Guid*, void**, HRESULT>)_vtbl[0])(pThis, riid, ppvObject); 62internal delegate* unmanaged[Stdcall]<IEnumUnknown*, Guid*, void**, HRESULT> QueryInterface_1;
Windows\Win32\System\Com\IDispatch.cs (5)
30Guid riid = Guid.Empty; 94Guid guid = Guid.Empty; 134/// <inheritdoc cref="GetIDsOfNames(Guid*, PWSTR*, uint, uint, int*)"/>
Windows\Win32\System\Com\IDispatch.Interface.cs (4)
30private static HRESULT GetIDsOfNames(IDispatch* @this, Guid* riid, PWSTR* rgszNames, uint cNames, uint lcid, int* rgDispId) 37Guid* riid, 65Guid* riid, 74Guid* riid,
Windows\Win32\System\Com\IID.cs (10)
11private static ref readonly Guid IID_NULL 21return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data)); 29/// Gets a pointer to the IID <see cref="Guid"/> for the given <typeparamref name="T"/>. 32public static Guid* Get<T>() where T : unmanaged, IComIID 33=> (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in T.Guid)); 36/// Gets a reference to the IID <see cref="Guid"/> for the given <typeparamref name="T"/>. 39public static ref Guid GetRef<T>() where T : unmanaged, IComIID 43/// Empty <see cref="Guid"/> (GUID_NULL in docs). 45public static Guid* NULL() => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_NULL));
Windows\Win32\System\Com\IUnknown.CCW.cs (2)
21/// our own <see cref="IUnknown.QueryInterface(Guid*, void**)"/> handling for debugging and testing purposes. 47private static unsafe HRESULT QueryInterface(IUnknown* @this, Guid* iid, void* ppObject)
Windows\Win32\System\Com\IUnknown.cs (1)
11internal unsafe HRESULT QueryInterface(Guid* riid, void** ppvObject);
Windows\Win32\System\Com\WinFormsComWrappers.cs (1)
20unknown->QueryInterface_1 = (delegate* unmanaged[Stdcall]<IUnknown*, Guid*, void**, HRESULT>)fpQueryInterface;
Windows\Win32\System\Variant\VARIANT.cs (4)
198return **((Guid**)data); 235Guid guid; 822return new Span<Guid>(ca.pElems, (int)ca.cElems).ToArray(); 1026public Guid* puuid;
System.Private.Windows.Core.Tests (1)
System\Private\Windows\Ole\DataObjectProxy.cs (1)
95private static unsafe HRESULT QueryInterface(IDataObject* @this, Guid* iid, void** ppObject)
System.Private.Windows.Core.TestUtilities (1)
FileCleanupTestBase.cs (1)
50private static string GetUniqueName() => Guid.NewGuid().ToString("D");
System.Private.Windows.GdiPlus (17)
System\Drawing\CoreImageExtensions.cs (6)
13internal static void Save(this IImage image, Stream stream, Guid encoder, Guid format, EncoderParameters* encoderParameters) 16if (encoder == Guid.Empty) 33Guid format = default; 36Guid encoder = ImageCodecInfoHelper.GetEncoderClsid(format); 40if (format == PInvokeCore.ImageFormatJPEG || encoder == Guid.Empty)
System\Drawing\ImageCodecInfoHelper.cs (11)
15private static (Guid Format, Guid Encoder)[]? s_encoders; 20internal static Guid GetEncoderClsid(Guid format) 22foreach ((Guid Format, Guid Encoder) in Encoders) 30return Guid.Empty; 33private static unsafe (Guid Format, Guid Encoder)[] Encoders 52s_encoders = new (Guid Format, Guid Encoder)[codecInfo.Length];
System.Private.Xml (24)
System\Xml\BinaryXml\XmlBinaryReader.cs (2)
3952Guid v = new Guid(a, b, c, _data[pos + 8], _data[pos + 9], _data[pos + 10], _data[pos + 11], _data[pos + 12], _data[pos + 13], _data[pos + 14], _data[pos + 15]); 4089Guid v = new Guid(a, b, c, _data[pos + 8], _data[pos + 9], _data[pos + 10], _data[pos + 11], _data[pos + 12], _data[pos + 13], _data[pos + 14], _data[pos + 15]);
System\Xml\Schema\DataTypeImplementation.cs (4)
3866public override Type ValueType { get { return typeof(Guid); } } 3868internal override Type ListValueType { get { return typeof(Guid[]); } } 3874return ((Guid)value1).Equals(value2) ? 0 : -1; 3899Guid guid;
System\Xml\Serialization\PrimitiveXmlSerializers.cs (2)
201Guid guid = (Guid)o;
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (1)
1245"Guid" => XmlConvert.ToString((Guid)o),
System\Xml\Serialization\Types.cs (2)
529AddNonXsdPrimitive(typeof(Guid), "guid", UrtTypes.Namespace, "Guid", new XmlQualifiedName("string", XmlSchema.Namespace), new XmlSchemaFacet[] { guidPattern }, TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.XmlEncodingNotRequired | TypeFlags.IgnoreDefault); 575else if (type == typeof(Guid))
System\Xml\Serialization\XmlSerializationReader.cs (2)
411return typeof(Guid); 768value = default(Nullable<Guid>);
System\Xml\Serialization\XmlSerializationWriter.cs (4)
230else if (type == typeof(Guid)) 353else if (t == typeof(Guid)) 355tryFormatResult = XmlConvert.TryFormat((Guid)o, _primitivesBuffer, out charsWritten); 1337if (Type.GetTypeCode(t) == TypeCode.Object && !(o is Guid) && (t != typeof(XmlQualifiedName)) && !(o is XmlNode[]) && (t != typeof(byte[])))
System\Xml\Serialization\XmlSerializer.cs (2)
917else if (_primitiveType == typeof(Guid)) 999else if (_primitiveType == typeof(Guid))
System\Xml\XmlConvert.cs (5)
740public static string ToString(Guid value) 1261public static Guid ToGuid(string s) 1266internal static Exception? TryToGuid(string s, out Guid result) 1270result = Guid.Empty; 1802internal static bool TryFormat(Guid value, Span<char> destination, out int charsWritten)
System.Private.Xml.Linq (16)
System\Xml\Linq\XAttribute.cs (8)
649/// Cast the value of this <see cref="XAttribute"/> to a <see cref="Guid"/>. 652/// The <see cref="XAttribute"/> to cast to <see cref="Guid"/>. 655/// The content of this <see cref="XAttribute"/> as a <see cref="Guid"/>. 661public static explicit operator Guid(XAttribute attribute) 669/// Cast the value of this <see cref="XAttribute"/> to a <see cref="Guid"/>?. 672/// The <see cref="XAttribute"/> to cast to <see cref="Guid"/>?. Can be null. 675/// The content of this <see cref="XAttribute"/> as a <see cref="Guid"/>?. 679public static explicit operator Guid?(XAttribute? attribute)
System\Xml\Linq\XElement.cs (8)
1821/// Cast the value of this <see cref="XElement"/> to a <see cref="Guid"/>. 1824/// The <see cref="XElement"/> to cast to <see cref="Guid"/>. 1827/// The content of this <see cref="XElement"/> as a <see cref="Guid"/>. 1836public static explicit operator Guid(XElement element) 1844/// Cast the value of this <see cref="XElement"/> to an <see cref="Guid"/>?. 1847/// The <see cref="XElement"/> to cast to <see cref="Guid"/>?. 1850/// The content of this <see cref="XElement"/> as a <see cref="Guid"/>?. 1857public static explicit operator Guid?(XElement? element)
System.Reflection.Context (2)
System\Reflection\Context\Delegation\DelegatingModule.cs (1)
46public override Guid ModuleVersionId
System\Reflection\Context\Delegation\DelegatingType.cs (1)
72public override Guid GUID
System.Reflection.Emit (16)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (1)
306public override Guid GUID => throw new NotSupportedException(SR.NotSupported_NonReflectedType);
System\Reflection\Emit\EnumBuilderImpl.cs (1)
44public override Guid GUID => _typeBuilder.GUID;
System\Reflection\Emit\GenericTypeParameterBuilderImpl.cs (1)
90public override Guid GUID => throw new NotSupportedException();
System\Reflection\Emit\ModuleBuilderImpl.cs (6)
26private readonly Guid _moduleVersionId; 52_moduleVersionId = Guid.NewGuid(); 602private DocumentHandle AddDocument(string url, Guid language, Guid hashAlgorithm, byte[]? hash) => 1071public override Guid ModuleVersionId => _moduleVersionId; 1387protected override ISymbolDocumentWriter DefineDocumentCore(string url, Guid language = default)
System\Reflection\Emit\Pdb\SymbolDocumentWriter.cs (6)
10internal readonly Guid _language; 12private Guid _hashAlgorithm; 17internal Guid Language => _language; 18internal Guid HashAlgorithm => _hashAlgorithm; 22public SymbolDocumentWriter(string url, Guid language) 28public void SetCheckSum(Guid algorithmId, byte[] checkSum)
System\Reflection\Emit\TypeBuilderImpl.cs (1)
637public override Guid GUID => throw new NotSupportedException();
System.Reflection.Metadata (26)
System\Reflection\Internal\Utilities\BlobUtilities.cs (1)
77public static void WriteGuid(this byte[] buffer, int start, Guid value)
System\Reflection\Internal\Utilities\MemoryBlock.cs (3)
241internal Guid PeekGuid(int offset) 243CheckBounds(offset, sizeof(Guid)); 248return Unsafe.ReadUnaligned<Guid>(ptr);
System\Reflection\Metadata\BlobBuilder.cs (1)
921public void WriteGuid(Guid value)
System\Reflection\Metadata\BlobContentId.cs (7)
15private readonly Guid _guid; 18public Guid Guid => _guid; 21public BlobContentId(Guid guid, uint stamp) 47private static unsafe void Initialize(ReadOnlySpan<byte> id, out Guid guid, out uint stamp) 62public bool IsDefault => Guid == default(Guid) && Stamp == 0; 109Guid guid = new Guid((int)a, (short)b, (short)c, d, e, f, g, h, i, j, k); 123return content => new BlobContentId(Guid.NewGuid(), timestamp);
System\Reflection\Metadata\BlobReader.cs (2)
312public Guid ReadGuid() 318return *(Guid*)ptr;
System\Reflection\Metadata\BlobWriter.cs (1)
337public void WriteGuid(Guid value)
System\Reflection\Metadata\Ecma335\MetadataBuilder.Heaps.cs (4)
50private readonly Dictionary<Guid, GuidHandle> _guids = new Dictionary<Guid, GuidHandle>(); 389public GuidHandle GetOrAddGuid(Guid guid) 391if (guid == Guid.Empty)
System\Reflection\Metadata\Internal\GuidHeap.cs (2)
17internal Guid GetGuid(GuidHandle handle) 21return default(Guid);
System\Reflection\Metadata\MetadataReader.cs (1)
1103public Guid GetGuid(GuidHandle handle)
System\Reflection\PortableExecutable\DebugDirectory\CodeViewDebugDirectoryData.cs (2)
13public Guid Guid { get; } 25internal CodeViewDebugDirectoryData(Guid guid, int age, string path)
System\Reflection\PortableExecutable\DebugDirectory\DebugDirectoryBuilder.cs (1)
142private static int WriteCodeViewData(BlobBuilder builder, string pdbPath, Guid pdbGuid, int age)
System\Reflection\PortableExecutable\PEReader.cs (1)
630Guid guid = reader.ReadGuid();
System.Reflection.MetadataLoadContext (15)
System\Reflection\TypeLoading\General\Ecma\MetadataExtensions.cs (1)
31public static Guid GetGuid(this GuidHandle handle, MetadataReader reader) => reader.GetGuid(handle);
System\Reflection\TypeLoading\Modules\Ecma\EcmaModule.cs (1)
44public sealed override Guid ModuleVersionId => ModuleDefinition.Mvid.GetGuid(Reader);
System\Reflection\TypeLoading\Modules\RoModule.cs (1)
43public abstract override Guid ModuleVersionId { get; }
System\Reflection\TypeLoading\Modules\RoResourceModule.cs (1)
33public sealed override Guid ModuleVersionId => throw new InvalidOperationException(SR.ResourceOnlyModule);
System\Reflection\TypeLoading\Types\RoConstructedGenericType.cs (1)
128public sealed override Guid GUID => _genericTypeDefinition.GUID;
System\Reflection\TypeLoading\Types\RoDefinitionType.cs (1)
127public sealed override Guid GUID
System\Reflection\TypeLoading\Types\RoFunctionPointerType.cs (2)
194public sealed override Guid GUID => Guid.Empty;
System\Reflection\TypeLoading\Types\RoGenericParameterType.cs (2)
62public sealed override Guid GUID => Guid.Empty;
System\Reflection\TypeLoading\Types\RoHasElementType.cs (2)
75public sealed override Guid GUID => Guid.Empty;
System\Reflection\TypeLoading\Types\RoModifiedType.cs (1)
184public override Guid GUID => _unmodifiedType.GUID;
System\Reflection\TypeLoading\Types\RoStubType.cs (1)
69public sealed override Guid GUID => throw null!;
System\Reflection\TypeLoading\Types\RoType.cs (1)
289public abstract override Guid GUID { get; }
System.Reflection.TypeExtensions (1)
System\Reflection\TypeExtensions.cs (1)
525public static Guid GetModuleVersionId(this Module module)
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
260[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Guid))]
System.Runtime.InteropServices (17)
System\Runtime\InteropServices\ComAwareEventInfo.cs (4)
35GetDataForComInvocation(_innerEventInfo, out Guid sourceIid, out int dispid); 53GetDataForComInvocation(_innerEventInfo, out Guid sourceIid, out int dispid); 101private static void GetDataForComInvocation(EventInfo eventInfo, out Guid sourceIid, out int dispid) 118Guid guid = sourceInterface.GUID;
System\Runtime\InteropServices\Marshalling\ComImportInteropInterfaceDetailsStrategy.cs (2)
173private sealed class ComImportDetails(Guid iid, Type implementation) : IIUnknownDerivedDetails 175public Guid Iid { get; } = iid;
System\Runtime\InteropServices\Marshalling\ComInterfaceMarshaller.cs (1)
24private static readonly Guid? TargetInterfaceIID = StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(T).TypeHandle)?.Iid;
System\Runtime\InteropServices\Marshalling\FreeThreadedStrategy.cs (1)
19unsafe int IIUnknownStrategy.QueryInterface(void* thisPtr, in Guid handle, out void* ppObj)
System\Runtime\InteropServices\Marshalling\IIUnknownDerivedDetails.cs (1)
20public Guid Iid { get; }
System\Runtime\InteropServices\Marshalling\IIUnknownInterfaceType.cs (1)
18static abstract Guid Iid { get; }
System\Runtime\InteropServices\Marshalling\IIUnknownStrategy.cs (2)
35/// <seealso cref="Marshal.QueryInterface(nint, in Guid, out nint)"/> 36public int QueryInterface(void* instancePtr, in Guid iid, out void* ppObj);
System\Runtime\InteropServices\Marshalling\IUnknownDerivedAttribute.cs (1)
24public Guid Iid => T.Iid;
System\Runtime\InteropServices\RuntimeEnvironment.cs (4)
32public static IntPtr GetRuntimeInterfaceAsIntPtr(Guid clsid, Guid riid) => throw new PlatformNotSupportedException(); 35public static object GetRuntimeInterfaceAsObject(Guid clsid, Guid riid) => throw new PlatformNotSupportedException();
System.Security.AccessControl (28)
artifacts\obj\System.Security.AccessControl\Debug\net10.0\System.Security.AccessControl.notsupported.cs (28)
249public void AddAccess(System.Security.AccessControl.AccessControlType accessType, System.Security.Principal.SecurityIdentifier sid, int accessMask, System.Security.AccessControl.InheritanceFlags inheritanceFlags, System.Security.AccessControl.PropagationFlags propagationFlags, System.Security.AccessControl.ObjectAceFlags objectFlags, System.Guid objectType, System.Guid inheritedObjectType) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl); } 252public bool RemoveAccess(System.Security.AccessControl.AccessControlType accessType, System.Security.Principal.SecurityIdentifier sid, int accessMask, System.Security.AccessControl.InheritanceFlags inheritanceFlags, System.Security.AccessControl.PropagationFlags propagationFlags, System.Security.AccessControl.ObjectAceFlags objectFlags, System.Guid objectType, System.Guid inheritedObjectType) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl); } 255public void RemoveAccessSpecific(System.Security.AccessControl.AccessControlType accessType, System.Security.Principal.SecurityIdentifier sid, int accessMask, System.Security.AccessControl.InheritanceFlags inheritanceFlags, System.Security.AccessControl.PropagationFlags propagationFlags, System.Security.AccessControl.ObjectAceFlags objectFlags, System.Guid objectType, System.Guid inheritedObjectType) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl); } 258public void SetAccess(System.Security.AccessControl.AccessControlType accessType, System.Security.Principal.SecurityIdentifier sid, int accessMask, System.Security.AccessControl.InheritanceFlags inheritanceFlags, System.Security.AccessControl.PropagationFlags propagationFlags, System.Security.AccessControl.ObjectAceFlags objectFlags, System.Guid objectType, System.Guid inheritedObjectType) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl); } 338protected ObjectAccessRule(System.Security.Principal.IdentityReference identity, int accessMask, bool isInherited, System.Security.AccessControl.InheritanceFlags inheritanceFlags, System.Security.AccessControl.PropagationFlags propagationFlags, System.Guid objectType, System.Guid inheritedObjectType, System.Security.AccessControl.AccessControlType type) : base (default(System.Security.Principal.IdentityReference), default(int), default(bool), default(System.Security.AccessControl.InheritanceFlags), default(System.Security.AccessControl.PropagationFlags), default(System.Security.AccessControl.AccessControlType)) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl); } 339public System.Guid InheritedObjectType { get { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl); } } 341public System.Guid ObjectType { get { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl); } } 345public ObjectAce(System.Security.AccessControl.AceFlags aceFlags, System.Security.AccessControl.AceQualifier qualifier, int accessMask, System.Security.Principal.SecurityIdentifier sid, System.Security.AccessControl.ObjectAceFlags flags, System.Guid type, System.Guid inheritedType, bool isCallback, byte[]? opaque) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl); } 347public System.Guid InheritedObjectAceType { get { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl); } set { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl); } } 349public System.Guid ObjectAceType { get { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl); } set { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl); } } 362protected ObjectAuditRule(System.Security.Principal.IdentityReference identity, int accessMask, bool isInherited, System.Security.AccessControl.InheritanceFlags inheritanceFlags, System.Security.AccessControl.PropagationFlags propagationFlags, System.Guid objectType, System.Guid inheritedObjectType, System.Security.AccessControl.AuditFlags auditFlags) : base (default(System.Security.Principal.IdentityReference), default(int), default(bool), default(System.Security.AccessControl.InheritanceFlags), default(System.Security.AccessControl.PropagationFlags), default(System.Security.AccessControl.AuditFlags)) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl); } 363public System.Guid InheritedObjectType { get { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl); } } 365public System.Guid ObjectType { get { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl); } } 522public void AddAudit(System.Security.AccessControl.AuditFlags auditFlags, System.Security.Principal.SecurityIdentifier sid, int accessMask, System.Security.AccessControl.InheritanceFlags inheritanceFlags, System.Security.AccessControl.PropagationFlags propagationFlags, System.Security.AccessControl.ObjectAceFlags objectFlags, System.Guid objectType, System.Guid inheritedObjectType) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl); } 525public bool RemoveAudit(System.Security.AccessControl.AuditFlags auditFlags, System.Security.Principal.SecurityIdentifier sid, int accessMask, System.Security.AccessControl.InheritanceFlags inheritanceFlags, System.Security.AccessControl.PropagationFlags propagationFlags, System.Security.AccessControl.ObjectAceFlags objectFlags, System.Guid objectType, System.Guid inheritedObjectType) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl); } 528public void RemoveAuditSpecific(System.Security.AccessControl.AuditFlags auditFlags, System.Security.Principal.SecurityIdentifier sid, int accessMask, System.Security.AccessControl.InheritanceFlags inheritanceFlags, System.Security.AccessControl.PropagationFlags propagationFlags, System.Security.AccessControl.ObjectAceFlags objectFlags, System.Guid objectType, System.Guid inheritedObjectType) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl); } 531public void SetAudit(System.Security.AccessControl.AuditFlags auditFlags, System.Security.Principal.SecurityIdentifier sid, int accessMask, System.Security.AccessControl.InheritanceFlags inheritanceFlags, System.Security.AccessControl.PropagationFlags propagationFlags, System.Security.AccessControl.ObjectAceFlags objectFlags, System.Guid objectType, System.Guid inheritedObjectType) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl); }
System.ServiceModel.Federation (1)
System\ServiceModel\Federation\WSTrustChannelSecurityTokenProvider.cs (1)
461RequestContext = string.IsNullOrEmpty(WSTrustTokenParameters.RequestContext) ? Guid.NewGuid().ToString() : WSTrustTokenParameters.RequestContext;
System.ServiceModel.NetFramingBase (1)
System\ServiceModel\Channels\TransportDuplexSessionChannel.cs (1)
365Guid relatedActivityId = EventTraceActivity.GetActivityIdFromThread();
System.ServiceModel.NetNamedPipe (1)
System\ServiceModel\Channels\PipeConnectionInitiator.cs (1)
342public Guid pipeGuid;
System.ServiceModel.Primitives.Tests (4)
ServiceModel\DuplexClientBaseTest.cs (4)
82public Task<Guid> OnPingCallback(Guid guid) 84return Task.FromResult<Guid>(guid); 87void IWcfDuplexServiceCallback.OnPingCallback(Guid guid)
System.ServiceModel.Syndication (1)
System\ServiceModel\Channels\UriGenerator.cs (1)
16_prefix = string.Concat("uuid:", Guid.NewGuid().ToString(), ";id=");
System.Text.Json (82)
System\Text\Json\Document\JsonDocument.cs (2)
728internal bool TryGetValue(int index, out Guid value) 754&& Utf8Parser.TryParse(segment, out Guid tmp, out _, 'D'))
System\Text\Json\Document\JsonElement.cs (8)
1122/// Attempts to represent the current JSON string as a <see cref="Guid"/>. 1129/// <see langword="true"/> if the string can be represented as a <see cref="Guid"/>, 1138public bool TryGetGuid(out Guid value) 1146/// Gets the value of the element as a <see cref="Guid"/>. 1151/// <returns>The value of the element as a <see cref="Guid"/>.</returns> 1156/// The value cannot be represented as a <see cref="Guid"/>. 1162public Guid GetGuid() 1164if (!TryGetGuid(out Guid value))
System\Text\Json\Nodes\JsonNode.Operators.cs (14)
109/// Defines an implicit conversion of a given <see cref="Guid"/> to a <see cref="JsonNode"/>. 111/// <param name="value">A <see cref="Guid"/> to implicitly convert.</param> 113public static implicit operator JsonNode(Guid value) => JsonValue.Create(value); 116/// Defines an implicit conversion of a given <see cref="Guid"/> to a <see cref="JsonNode"/>. 118/// <param name="value">A <see cref="Guid"/> to implicitly convert.</param> 120public static implicit operator JsonNode?(Guid? value) => JsonValue.Create(value); 349/// Defines an explicit conversion of a given <see cref="Guid"/> to a <see cref="JsonNode"/>. 351/// <param name="value">A <see cref="Guid"/> to explicitly convert.</param> 353public static explicit operator Guid(JsonNode value) => value.GetValue<Guid>(); 356/// Defines an explicit conversion of a given <see cref="Guid"/> to a <see cref="JsonNode"/>. 358/// <param name="value">A <see cref="Guid"/> to explicitly convert.</param> 360public static explicit operator Guid?(JsonNode? value) => value?.GetValue<Guid>();
System\Text\Json\Nodes\JsonValue.CreateOverloads.cs (4)
129public static JsonValue Create(Guid value, JsonNodeOptions? options = null) => new JsonValuePrimitive<Guid>(value, JsonMetadataServices.GuidConverter, options); 137public static JsonValue? Create(Guid? value, JsonNodeOptions? options = null) => value.HasValue ? new JsonValuePrimitive<Guid>(value.Value, JsonMetadataServices.GuidConverter, options) : null;
System\Text\Json\Nodes\JsonValueOfElement.cs (3)
164if (typeof(TypeToConvert) == typeof(Guid) || typeof(TypeToConvert) == typeof(Guid?)) 166success = Value.TryGetGuid(out Guid result);
System\Text\Json\Nodes\JsonValueOfT.cs (1)
96type == typeof(Guid) || type == typeof(Uri) || type == typeof(Version))
System\Text\Json\Reader\JsonReaderHelper.cs (2)
126public static bool TryGetEscapedGuid(ReadOnlySpan<byte> source, out Guid value) 138&& Utf8Parser.TryParse(utf8Unescaped, out Guid tmp, out _, 'D'))
System\Text\Json\Reader\Utf8JsonReader.TryGet.cs (12)
785/// Parses the current JSON token value from the source as a <see cref="Guid"/>. 786/// Returns the value if the entire UTF-8 encoded token value can be successfully parsed to a <see cref="Guid"/> 797public Guid GetGuid() 799if (!TryGetGuid(out Guid value)) 807internal Guid GetGuidNoValidation() 809if (!TryGetGuidCore(out Guid value)) 1355/// Parses the current JSON token value from the source as a <see cref="Guid"/>. 1357/// parsed to a <see cref="Guid"/> value. Only supports <see cref="Guid"/> values with hyphens 1365public bool TryGetGuid(out Guid value) 1375internal bool TryGetGuidCore(out Guid value) 1411&& Utf8Parser.TryParse(span, out Guid tmp, out _, 'D'))
System\Text\Json\Serialization\Converters\Value\GuidConverter.cs (5)
10internal sealed class GuidConverter : JsonPrimitiveConverter<Guid> 12public override Guid Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) 17public override void Write(Utf8JsonWriter writer, Guid value, JsonSerializerOptions options) 22internal override Guid ReadAsPropertyNameCore(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) 28internal override void WriteAsPropertyNameCore(Utf8JsonWriter writer, Guid value, JsonSerializerOptions options, bool isWritingExtensionDataProperty)
System\Text\Json\Serialization\Metadata\JsonMetadataServices.Converters.cs (3)
84/// Returns a <see cref="JsonConverter{T}"/> instance that converts <see cref="Guid"/> values. 87public static JsonConverter<Guid> GuidConverter => s_guidConverter ??= new GuidConverter(); 88private static JsonConverter<Guid>? s_guidConverter;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Guid.cs (23)
13/// Writes the pre-encoded property name and <see cref="Guid"/> value (as a JSON string) as part of a name/value pair of a JSON object. 21/// Writes the <see cref="Guid"/> using the default <see cref="StandardFormat"/> (that is, 'D'), as the form: nnnnnnnn-nnnn-nnnn-nnnn-nnnnnnnnnnnn. 23public void WriteString(JsonEncodedText propertyName, Guid value) 35/// Writes the property name and <see cref="Guid"/> value (as a JSON string) as part of a name/value pair of a JSON object. 49/// Writes the <see cref="Guid"/> using the default <see cref="StandardFormat"/> (that is, 'D'), as the form: nnnnnnnn-nnnn-nnnn-nnnn-nnnnnnnnnnnn. 52public void WriteString(string propertyName, Guid value) 59/// Writes the property name and <see cref="Guid"/> value (as a JSON string) as part of a name/value pair of a JSON object. 70/// Writes the <see cref="Guid"/> using the default <see cref="StandardFormat"/> (that is, 'D'), as the form: nnnnnnnn-nnnn-nnnn-nnnn-nnnnnnnnnnnn. 73public void WriteString(ReadOnlySpan<char> propertyName, Guid value) 84/// Writes the property name and <see cref="Guid"/> value (as a JSON string) as part of a name/value pair of a JSON object. 95/// Writes the <see cref="Guid"/> using the default <see cref="StandardFormat"/> (that is, 'D'), as the form: nnnnnnnn-nnnn-nnnn-nnnn-nnnnnnnnnnnn. 98public void WriteString(ReadOnlySpan<byte> utf8PropertyName, Guid value) 108private void WriteStringEscape(ReadOnlySpan<char> propertyName, Guid value) 124private void WriteStringEscape(ReadOnlySpan<byte> utf8PropertyName, Guid value) 140private void WriteStringEscapeProperty(ReadOnlySpan<char> propertyName, Guid value, int firstEscapeIndexProp) 163private void WriteStringEscapeProperty(ReadOnlySpan<byte> utf8PropertyName, Guid value, int firstEscapeIndexProp) 186private void WriteStringByOptions(ReadOnlySpan<char> propertyName, Guid value) 199private void WriteStringByOptions(ReadOnlySpan<byte> utf8PropertyName, Guid value) 212private void WriteStringMinimized(ReadOnlySpan<char> escapedPropertyName, Guid value) 247private void WriteStringMinimized(ReadOnlySpan<byte> escapedPropertyName, Guid value) 282private void WriteStringIndented(ReadOnlySpan<char> escapedPropertyName, Guid value) 332private void WriteStringIndented(ReadOnlySpan<byte> escapedPropertyName, Guid value) 382internal void WritePropertyName(Guid value)
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Guid.cs (5)
13/// Writes the <see cref="Guid"/> value (as a JSON string) as an element of a JSON array. 20/// Writes the <see cref="Guid"/> using the default <see cref="StandardFormat"/> (that is, 'D'), as the form: nnnnnnnn-nnnn-nnnn-nnnn-nnnnnnnnnnnn. 22public void WriteStringValue(Guid value) 42private void WriteStringValueMinimized(Guid value) 67private void WriteStringValueIndented(Guid value)
System.Text.Json.SourceGeneration (1)
Helpers\KnownTypeSymbols.cs (1)
169public INamedTypeSymbol? GuidType => GetOrResolveType(typeof(Guid), ref _GuidType);
System.Transactions.Local (140)
System\Transactions\Enlistment.cs (10)
68internal Guid DistributedTxId 72Guid returnValue = Guid.Empty; 202Guid.Empty, 209Guid.Empty, 245internal virtual Guid ResourceManagerIdentifier 305internal Guid _resourceManagerIdentifier; 309Guid resourceManagerIdentifier, 324internal override Guid ResourceManagerIdentifier => _resourceManagerIdentifier; 413Guid resourceManagerIdentifier,
System\Transactions\EnlistmentState.cs (15)
24throw TransactionException.CreateEnlistmentStateException(null, enlistment == null ? Guid.Empty : enlistment.DistributedTxId); 29throw TransactionException.CreateEnlistmentStateException(null, enlistment == null ? Guid.Empty : enlistment.DistributedTxId); 34throw TransactionException.CreateEnlistmentStateException(null, enlistment == null ? Guid.Empty : enlistment.DistributedTxId); 39throw TransactionException.CreateEnlistmentStateException(null, enlistment == null ? Guid.Empty : enlistment.DistributedTxId); 44throw TransactionException.CreateEnlistmentStateException(null, enlistment == null ? Guid.Empty : enlistment.DistributedTxId); 49throw TransactionException.CreateEnlistmentStateException(null, enlistment == null ? Guid.Empty : enlistment.DistributedTxId); 54throw TransactionException.CreateEnlistmentStateException(null, enlistment == null ? Guid.Empty : enlistment.DistributedTxId); 60throw TransactionException.CreateEnlistmentStateException(null, enlistment == null ? Guid.Empty : enlistment.DistributedTxId); 66throw TransactionException.CreateEnlistmentStateException(null, enlistment == null ? Guid.Empty : enlistment.DistributedTxId); 72throw TransactionException.CreateEnlistmentStateException(null, enlistment == null ? Guid.Empty : enlistment.DistributedTxId); 78throw TransactionException.CreateEnlistmentStateException(null, enlistment == null ? Guid.Empty : enlistment.DistributedTxId); 84throw TransactionException.CreateEnlistmentStateException(null, enlistment == null ? Guid.Empty : enlistment.DistributedTxId); 90throw TransactionException.CreateEnlistmentStateException(null, enlistment == null ? Guid.Empty : enlistment.DistributedTxId); 96throw TransactionException.CreateEnlistmentStateException(null, enlistment == null ? Guid.Empty : enlistment.DistributedTxId); 102throw TransactionException.CreateEnlistmentStateException(null, enlistment == null ? Guid.Empty : enlistment.DistributedTxId);
System\Transactions\EnlistmentTraceIdentifier.cs (3)
18Guid resourceManagerIdentifier, 27private readonly Guid _resourceManagerIdentifier; 33public Guid ResourceManagerIdentifier => _resourceManagerIdentifier;
System\Transactions\InternalTransaction.cs (10)
37internal Guid _promoterType = Guid.Empty; 47internal Guid _distributedTransactionIdentifierNonMSDTC = Guid.Empty; 168internal Guid DistributedTxId => State!.get_Identifier(this); 172LazyInitializer.EnsureInitialized(ref s_instanceIdentifier, ref s_classSyncObject, () => $"{Guid.NewGuid()}:"); 214if ((_promoterType != Guid.Empty) && (_promoterType != TransactionInterop.PromoterTypeDtc)) 225if ((_promoterType != Guid.Empty) && (_promoterType != TransactionInterop.PromoterTypeDtc)) 402private readonly Guid _identifier; 406internal FinalizedObject(InternalTransaction internalTransaction, Guid identifier)
System\Transactions\NonWindowsUnsupported.cs (5)
23Guid resourceManagerIdentifier, 31internal void ResourceManagerRecoveryComplete(Guid resourceManagerIdentifier) 40internal static OletxTransaction GetTransactionFromExportCookie(byte[] cookie, Guid txId) 73internal Guid Identifier { get; set; } 85Guid resourceManagerIdentifier,
System\Transactions\Transaction.cs (14)
227internal Guid DistributedTxId 231Guid returnValue = Guid.Empty; 409public Guid PromoterType 471Guid resourceManagerIdentifier, 483if (resourceManagerIdentifier == Guid.Empty) 519Guid resourceManagerIdentifier, 531if (resourceManagerIdentifier == Guid.Empty) 893public bool EnlistPromotableSinglePhase(IPromotableSinglePhaseNotification promotableSinglePhaseNotification, Guid promoterType) 905if (promoterType == Guid.Empty) 931public Enlistment PromoteAndEnlistDurable(Guid resourceManagerIdentifier, 944if (resourceManagerIdentifier == Guid.Empty) 978Guid distributedTransactionIdentifier) 990if (distributedTransactionIdentifier == Guid.Empty)
System\Transactions\TransactionException.cs (11)
17internal static bool IncludeDistributedTxId(Guid distributedTxId) 19return (distributedTxId != Guid.Empty && AppSettings.IncludeDistributedTxIdInExceptionMessage); 38internal static Exception CreateEnlistmentStateException(Exception? innerException, Guid distributedTxId) 98internal static TransactionException Create(string? message, Guid distributedTxId) 107internal static TransactionException Create(string? message, Exception? innerException, Guid distributedTxId) 116internal static TransactionException CreateTransactionStateException(Exception? innerException, Guid distributedTxId) 121internal static Exception CreateTransactionCompletedException(Guid distributedTxId) 136internal static Exception CreateInvalidOperationException(TraceSourceType traceSource, string? message, Exception? innerException, Guid distributedTxId) 154internal static new TransactionAbortedException Create(string? message, Exception? innerException, Guid distributedTxId) 205internal TransactionAbortedException(Exception? innerException, Guid distributedTxId) : 231internal static TransactionInDoubtException Create(TraceSourceType traceSource, string? message, Exception? innerException, Guid distributedTxId)
System\Transactions\TransactionInformation.cs (1)
42public Guid DistributedIdentifier
System\Transactions\TransactionInteropNonWindows.cs (3)
43public static readonly Guid PromoterTypeDtc = new Guid("14229753-FFE1-428D-82B7-DF73045CB8DA"); 93var txId = new Guid(cookie.AsSpan(16, 16)); 159var txId = new Guid(propagationToken.AsSpan(8, 16));
System\Transactions\TransactionManager.cs (6)
138Guid resourceManagerIdentifier, 142if (resourceManagerIdentifier == Guid.Empty) 238public static void RecoveryComplete(Guid resourceManagerIdentifier) 240if (resourceManagerIdentifier == Guid.Empty) 548internal static Transaction? FindPromotedTransaction(Guid transactionIdentifier) 570internal static Transaction FindOrCreatePromotedTransaction(Guid transactionIdentifier, OletxTransaction dtx)
System\Transactions\TransactionScope.cs (3)
601current == null ? Guid.Empty : current.DistributedTxId); 628current == null ? Guid.Empty : current.DistributedTxId); 702current == null ? Guid.Empty : current.DistributedTxId);
System\Transactions\TransactionsEtwProvider.cs (6)
989internal void TransactionManagerReenlist(Guid resourceManagerID) 1009internal void TransactionManagerRecoveryComplete(Guid resourceManagerID) 1412Guid guid = Guid.Empty; 1418Guid.TryParse(str.AsSpan(0, 36), out guid); 1425Guid.TryParse(str.AsSpan(0, 32), out guid);
System\Transactions\TransactionState.cs (52)
197Guid resourceManagerIdentifier, 208Guid resourceManagerIdentifier, 250internal virtual Guid get_Identifier(InternalTransaction tx) 252return Guid.Empty; 272Guid promoterType 455Guid resourceManagerIdentifier, 466Guid distributedTransactionIdentifier) 541Guid resourceManagerIdentifier, 557Guid resourceManagerIdentifier, 760Guid promoterType 788Debug.Assert(tx._promoterType != Guid.Empty, "InternalTransaction.PromoterType was not set in PSPEInitialize"); 889Guid promoterType 950Guid resourceManagerIdentifier, 968Guid resourceManagerIdentifier, 1048Guid promoterType 1077Debug.Assert(tx._promoterType != Guid.Empty, "InternalTransaction.PromoterType was not set in Phase0PSPEInitialize"); 1721Guid resourceManagerIdentifier, 1762Guid resourceManagerIdentifier, 1821internal override Guid get_Identifier(InternalTransaction? tx) 1829return Guid.Empty; 1863Guid promoterType 2145Debug.Assert((tx._promoterType == Guid.Empty) || (tx._promoterType == TransactionInterop.PromoterTypeDtc), "Promoted to MSTC but PromoterType is not TransactionInterop.PromoterTypeDtc"); 2668throw TransactionException.Create(SR.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId); 2674throw TransactionException.Create(SR.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId); 2678internal override Enlistment EnlistDurable(InternalTransaction tx, Guid resourceManagerIdentifier, IEnlistmentNotification enlistmentNotification, EnlistmentOptions enlistmentOptions, Transaction atomicTransaction) 2680throw TransactionException.Create(SR.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId); 2684internal override Enlistment EnlistDurable(InternalTransaction tx, Guid resourceManagerIdentifier, ISinglePhaseNotification enlistmentNotification, EnlistmentOptions enlistmentOptions, Transaction atomicTransaction) 2686throw TransactionException.Create(SR.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId); 2844tx == null ? Guid.Empty : tx.DistributedTxId 2892internal override Guid get_Identifier(InternalTransaction tx) 3457Guid resourceManagerIdentifier, 3469Guid resourceManagerIdentifier, 3482Guid promoterType 3501internal override Guid get_Identifier(InternalTransaction tx) 3805throw TransactionException.Create(SR.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId); 3815throw TransactionException.Create(SR.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId); 3821Guid promoterType 3824throw TransactionException.Create(SR.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId); 3829throw TransactionException.Create(SR.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId); 3834throw TransactionException.Create(SR.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId); 3904throw TransactionException.Create(SR.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId); 3914throw TransactionException.Create(SR.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId); 3920Guid promoterType 3923throw TransactionException.Create(SR.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId); 3928throw TransactionException.Create(SR.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId); 3933throw TransactionException.Create(SR.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId); 3955tx == null ? Guid.Empty : tx.DistributedTxId 3996internal override Guid get_Identifier(InternalTransaction tx) 4349Guid promoterType) 4376Guid promoterType) 4519Guid resourceManagerIdentifier, 4567Guid distributedTransactionIdentifier)
System\Transactions\VolatileEnlistmentState.cs (1)
72SR.VolEnlistNoRecoveryInfo, null, enlistment == null ? Guid.Empty : enlistment.DistributedTxId);
System.Windows.Forms (93)
System\Windows\Forms\Accessibility\AccessibleObject.cs (5)
880HRESULT ComIServiceProvider.Interface.QueryService(Guid* service, Guid* riid, void** ppvObject) 894Guid IID_IAccessibleEx = *IID.Get<IAccessibleEx>(); 3315HRESULT IDispatch.Interface.GetIDsOfNames(Guid* riid, PWSTR* rgszNames, uint cNames, uint lcid, int* rgDispId) 3320Guid* riid,
System\Windows\Forms\ActiveX\AxHost.AxContainer.ExtenderProxy.cs (2)
68HRESULT IGetOleObject.Interface.GetOleObject(Guid* riid, void** ppvObj) 91HRESULT IGetVBAObject.Interface.GetObject(Guid* riid, void** ppvObj, uint dwReserved)
System\Windows\Forms\ActiveX\AxHost.AxPropertyDescriptor.cs (9)
44Guid g = GetPropertyPage(_dispid.Value); 45if (!Guid.Empty.Equals(g)) 130private unsafe Guid GetPropertyPage(int dispid) 137return Guid.Empty; 140Guid rval = Guid.Empty; 154return Guid.Empty; 352Guid pageGuid = GetPropertyPage(dispid); 354if (pageGuid != Guid.Empty)
System\Windows\Forms\ActiveX\AxHost.AxPropertyTypeEditor.cs (2)
15private readonly Guid _guid; 17public AxPropertyTypeEditor(AxPropertyDescriptor pd, Guid guid)
System\Windows\Forms\ActiveX\AxHost.ConnectionPointCookie.cs (1)
48Guid riid = eventInterface.GUID;
System\Windows\Forms\ActiveX\AxHost.cs (12)
57private static readonly Guid s_ivbformat_Guid = IID.GetRef<IVBFormat>(); 58private static readonly Guid s_ioleobject_Guid = IID.GetRef<IOleObject>(); 59private static readonly Guid s_dataSource_Guid = new("{7C0FFAB3-CD84-11D0-949A-00A0C91110ED}"); 60private static readonly Guid s_windowsMediaPlayer_Clsid = new("{22d6f312-b0f6-11d0-94ab-0080c74c7e95}"); 61private static readonly Guid s_comctlImageCombo_Clsid = new("{a98a24c0-b06f-3684-8c12-c52ae341e0bc}"); 62private static readonly Guid s_maskEdit_Clsid = new("{c932ba85-4374-101b-a56c-00aa003668dc}"); 112private readonly Guid _clsid; 2213private unsafe string? GetLicenseKey(Guid clsid) 2257private void CreateWithoutLicense(Guid clsid) 2271private void CreateWithLicense(string? license, Guid clsid) 2327protected virtual object? CreateInstanceCore(Guid clsid) 2957private unsafe void ShowPropertyPageForDispid(int dispid, Guid guid)
System\Windows\Forms\ActiveX\AxHost.OleInterfaces.cs (1)
68HRESULT IGetVBAObject.Interface.GetObject(Guid* riid, void** ppvObj, uint dwReserved)
System\Windows\Forms\ActiveX\Control_ActiveXControlInterfaces.cs (9)
239/// <inheritdoc cref="IOleObject.GetUserClassID(Guid*)"/> 240HRESULT IOleObject.Interface.GetUserClassID(Guid* pClsid) 354unsafe HRESULT IPersist.Interface.GetClassID(Guid* pClassID) 368/// <inheritdoc cref="IPersist.GetClassID(Guid*)"/> 369HRESULT IPersistPropertyBag.Interface.GetClassID(Guid* pClassID) 394/// <inheritdoc cref="IPersist.GetClassID(Guid*)"/> 395HRESULT IPersistStorage.Interface.GetClassID(Guid* pClassID) 440/// <inheritdoc cref="IPersist.GetClassID(Guid*)"/> 441HRESULT IPersistStreamInit.Interface.GetClassID(Guid* pClassID)
System\Windows\Forms\Application.ComponentManager.cs (3)
40Guid* guidService, 41Guid* iid, 329Guid* riid,
System\Windows\Forms\Application.ComponentThreadContext.cs (2)
111Guid sid = new(MsoComponentIds.SID_SMsoComponentManager); 112Guid iid = new(MsoComponentIds.IID_IMsoComponentManager);
System\Windows\Forms\ComponentModel\COM2Interop\COM2ComponentEditor.cs (6)
20Guid guid = Guid.Empty; 22if (hr.Succeeded && !guid.Equals(Guid.Empty)) 58Guid guid = Guid.Empty; 60if (hr.Succeeded & !guid.Equals(Guid.Empty))
System\Windows\Forms\ComponentModel\COM2Interop\COM2IPerPropertyBrowsingHandler.cs (7)
31private static Guid GetPropertyPageGuid(IPerPropertyBrowsing* propertyBrowsing, int dispid) 34Guid guid = Guid.Empty; 36return hr.Succeeded ? guid : Guid.Empty; 66bool validPropPage = !Guid.Empty.Equals(GetPropertyPageGuid(propertyBrowsing, sender.DISPID)); 145Guid guid = GetPropertyPageGuid(propertyBrowsing, sender.DISPID); 147if (!Guid.Empty.Equals(guid))
System\Windows\Forms\ComponentModel\COM2Interop\COM2IProvidePropertyBuilderHandler.cs (1)
34builderGuid = guid.ToString() ?? Guid.Empty.ToString();
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (2)
72private static Guid GUID_COLOR { get; } = new("{66504301-BE0F-101A-8BBB-00AA00300CAB}"); 108else if (typeData is Guid guid)
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyPageUITypeConverter.cs (3)
15private readonly Guid _guid; 19Guid guid, 64public void ShowPropertyPage(string title, object component, int dispid, Guid pageGuid, nint parentHandle)
System\Windows\Forms\ComponentModel\COM2Interop\COM2TypeInfoProcessor.cs (14)
54private static Dictionary<Guid, CachedProperties>? s_processedLibraries; 175Guid guid = Guid.Empty; 227Guid typeGuid = GetGuidForTypeInfo(typeInfo, versions); 232bool wasProcessed = typeGuid != Guid.Empty && s_processedLibraries.ContainsKey(typeGuid); 264if (typeGuid != Guid.Empty) 283private static unsafe Guid GetGuidForTypeInfo(ITypeInfo* typeInfo, uint[]? versions) 313private static unsafe Type? GetValueTypeFromTypeDesc(ref TYPEDESC typeDesc, ITypeInfo* typeInfo, ref Guid typeGuid) 373Guid guid = pTypeAttr->guid; 376if (!Guid.Empty.Equals(guid)) 528Guid typeGuid = Guid.Empty; 548if (typeGuid != Guid.Empty) 896VT_CLSID => typeof(Guid),
System\Windows\Forms\ComponentModel\COM2Interop\ComNativeDescriptor.cs (2)
128Guid guid = Guid.Empty;
System\Windows\Forms\ComponentModel\COM2Interop\ICOM2PropertyPageDisplayService.cs (1)
29void ShowPropertyPage(string title, object component, int dispid, Guid pageGuid, IntPtr parentHandle);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridCommands.cs (2)
19protected static readonly Guid wfcMenuGroup = new("{a72bd644-1979-4cbc-a620-ea4112198a66}"); 24protected static readonly Guid wfcMenuCommand = new("{5a51cf82-7619-4a5d-b054-47f438425aa7}");
System\Windows\Forms\Controls\RichTextBox\RichTextBox.OleCallback.cs (1)
63public HRESULT QueryInsertObject(Guid* lpclsid, IStorage* lpstg, int cp) => HRESULT.S_OK;
System\Windows\Forms\Controls\WebBrowser\WebBrowser.WebBrowserSite.cs (1)
152unsafe HRESULT IDocHostUIHandler.TranslateAccelerator(MSG* lpMsg, Guid* pguidCmdGroup, uint nCmdID)
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
42private readonly Guid _clsid;
System\Windows\Forms\Controls\WebBrowser\WebBrowserHelper.cs (3)
39internal static Guid s_windowsMediaPlayer_Clsid = new("{22d6f312-b0f6-11d0-94ab-0080c74c7e95}"); 40internal static Guid s_comctlImageCombo_Clsid = new("{a98a24c0-b06f-3684-8c12-c52ae341e0bc}"); 41internal static Guid s_maskEdit_Clsid = new("{c932ba85-4374-101b-a56c-00aa003668dc}");
System\Windows\Forms\Design\IUIService.cs (1)
80bool ShowToolWindow(Guid toolWindow);
System\Windows\Forms\Dialogs\CommonDialogs\FileDialog.cs (1)
109public Guid? ClientGuid { get; set; }
System\Windows\Forms\Dialogs\CommonDialogs\FolderBrowserDialog.cs (1)
154public Guid? ClientGuid { get; set; }
System.Windows.Forms.Design (17)
System\ComponentModel\Design\MenuCommandService.cs (4)
19private readonly Dictionary<Guid, List<MenuCommand>> _commandGroups; 159foreach (KeyValuePair<Guid, List<MenuCommand>> group in _commandGroups) 324protected MenuCommand? FindCommand(Guid guid, int id) 381protected ICollection? GetCommandList(Guid guid)
System\ComponentModel\Design\MultilineStringEditor.OleCallback.cs (3)
61public unsafe HRESULT QueryInsertObject(Guid* lpclsid, IStorage* lpstg, int cp) 63HRESULT hr = PInvoke.ReadClassStg(lpstg, out Guid realClsid); 70if (realClsid == Guid.Empty)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.cs (2)
303Guid guid = Guid.NewGuid();
System\Windows\Forms\Design\Behavior\DesignerActionKeyboardBehavior.cs (1)
13private static readonly Guid s_vSStandardCommandSet97 = new("{5efc7975-14bc-11cf-9b2b-00aa00573819}");
System\Windows\Forms\Design\DocumentDesigner.AxToolboxItem.cs (2)
286Guid tlbGuid = new((string)o); 287Debug.Assert(!tlbGuid.Equals(Guid.Empty), $"No valid Guid found for: {controlKey}");
System\Windows\Forms\Design\DocumentDesigner.cs (1)
53private static readonly Guid s_htmlDesignTime = new("73CEF3DD-AE85-11CF-A406-00AA00C00940");
System\Windows\Forms\Design\MenuCommands.cs (4)
64private static readonly Guid s_vsStandardCommandSet97 = new("{5efc7975-14bc-11cf-9b2b-00aa00573819}"); 71private static readonly Guid s_wfMenuGroup = new("{74D21312-2AEE-11d1-8BFB-00A0C90F26F7}"); 76private static readonly Guid s_wfCommandSet = new("{74D21313-2AEE-11d1-8BFB-00A0C90F26F7}"); 81private static readonly Guid s_guidVSStd2K = new("{1496A755-94DE-11D0-8C3F-00C04FC2AAE2}");
System.Windows.Forms.Design.Tests (8)
System\Windows\Forms\Design\ControlCommandSetTests.cs (1)
83CommandID commandID = new(Guid.NewGuid(), 0);
System\Windows\Forms\Design\StandardCommandToolStripMenuItemTests.cs (1)
22_commandID = new(Guid.NewGuid(), 1);
System\Windows\Forms\Design\TabOrderTests.cs (6)
174CommandID commandID = new(Guid.NewGuid(), 1); 192CommandID commandID = new(Guid.NewGuid(), 1); 197new MenuCommand((sender, e) => { }, new CommandID(Guid.NewGuid(), 2)) 210CommandID commandID = new(Guid.NewGuid(), 1); 215new MenuCommand((sender, e) => { }, new CommandID(Guid.NewGuid(), 2)) { Enabled = true } 233new MenuCommand((sender, e) => { }, new CommandID(Guid.NewGuid(), 2)) { Enabled = true }
System.Windows.Forms.Interop.Tests (2)
PropertyGridTests.cs (2)
126Guid clsidRawErrorInfoUsageTest = new("0ED8EE0D-22E3-49EA-850C-E69B20D1F296"); 137Guid clsidStandardErrorInfoUsageTest = new("EA1FCB3A-277C-4C79-AB85-E2ED3E858201");
System.Windows.Forms.Primitives (73)
Interop\Mshtml\Interop.IDocHostUIHandler.cs (1)
65Guid* pguidCmdGroup,
Microsoft\Office\IMsoComponent.cs (7)
32internal delegate* unmanaged[Stdcall]<IMsoComponent*, Guid*, void**, HRESULT> QueryInterface_1; 103internal static Guid Guid { get; } = new(0x000C0600, 0x0000, 0x0000, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46); 105static ref readonly Guid IComIID.Guid 118return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data)); 124/// <inheritdoc cref="IUnknown.QueryInterface(Guid*, void**)"/> 125public HRESULT QueryInterface(Guid* riid, void** ppvObject) 128return ((delegate* unmanaged[Stdcall]<IMsoComponent*, Guid*, void**, HRESULT>)_lpVtbl[0])(pThis, riid, ppvObject);
Microsoft\Office\IMsoComponentManager.cs (18)
15internal static Guid Guid { get; } = new(0x000C0601, 0x0000, 0x0000, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46); 17static ref readonly Guid IComIID.Guid 30return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data)); 36/// <inheritdoc cref="IUnknown.QueryInterface(Guid*, void**)"/> 37public HRESULT QueryInterface(Guid* riid, void** ppvObject) 40return ((delegate* unmanaged[Stdcall]<IMsoComponentManager*, Guid*, void**, HRESULT>)_lpVtbl[0])(pThis, riid, ppvObject); 57/// <inheritdoc cref="Interface.QueryService(Guid*, Guid*, void**)"/> 58public HRESULT QueryService(Guid* guidService, Guid* iid, void** ppvObj) 61return ((delegate* unmanaged[Stdcall]<IMsoComponentManager*, Guid*, Guid*, void**, HRESULT>)_lpVtbl[3]) 163/// <inheritdoc cref="Interface.FCreateSubComponentManager(IUnknown*, IUnknown*, Guid*, void**)"/> 164public BOOL FCreateSubComponentManager(IUnknown* punkOuter, IUnknown* punkServProv, Guid* riid, void** ppvObj) 167return ((delegate* unmanaged[Stdcall]<IMsoComponentManager*, IUnknown*, IUnknown*, Guid*, void**, BOOL>)_lpVtbl[15]) 230Guid* guidService, 231Guid* iid, 496Guid* riid,
Microsoft\Office\IMsoComponentManager.NativeAdapter.cs (3)
22HRESULT Interface.QueryService(Guid* guidService, Guid* iid, void** ppvObj) 105BOOL Interface.FCreateSubComponentManager(IUnknown* punkOuter, IUnknown* punkServProv, Guid* riid, void** ppvObj)
Microsoft\VisualStudio\Shell\ICategorizeProperties.cs (6)
13internal static Guid Guid { get; } = new(0x4D07FC10, 0xF931, 0x11CE, 0xB0, 0x01, 0x00, 0xAA, 0x00, 0x68, 0x84, 0xE5); 15static ref readonly Guid IComIID.Guid 28return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data)); 34/// <inheritdoc cref="IUnknown.QueryInterface(Guid*, void**)"/> 35public HRESULT QueryInterface(Guid* riid, void** ppvObject) 38return ((delegate* unmanaged[Stdcall]<ICategorizeProperties*, Guid*, void**, HRESULT>)_lpVtbl[0])(pThis, riid, ppvObject);
Microsoft\VisualStudio\Shell\IProvidePropertyBuilder.cs (6)
13internal static Guid Guid { get; } = new(0x33C0C1D8, 0x33CF, 0x11d3, 0xBF, 0xF2, 0x00, 0xC0, 0x4F, 0x99, 0x02, 0x35); 15static ref readonly Guid IComIID.Guid 28return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data)); 34/// <inheritdoc cref="IUnknown.QueryInterface(Guid*, void**)"/> 35public HRESULT QueryInterface(Guid* riid, void** ppvObject) 38return ((delegate* unmanaged[Stdcall]<IProvidePropertyBuilder*, Guid*, void**, HRESULT>)_lpVtbl[0])(pThis, riid, ppvObject);
Microsoft\VisualStudio\Shell\IVSMDPerPropertyBrowsing.cs (6)
14internal static Guid Guid { get; } = new(0x7494683C, 0x37A0, 0x11D2, 0xA2, 0x73, 0x00, 0xC0, 0x4F, 0x8E, 0xF4, 0xFF); 16static ref readonly Guid IComIID.Guid 29return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data)); 35/// <inheritdoc cref="IUnknown.QueryInterface(Guid*, void**)"/> 36public HRESULT QueryInterface(Guid* riid, void** ppvObject) 39return ((delegate* unmanaged[Stdcall]<IVSMDPerPropertyBrowsing*, Guid*, void**, HRESULT>)_lpVtbl[0])(pThis, riid, ppvObject);
Microsoft\VisualStudio\Shell\IVsPerPropertyBrowsing.cs (6)
13public static Guid Guid { get; } = new(0x0FF510A3, 0x5FA5, 0x49F1, 0x8C, 0xCC, 0x19, 0x0D, 0x71, 0x08, 0x3F, 0x3E); 15static ref readonly Guid IComIID.Guid 28return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data)); 34/// <inheritdoc cref="IUnknown.QueryInterface(Guid*, void**)"/> 35public HRESULT QueryInterface(Guid* riid, void** ppvObject) 38return ((delegate* unmanaged[Stdcall]<IVsPerPropertyBrowsing*, Guid*, void**, HRESULT>)_lpVtbl[0])(pThis, riid, ppvObject);
System\Windows\Forms\AccessibilityExtensions.cs (1)
11/// <inheritdoc cref="PInvoke.LresultFromObject(Guid*, WPARAM, IUnknown*)"/>
System\Windows\Forms\FileDialogCustomPlace.cs (6)
20private Guid _knownFolderGuid = Guid.Empty; 27public FileDialogCustomPlace(Guid knownFolderGuid) 39_knownFolderGuid = Guid.Empty; 43public Guid KnownFolderGuid 68fixed (Guid* reference = &_knownFolderGuid)
System\Windows\Forms\FileDialogCustomPlacesCollection.cs (1)
25public void Add(Guid knownFolderGuid) => Add(new FileDialogCustomPlace(knownFolderGuid));
System\Windows\Forms\IExtender.cs (7)
31/// <inheritdoc cref="IUnknown.QueryInterface(Guid*, void**)"/> 32public unsafe HRESULT QueryInterface(Guid* riid, void** ppvObject) 35return ((delegate* unmanaged[Stdcall]<IExtender*, Guid*, void**, HRESULT>)_vtable[0])(pThis, riid, ppvObject); 55internal delegate* unmanaged[Stdcall]<IExtender*, Guid*, void**, HRESULT> QueryInterface_1; 84public static Guid IID_Guid { get; } = new(0x39088D7E, 0xB71E, 0x11D1, 0x8F, 0x39, 0x00, 0xC0, 0x4F, 0xD9, 0x46, 0xD0); 86static ref readonly Guid IComIID.Guid 99return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
Windows\Win32\PInvoke.SHCreateItemFromParsingName.cs (1)
10/// <inheritdoc cref="SHCreateItemFromParsingName(string, System.Com.IBindCtx*, in Guid, out void*)"/>
Windows\Win32\System\Com\StandardDispatch.cs (2)
89HRESULT IDispatch.Interface.GetIDsOfNames(Guid* riid, PWSTR* rgszNames, uint cNames, uint lcid, int* rgDispId) 102Guid* riid,
Windows\Win32\System\Com\UnknownDispatch.cs (1)
12private static readonly Guid s_stdole = new("00020430-0000-0000-C000-000000000046");
Windows\Win32\UI\Accessibility\AccessibleDispatch.cs (1)
14private static readonly Guid s_accessibilityTypeLib = new("1ea4dbf0-3c3b-11cf-810c-00aa00389b71");
System.Windows.Forms.Primitives.Tests (47)
Interop\Oleaut32\SAFEARRAYTests.cs (3)
131public Func<(Guid, HRESULT)> GetGuidAction { get; set; } 133public HRESULT GetGuid(Guid* pguid) 135(Guid guid, HRESULT hr) = GetGuidAction();
Interop\Oleaut32\VARIANTTests.cs (23)
1113var guid = Guid.NewGuid(); 1748yield return new object[] { Array.Empty<Guid>() }; 1749yield return new object[] { new Guid[] { Guid.NewGuid(), Guid.NewGuid(), Guid.NewGuid() } }; 1754public void VARIANT_ToObject_VECTORCLSID_ReturnsExpected(Guid[] result) 1759fixed (Guid* pResult = result) 1761HRESULT hr = InitPropVariantFromBuffer(pResult, (uint)(result.Length * sizeof(Guid)), &variant); 1766variant.Anonymous.Anonymous.Anonymous.ca.cElems = (uint)(variant.Anonymous.Anonymous.Anonymous.ca.cElems / sizeof(Guid)); 5541GetGuidAction = () => (Guid.Empty, HRESULT.DISP_E_DIVBYZERO) 5559GetGuidAction = () => (Guid.Empty, HRESULT.DISP_E_DIVBYZERO) 5569yield return new object[] { Guid.Empty }; 5575public void ToObject_RECORDInvalidGuidData_ThrowsArgumentException(Guid guid) 5595public void ToObject_RECORDInvalidGuidNoData_ReturnsNull(Guid guid) 5653GetGuidAction = () => (Guid.Empty, HRESULT.DISP_E_DIVBYZERO) 5668yield return new object[] { Guid.Empty }; 5674public void ToObject_RECORDARRAY_InvokeInvalidGuid_ThrowsArgumentException(Guid guid) 5698public Func<(Guid, HRESULT)> GetGuidAction { get; set; } 5700public HRESULT GetGuid(Guid* pguid) 5702(Guid guid, HRESULT hr) = GetGuidAction(); 5822private static extern unsafe HRESULT InitPropVariantFromCLSID(Guid* clsid, VARIANT* ppropvar);
System\Windows\Forms\FileDialogCustomPlacesCollectionTests.cs (6)
28Assert.Equal(Guid.Empty, place.KnownFolderGuid); 32public static TheoryData<Guid> GetGuidTheoryData() 34TheoryData<Guid> data = new() 36Guid.Empty, 37Guid.NewGuid() 44public void FileDialogCustomPlacesCollection_Add_Guid_Success(Guid knownFolderGuid)
System\Windows\Forms\FileDialogCustomPlaceTests.cs (10)
24Assert.Equal(Guid.Empty, place.KnownFolderGuid); 28public static TheoryData<Guid> GetGuidTheoryData() 30TheoryData<Guid> data = new() 32Guid.Empty, 33Guid.NewGuid() 40public void FileDialogCustomPlace_Ctor_Guid(Guid knownFolderGuid) 49public void FileDialogCustomPlace_KnownFolderGuid_Set_GetReturnsExpected(Guid value) 68FileDialogCustomPlace place = new(Guid.NewGuid()) 73Assert.Equal(Guid.Empty, place.KnownFolderGuid); 78Assert.Equal(Guid.Empty, place.KnownFolderGuid);
Windows\Win32\System\Com\ComScopeTests.cs (3)
38internal delegate* unmanaged[Stdcall]<ITestObject*, Guid*, void**, HRESULT> QueryInterface_1; 52static ref readonly Guid IComIID.Guid 63return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
Windows\Win32\System\Com\IDispatchTests.cs (2)
20Guid riid = Guid.Empty;
System.Windows.Forms.Primitives.TestUtilities (5)
Win32\WindowClass.cs (1)
49className ??= Guid.NewGuid().ToString();
Windows\Win32\System\Com\ComClassFactory.cs (4)
15public Guid ClassId { get; } 23Guid classId) 43((delegate* unmanaged<Guid*, Guid*, void**, HRESULT>)proc.Value)(
System.Windows.Forms.Tests (13)
System\Windows\Forms\AxHost.ConnectionPointCookieTests.cs (1)
14private static Guid CLSID_WebBrowser { get; } = new("8856f961-340a-11d0-a96b-00c04fd705a2");
System\Windows\Forms\ComponentModel\Com2Interop\COM2FontConverterTests.cs (2)
145HRESULT IDispatch.Interface.GetIDsOfNames(Guid* riid, PWSTR* rgszNames, uint cNames, uint lcid, int* rgDispId) => throw new NotImplementedException(); 149Guid* riid,
System\Windows\Forms\ComponentModel\Com2Interop\ComNativeDescriptorTests.cs (6)
95Guid guid = typeof(WindowsMediaPlayerClass).GUID; 112Guid guid = typeof(WindowsMediaPlayerClass).GUID; 245HRESULT IProvideMultipleClassInfo.Interface.GetGUID(uint dwGuidKind, Guid* pGUID) => HRESULT.E_NOTIMPL; 264Guid* piidPrimary, 265Guid* piidSource) 303HRESULT IProvideClassInfo2.Interface.GetGUID(uint dwGuidKind, Guid* pGUID) => HRESULT.E_NOTIMPL;
System\Windows\Forms\DynamicAxHost.cs (1)
20protected override object CreateInstanceCore(Guid clsid)
System\Windows\Forms\FileDialogTests.cs (1)
211public void FileDialog_ClientGuid_Set_GetReturnsExpected(Guid value)
System\Windows\Forms\FolderBrowserDialogTests.cs (1)
327public void FolderBrowserDialog_ClientGuid_Set_GetReturnsExpected(Guid value)
System\Windows\Forms\ListBindingHelperTests.cs (1)
771public override Guid GUID => throw new NotImplementedException();
System.Windows.Forms.UI.IntegrationTests (2)
DragDropTests.cs (1)
602Guid CLSID_CUIAutomation = new("FF48DBA4-60EF-4201-AA87-54103EEF594E");
OpenFileDialogTests.cs (1)
21dialog.InitialDirectory = Guid.NewGuid().ToString();
System.Xaml (3)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\TypeConverterHelper.cs (2)
296else if (type == typeof(Guid)) 396else if (typeof(Guid).IsAssignableFrom(type))
System\Xaml\Schema\BuiltInValueConverter.cs (1)
152if (typeof(Guid) == targetType)
System.Xaml.Tests (2)
System\Windows\Markup\ValueSerializerTests.cs (1)
114yield return new object[] { typeof(Guid) };
System\Xaml\XamlTypeTests.cs (1)
4220yield return new object?[] { new SubXamlType(typeof(Guid), new XamlSchemaContext()), new XamlValueConverter<TypeConverter>(typeof(GuidConverter), null) };
Templates.Blazor.Tests (3)
BlazorTemplateTest.cs (1)
148var userName = $"{Guid.NewGuid()}@example.com";
src\ProjectTemplates\Shared\ProjectFactoryFixture.cs (1)
33var projectKey = Guid.NewGuid().ToString().Substring(0, 10).ToLowerInvariant();
src\ProjectTemplates\Shared\TemplatePackageInstaller.cs (1)
131var tempDir = Path.Combine(AppContext.BaseDirectory, Path.GetRandomFileName(), Guid.NewGuid().ToString("D"));
Templates.Blazor.WebAssembly.Auth.Tests (4)
src\ProjectTemplates\Shared\ProjectFactoryFixture.cs (1)
33var projectKey = Guid.NewGuid().ToString().Substring(0, 10).ToLowerInvariant();
src\ProjectTemplates\Shared\TemplatePackageInstaller.cs (1)
131var tempDir = Path.Combine(AppContext.BaseDirectory, Path.GetRandomFileName(), Guid.NewGuid().ToString("D"));
src\Shared\E2ETesting\SauceConnectServer.cs (1)
235var pidFile = Path.Combine(trackingFolder, $"{process.Id}.{Guid.NewGuid()}.pid");
src\Shared\E2ETesting\WaitAssert.cs (1)
124var fileId = $"{Guid.NewGuid():N}.png";
Templates.Blazor.WebAssembly.Tests (4)
src\ProjectTemplates\Shared\ProjectFactoryFixture.cs (1)
33var projectKey = Guid.NewGuid().ToString().Substring(0, 10).ToLowerInvariant();
src\ProjectTemplates\Shared\TemplatePackageInstaller.cs (1)
131var tempDir = Path.Combine(AppContext.BaseDirectory, Path.GetRandomFileName(), Guid.NewGuid().ToString("D"));
src\Shared\E2ETesting\SauceConnectServer.cs (1)
235var pidFile = Path.Combine(trackingFolder, $"{process.Id}.{Guid.NewGuid()}.pid");
src\Shared\E2ETesting\WaitAssert.cs (1)
124var fileId = $"{Guid.NewGuid():N}.png";
Templates.Mvc.Tests (4)
src\ProjectTemplates\Shared\ProjectFactoryFixture.cs (1)
33var projectKey = Guid.NewGuid().ToString().Substring(0, 10).ToLowerInvariant();
src\ProjectTemplates\Shared\TemplatePackageInstaller.cs (1)
131var tempDir = Path.Combine(AppContext.BaseDirectory, Path.GetRandomFileName(), Guid.NewGuid().ToString("D"));
src\Shared\E2ETesting\SauceConnectServer.cs (1)
235var pidFile = Path.Combine(trackingFolder, $"{process.Id}.{Guid.NewGuid()}.pid");
src\Shared\E2ETesting\WaitAssert.cs (1)
124var fileId = $"{Guid.NewGuid():N}.png";
Templates.Tests (4)
src\ProjectTemplates\Shared\ProjectFactoryFixture.cs (1)
33var projectKey = Guid.NewGuid().ToString().Substring(0, 10).ToLowerInvariant();
src\ProjectTemplates\Shared\TemplatePackageInstaller.cs (1)
131var tempDir = Path.Combine(AppContext.BaseDirectory, Path.GetRandomFileName(), Guid.NewGuid().ToString("D"));
src\Shared\E2ETesting\SauceConnectServer.cs (1)
235var pidFile = Path.Combine(trackingFolder, $"{process.Id}.{Guid.NewGuid()}.pid");
src\Shared\E2ETesting\WaitAssert.cs (1)
124var fileId = $"{Guid.NewGuid():N}.png";
TestingAppHost1.AppHost (1)
Program.cs (1)
35var failsToStart = builder.AddContainer("fails-to-start", $"{Guid.NewGuid()}/does/not/exist");
TestShop.AppHost (1)
Program.cs (1)
35var resetDbKey = Guid.NewGuid().ToString();
TlsFeaturesObserve (4)
HttpSys\HttpSysConfigurator.cs (3)
21var appId = Guid.NewGuid(); 27static void SetConfiguration(IPEndPoint ipPort, string certThumbprint, Guid appId, string sslCertStoreName)
HttpSys\Native.cs (1)
57public Guid AppId;
UIAutomationClientSideProviders (5)
MS\Win32\UnsafeNativeMethods.cs (5)
71internal static extern int AccessibleObjectFromWindow(IntPtr hwnd, int idObject, ref Guid iid, [In, Out, MarshalAs(UnmanagedType.IUnknown)] ref object ppvObject); 73internal static extern int ObjectFromLresult(IntPtr lResult, ref Guid iid, IntPtr wParam, [In, Out] ref IAccessible ppvObject); 78internal static Guid IID_IUnknown = new Guid(0x00000000, 0x0000, 0x0000, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46); 79internal static Guid IID_IDispatch = new Guid(0x00020400, 0x0000, 0x0000, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46); 80internal static Guid IID_IAccessible = new Guid(0x618736e0, 0x3c3d, 0x11cf, 0x81, 0x0c, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
UIAutomationTypes (18)
MS\Internal\Automation\UiaCoreTypesApi.cs (2)
51internal static int UiaLookupId(AutomationIdType type, ref Guid guid) 106private static extern int RawUiaLookupId(AutomationIdType type, ref Guid guid);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\NativeMethodsCLR.cs (2)
2149Guid guid = Marshal.PtrToStructure<Guid>(val);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\NativeMethodsOther.cs (4)
108public Guid guid; 110public GUID(Guid guid) 1527public Guid PowerSetting; 1532public static readonly Guid GUID_MONITOR_POWER_ON = new Guid(0x02731015, 0x4510, 0x4526, 0x99, 0xE6, 0xE5, 0xA1, 0x7E, 0xBD, 0x1A, 0xEA);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\UnsafeNativeMethodsCLR.cs (7)
219internal static extern int ObjectFromLresult(IntPtr lResult, ref Guid iid, IntPtr wParam, [In, Out] ref IAccessible ppvObject); 1604ref Guid pClsid); 1733ref Guid pClsid); 1799int GetConnectionInterface(out Guid iid); 1873int FindConnectionPoint([In] ref Guid guid, [Out, MarshalAs(UnmanagedType.Interface)] out IConnectionPoint ppCP); 2327ref Guid group, 2632out Guid pClassID);
System\Windows\Automation\AutomationIdentifier.cs (3)
37: this(type, id, Guid.Empty, programmaticName) 44internal AutomationIdentifier(UiaCoreTypesApi.AutomationIdType type, int id, Guid guid, string programmaticName) 257private Guid _guid;
UnitTests.Common (18)
ServiceInterfaces.cs (7)
173void Ping(Guid guid); 181void RoundTripGuid(Guid guid); 187void OnPingCallback(Guid guid); 193Task<Guid> ServicePingCallback(Guid guid); 197Task<Guid> ServicePingFaultCallback(Guid guid);
TestHelpers.cs (4)
356public Task<Guid> OnPingCallback(Guid guid) 358return Task.FromResult<Guid>(guid); 361void IWcfDuplexServiceCallback.OnPingCallback(Guid guid)
TestTypes.cs (7)
419private Guid _guidValue; 509public Guid GuidValue 696public Task<Guid> ServicePingCallback(Guid guid) 702return Task.Run<Guid>(() => guid); 705public Task<Guid> ServicePingFaultCallback(Guid guid)
vbc (2)
src\Compilers\Shared\BuildClient.cs (2)
222var requestId = Guid.NewGuid().ToString(); 321var testPipeName = $"mono-{Guid.NewGuid()}";
VBCSCompiler (4)
src\Compilers\Server\VBCSCompiler\AnalyzerConsistencyChecker.cs (2)
127var resolvedPathMvid = AssemblyUtilities.ReadMvid(resolvedPath); 128var loadedAssemblyMvid = loadedAssembly.ManifestModule.ModuleVersionId;
src\Compilers\Shared\BuildClient.cs (2)
222var requestId = Guid.NewGuid().ToString(); 321var testPipeName = $"mono-{Guid.NewGuid()}";
VBCSCompiler.UnitTests (7)
BuildClientTests.cs (1)
32private readonly string _pipeName = Guid.NewGuid().ToString("N");
CompilerServerApiTest.cs (2)
38var pipeName = Guid.NewGuid().ToString("N"); 66var pipeName = Guid.NewGuid().ToString("N");
ServerUtil.cs (1)
171internal static string GetPipeName() => Guid.NewGuid().ToString().Substring(0, 10);
VBCSCompilerServerTests.cs (3)
85var pipeName = Guid.NewGuid().ToString(); 97var pipeName = Guid.NewGuid().ToString(); 147var pipeName = Guid.NewGuid().ToString();
VisualBasicRuntimeTest (1)
Program.cs (1)
184private static string GetUniqueName() => Guid.NewGuid().ToString("D");
WaitForSandbox.Common (2)
Entry.cs.cs (2)
8public Guid Id { get; set; } = Guid.NewGuid();
WindowsBase.Tests (4)
System\Security\RightsManagement\UnsignedPublishLicenseTests.cs (4)
12Assert.NotEqual(Guid.Empty, license.ContentId); 40yield return new object[] { Guid.Empty }; 41yield return new object[] { Guid.NewGuid() }; 46public void ContentId_Set_GetReturnsExpected(Guid value)
WinFormsControlsTest (2)
Dialogs.ClientGuidConverter.cs (1)
34_values ??= new StandardValuesCollection(new Guid?[]
Dialogs.ExposedClientGuidMetadata.cs (1)
18public Guid? ClientGuid { get; set; }
xunit.assert (1)
Sdk\AssertHelper.cs (1)
461 if (expectedTypeInfo.IsPrimitive || expectedTypeInfo.IsEnum || expectedType == typeof(string) || expectedType == typeof(decimal) || expectedType == typeof(Guid))