385 references to Empty
dotnet-svcutil-lib (72)
FrameworkFork\Microsoft.Xml\Xml\XmlConvert.cs (1)
1468result = Guid.Empty;
FrameworkFork\System.Runtime.Serialization\System\Xml\UniqueId.cs (1)
338guid = Guid.Empty;
FrameworkFork\System.ServiceModel\Internals\System\Runtime\ActionItem.cs (1)
169Guid previous = Guid.Empty;
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Diagnostics\EtwDiagnosticTrace.cs (2)
23private static Guid s_defaultEtwProviderId = Guid.Empty; 33s_defaultEtwProviderId = Guid.Empty;
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Diagnostics\EventTraceActivity.cs (2)
38s_empty = new EventTraceActivity(Guid.Empty); 55return new EventTraceActivity(Guid.Empty);
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Fx.cs (2)
295Guid result = Guid.Empty; 318result = Guid.Empty;
FrameworkFork\System.ServiceModel\SMDiagnostics\System\ServiceModel\Diagnostics\Activity.cs (1)
26if (activityId != Guid.Empty)
FrameworkFork\System.ServiceModel\SMDiagnostics\System\ServiceModel\Diagnostics\ExceptionUtility.cs (1)
136ExceptionUtility.s_activityId = Guid.Empty;
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 (5)
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\Diagnostics\ActivityIdHeader.cs (4)
36Guid guid = Guid.Empty; 71activityId = Guid.Empty; 72correlationId = Guid.Empty; 87return activityId != Guid.Empty;
FrameworkFork\System.ServiceModel\System\ServiceModel\Diagnostics\EventTraceActivityHelper.cs (1)
96guid = Guid.Empty;
FrameworkFork\System.ServiceModel\System\ServiceModel\Diagnostics\ServiceModelActivity.cs (1)
233if (activityId != Guid.Empty)
FrameworkFork\System.ServiceModel\System\ServiceModel\Diagnostics\TraceUtility.cs (4)
107return activity == null ? Guid.Empty : activity.Id; 412DiagnosticTraceBase.ActivityId = Guid.Empty; 442Guid guid = Guid.Empty; 450if (guid == Guid.Empty)
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 (3)
133this.ResponseActivityId = Guid.Empty; 301if (Guid.Empty == DiagnosticTraceBase.ActivityId) 304if (Guid.Empty != receivedActivityId)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ProxyRpc.cs (1)
41this.ActivityId = Guid.Empty;
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\SyncMethodInvoker.cs (2)
120if (activityId != Guid.Empty) 129if (activityId != Guid.Empty)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\TaskMethodInvoker.cs (2)
179if (activityId != Guid.Empty) 188if (activityId != Guid.Empty)
InMemory.FunctionalTests (20)
EventSourceTests.cs (20)
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);
Microsoft.AspNetCore.Components.Endpoints.Tests (9)
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.Tests (2)
BindConverterTest.cs (1)
327Assert.Equal(Guid.Empty, actual);
RenderTreeDiffBuilderTest.cs (1)
1754tree.AddComponentParameter(1, "MyGuid", Guid.Empty);
Microsoft.AspNetCore.Cryptography.Internal.Tests (1)
Cng\BCryptUtilTests.cs (1)
45Assert.NotEqual(Guid.Empty, newGuid);
Microsoft.AspNetCore.DataProtection.Tests (13)
KeyManagement\DeferredKeyTests.cs (2)
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\KeyRingBasedDataProtectorTests.cs (4)
209Key key = new Key(Guid.Empty, DateTimeOffset.Now, DateTimeOffset.Now, DateTimeOffset.Now, mockDescriptor.Object, new[] { mockEncryptorFactory.Object }); 262Key key = new Key(Guid.Empty, DateTimeOffset.Now, DateTimeOffset.Now, DateTimeOffset.Now, mockDescriptor.Object, new[] { mockEncryptorFactory.Object }); 293Key key = new Key(Guid.Empty, DateTimeOffset.Now, DateTimeOffset.Now, DateTimeOffset.Now, mockDescriptor.Object, new[] { mockEncryptorFactory.Object }); 329Key key = new Key(Guid.Empty, DateTimeOffset.Now, DateTimeOffset.Now, DateTimeOffset.Now, mockDescriptor.Object, new[] { mockEncryptorFactory.Object });
KeyManagement\KeyTests.cs (1)
40var key = new Key(Guid.Empty, now, now, now, new Mock<IAuthenticatedEncryptorDescriptor>().Object, new[] { encryptorFactory });
Repositories\FileSystemXmlRepositoryTests.cs (1)
113Assert.NotEqual(Guid.Empty, parsedGuid);
Repositories\RegistryXmlRepositoryTests.cs (1)
99Assert.NotEqual(Guid.Empty, parsedGuid);
SecretTests.cs (4)
176Assert.NotEqual(Guid.Empty, pGuids[0]); 177Assert.NotEqual(Guid.Empty, pGuids[1]); 191Assert.NotEqual(Guid.Empty, pGuids[0]); 192Assert.NotEqual(Guid.Empty, pGuids[1]);
Microsoft.AspNetCore.Http.Extensions.Tests (4)
RequestDelegateFactoryTests.cs (2)
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\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 },
Microsoft.Build.Tasks.CodeAnalysis (4)
CopyRefAssembly.cs (3)
44var source = Guid.Empty; 54if (source.Equals(Guid.Empty)) 64if (!source.Equals(Guid.Empty) && source.Equals(destination))
MvidReader.cs (1)
13private static readonly Guid s_empty = Guid.Empty;
Microsoft.Build.Utilities.Core (1)
LockCheck.cs (1)
148private static readonly int RM_SESSION_KEY_LEN = Guid.Empty.ToByteArray().Length; // 16-byte
Microsoft.CodeAnalysis (3)
PEWriter\FullMetadataWriter.cs (2)
120get { return Guid.Empty; } 125get { return Guid.Empty; }
PEWriter\MetadataWriter.DynamicAnalysis.cs (1)
103if (guid == Guid.Empty)
Microsoft.CodeAnalysis.CSharp (1)
Binder\Binder_Expressions.cs (1)
7050guidString = System.Guid.Empty.ToString("D");
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (6)
Emit\CompilationEmitTests.cs (5)
682Assert.NotEqual(Guid.Empty, mvidFromModuleDefinition); 689Assert.Equal(Guid.Empty, mvidFromMvidReader); 1226Assert.NotEqual(Guid.Empty, mvid1); 1231Assert.Equal(Guid.Empty, mvid1); 1232Assert.Equal(Guid.Empty, mvid2);
src\Compilers\Core\MSBuildTask\MvidReader.cs (1)
13private static readonly Guid s_empty = Guid.Empty;
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
src\Compilers\Core\MSBuildTask\MvidReader.cs (1)
13private static readonly Guid s_empty = Guid.Empty;
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
src\Compilers\Core\MSBuildTask\MvidReader.cs (1)
13private static readonly Guid s_empty = Guid.Empty;
Microsoft.CodeAnalysis.CSharp.EndToEnd.UnitTests (1)
src\Compilers\Core\MSBuildTask\MvidReader.cs (1)
13private static readonly Guid s_empty = Guid.Empty;
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.EditorFeatures (1)
Lightup\ISmartRenameSessionWrapper.cs (1)
56s_correlationIdAccessor = LightupHelpers.CreatePropertyAccessor<object, Guid>(s_wrappedType, nameof(CorrelationId), Guid.Empty);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
Emit\CompilationOutputsTests.cs (2)
114Assert.NotEqual(Guid.Empty, outputs.ReadAssemblyModuleVersionId()); 124Assert.Equal(Guid.Empty, outputs.ReadAssemblyModuleVersionId());
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (4)
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);
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (1)
FunctionResolverBase.cs (1)
146return languageId == Guid.Empty ||
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver.UnitTests (4)
CSharpFunctionResolverTests.cs (2)
246var requestDefaultId = new Request(null, MemberSignatureParser.Parse("F"), Guid.Empty); 273var requestDefaultId = new Request(null, MemberSignatureParser.Parse("F"), Guid.Empty);
VisualBasicFunctionResolverTests.cs (2)
43var requestDefaultId = new Request(null, MemberSignatureParser.Parse("F"), Guid.Empty); 70var requestDefaultId = new Request(null, MemberSignatureParser.Parse("F"), Guid.Empty);
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (1)
Debugger\Engine\DkmClrType.cs (1)
369extensionPartId: System.Guid.Empty));
Microsoft.CodeAnalysis.Features (8)
CodeLens\CodeLensHelpers.cs (1)
27guid = Guid.Empty;
EditAndContinue\DebuggingSession.cs (4)
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. 291return (Mvid: Guid.Empty, Error: null); 296return (Mvid: Guid.Empty, Error: Diagnostic.Create(descriptor, Location.None, [outputs.AssemblyDisplayPath, e.Message])); 470if (mvid == Guid.Empty)
EditAndContinue\EditSession.cs (1)
918if (mvid == Guid.Empty)
Emit\CompilationOutputs.cs (2)
68/// Returns <see cref="Guid.Empty"/> if the assembly is not available. 75return Guid.Empty;
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
EditAndContinue\EditAndContinueWorkspaceTestBase.cs (1)
163accessor.SetOutputProvider(project => _mockCompilationOutputs.GetValueOrDefault(project.Id, null) ?? new MockCompilationOutputs(Guid.Empty));
Microsoft.CodeAnalysis.Features.UnitTests (1)
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (1)
3941new ManagedInstructionId(new ManagedMethodId(Guid.Empty, token: 0x06000001, version: 1), ilOffset: 0),
Microsoft.CodeAnalysis.PublicApiAnalyzers.CodeFixes (2)
PublicApiFixHelpers.cs (2)
45&& Guid.TryParse(projectGuidString, out var projectGuid) && projectGuid != Guid.Empty && 46Guid.TryParse(docGuidString, out var docGuid) && docGuid != Guid.Empty)
Microsoft.CodeAnalysis.UnitTests (1)
Collections\SegmentedArrayTests.cs (1)
200Assert.NotEqual(Guid.Empty, data[i]);
Microsoft.CodeAnalysis.Workspaces (5)
Rename\ConflictEngine\ConflictResolver.cs (1)
415.OrderBy(l => l.IsInSource ? solution.GetDocumentId(l.SourceTree)!.Id : Guid.Empty)
Workspace\IsolatedAnalyzerReferenceSet.cs (1)
52return Guid.Empty;
Workspace\Solution\DocumentId.cs (1)
54if (id == Guid.Empty)
Workspace\Solution\ProjectId.cs (1)
61if (id == Guid.Empty)
Workspace\Solution\SolutionId.cs (1)
46if (id == Guid.Empty)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (3)
SolutionGeneration.cs (3)
93if (projectReference.Guid == Guid.Empty) 249if (Guid == Guid.Empty) 290if (projectReference.Guid != Guid.Empty)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (2)
Remote\TestSerializerService.cs (2)
93writer.WriteGuid(Guid.Empty); 102if (testGeneratorReferenceGuid != Guid.Empty)
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
ObjectSerializationTests.cs (1)
604test(Guid.Empty);
Microsoft.Extensions.AI.Abstractions.Tests (2)
test\Shared\JsonSchemaExporter\TestTypes.cs (2)
101yield return new TestData<Guid>(Guid.Empty, """{"type":"string","format":"uuid"}"""); 120yield return new TestData<Guid?>(Guid.Empty, """{"type":["string","null"],"format":"uuid"}""");
Microsoft.Extensions.Caching.Hybrid.Tests (2)
LocalInvalidationTests.cs (2)
62Guid lastValue = Guid.Empty; 82if (lastValue != Guid.Empty)
Microsoft.Interop.ComInterfaceGenerator (2)
ComInterfaceInfo.cs (2)
105guid ?? Guid.Empty, 164Guid.Empty,
Microsoft.VisualStudio.LanguageServices (19)
EditorConfigSettings\SettingsEditorPane.cs (1)
208var logicalView = Guid.Empty;
EditorConfigSettings\SettingsEditorPane.SearchHandler.cs (1)
58public Guid Category { get; } = Guid.Empty;
FindReferences\StreamingFindUsagesPresenter.cs (1)
284var guid = vsWorkspace?.GetProjectGuid(document.Project.Id) ?? Guid.Empty;
Implementation\AbstractCodePageEditorFactory.cs (1)
38pguidCmdUI = Guid.Empty;
Implementation\AbstractEditorFactory.cs (2)
75pguidCmdUI = Guid.Empty; 268pguidCmdUI = Guid.Empty;
LanguageServer\Handler\Diagnostics\VisualStudioDiagnosticProjectInformationService.cs (1)
24if (guid != Guid.Empty)
Library\AbstractLibraryManager_IVsLibrary.cs (1)
25ppguidLib = Guid.Empty;
Library\AbstractObjectList.cs (1)
60menuGuid = Guid.Empty;
Library\ObjectBrowser\ObjectList.cs (1)
792menuGuid = Guid.Empty;
NavigateTo\RoslynSearchResultViewFactory.cs (1)
86if (projectGuid == Guid.Empty)
Notification\VSNotificationServiceFactory.cs (2)
71rclsidComp: Guid.Empty, // unused 98rclsidComp: Guid.Empty, // unused
Packaging\PackageInstallerServiceFactory.cs (3)
279if (dteProject != null && projectGuid != Guid.Empty) 559if (projectGuid != Guid.Empty) 718var emptyGuid = Guid.Empty;
ProjectSystem\Legacy\AbstractLegacyProject.cs (1)
300return Guid.Empty;
ProjectSystem\VisualStudioWorkspaceImpl.cs (2)
1182if (ErrorHandler.Succeeded(openDocumentService.IsDocumentOpen(null, 0, filePath, Guid.Empty, 0, out _, null, out var frame, out _))) 1397return _projectToGuidMap.GetValueOrDefault(projectId, defaultValue: Guid.Empty);
Microsoft.VisualStudio.LanguageServices.LiveShare (1)
Client\RemoteLanguageServiceWorkspace.cs (1)
403var logicalView = Guid.Empty;
PresentationCore (27)
MS\Internal\Ink\ExtendedProperty.cs (1)
21if (id == Guid.Empty)
MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (3)
424System.Diagnostics.Debug.Assert(guid == Guid.Empty); 428if (guid == Guid.Empty) 771if (id == Guid.Empty)
MS\Internal\Ink\InkSerializedFormat\DrawingAttributeSerializer.cs (1)
141if (guid == Guid.Empty)
MS\Internal\Ink\InkSerializedFormat\GuidTagList.cs (4)
121return Guid.Empty; 145return Guid.Empty; 163if (Guid.Empty != guid) 172if (Guid.Empty != guid)
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (3)
739if (guid == Guid.Empty) 1585if (guid == Guid.Empty) 1625if (guid == Guid.Empty)
MS\Internal\Ink\InkSerializedFormat\StrokeSerializer.cs (2)
180if (guid == Guid.Empty) 304if (guid == Guid.Empty)
MS\Win32\UnsafeNativeMethodsPenimc.cs (1)
338Guid unused = Guid.Empty;
src\Microsoft.DotNet.Wpf\src\Shared\Telemetry\Managed\EventSourceActivity.cs (1)
78:this(eventSource, startStopOptions, Guid.Empty)
System\Windows\Ink\StrokeCollection.cs (1)
185if ( propertyDataId == Guid.Empty )
System\Windows\Input\Stylus\Common\StylusPointPropertyId.cs (1)
242Guid result = Guid.Empty;
System\Windows\Input\Stylus\Pointer\PointerStylusPointPropertyInfoHelper.cs (1)
63if (propGuid != Guid.Empty)
System\Windows\Media\Imaging\BitmapDecoder.cs (5)
57Guid clsId = Guid.Empty; 114Guid clsId = Guid.Empty; 135if (clsId != Guid.Empty && clsId != expectedClsId) 228Guid clsId = Guid.Empty; 1328clsId = Guid.Empty;
System\Windows\Media\Imaging\BitmapEncoder.cs (2)
73if (containerFormat == Guid.Empty) 469return Guid.Empty;
System\Windows\Media\Imaging\BitmapSource.cs (1)
1726guidFormat = Guid.Empty;
PresentationFramework (14)
MS\Internal\AppModel\Journaling.cs (2)
354if (endingPF.ParentPageFunctionId == Guid.Empty) 372Debug.Assert(endingPF.ParentPageFunctionId == Guid.Empty,
src\Microsoft.DotNet.Wpf\src\Shared\Telemetry\Managed\EventSourceActivity.cs (1)
78:this(eventSource, startStopOptions, Guid.Empty)
System\Windows\Annotations\Annotation.cs (3)
73_id = Guid.Empty; 134if (id.Equals(Guid.Empty)) 670if (_id.Equals(Guid.Empty))
System\Windows\Annotations\AnnotationResource.cs (3)
75if (Guid.Empty.Equals(id)) 431Guid tempId = Guid.Empty; 460if (Guid.Empty.Equals(tempId))
System\Windows\Controls\WebBrowser.cs (1)
287Guid guid = Guid.Empty;
System\Windows\Navigation\NavigationService.cs (3)
921if (!pf._Resume && pf.ParentPageFunctionId == Guid.Empty && _bp is PageFunctionBase) 924Debug.Assert(pf.ParentPageFunctionId != Guid.Empty); 4028private Guid _guidId = Guid.Empty;
System\Windows\Navigation\PageFunction.cs (1)
31ParentPageFunctionId = Guid.Empty;
Roslyn.Test.PdbUtilities (2)
Reader\Token2SourceLineExporter.cs (2)
1389PdbSource src = new PdbSource(/*(uint)ni,*/ (string)names[(int)chk.name], s_symDocumentTypeGuid, Guid.Empty, Guid.Empty);
Shared.Tests (2)
JsonSchemaExporter\TestTypes.cs (2)
101yield return new TestData<Guid>(Guid.Empty, """{"type":"string","format":"uuid"}"""); 120yield return new TestData<Guid?>(Guid.Empty, """{"type":["string","null"],"format":"uuid"}""");
System.Diagnostics.TextWriterTraceListener (1)
System\Diagnostics\XmlWriterTraceListener.cs (1)
243InternalWrite(eventCache != null ? Trace.CorrelationManager.ActivityId : Guid.Empty);
System.Drawing.Common.Tests (2)
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.Linq.Expressions (2)
System\Linq\Expressions\SymbolDocumentInfo.cs (2)
28public virtual Guid Language => Guid.Empty; 33public virtual Guid LanguageVendor => Guid.Empty;
System.Net.Http (1)
System\Net\Http\DiagnosticsHandler.cs (1)
108Guid loggingRequestId = Guid.Empty;
System.Private.CoreLib (21)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\ActivityTracker.cs (4)
79activityId = Guid.Empty; 80relatedActivityId = Guid.Empty; 155activityId = Guid.Empty; 591EventSource.SetCurrentThreadActivityId(Guid.Empty);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (10)
1381Guid activityId = Guid.Empty; 1382Guid relActivityId = Guid.Empty; 1396if (activityId != Guid.Empty) 1398if (relActivityId != Guid.Empty) 1647if (eventSourceGuid == Guid.Empty) 2003Guid activityId = Guid.Empty; 2004Guid relatedActivityId = Guid.Empty; 2020if (activityId != Guid.Empty) 2022if (relatedActivityId != Guid.Empty) 4815if (_activityId == Guid.Empty)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TraceLoggingEventSource.cs (5)
291relatedActivityId == Guid.Empty ? null : pRelated, 625Guid activityId = Guid.Empty; 626Guid relatedActivityId = Guid.Empty; 640if (activityId != Guid.Empty) 642if (relatedActivityId != Guid.Empty)
src\libraries\System.Private.CoreLib\src\System\Globalization\SortVersion.cs (1)
30if (customVersion == Guid.Empty)
src\System\RuntimeType.CoreCLR.cs (1)
3363return Guid.Empty;
System.Private.DataContractSerialization (1)
System\Xml\UniqueId.cs (1)
269guid = Guid.Empty;
System.Private.Windows.Core (2)
Windows\Win32\System\Com\IDispatch.cs (2)
30Guid riid = Guid.Empty; 94Guid guid = Guid.Empty;
System.Private.Windows.GdiPlus (3)
System\Drawing\CoreImageExtensions.cs (2)
16if (encoder == Guid.Empty) 40if (format == PInvokeCore.ImageFormatJPEG || encoder == Guid.Empty)
System\Drawing\ImageCodecInfoHelper.cs (1)
30return Guid.Empty;
System.Private.Xml (1)
System\Xml\XmlConvert.cs (1)
1270result = Guid.Empty;
System.Reflection.Metadata (1)
System\Reflection\Metadata\Ecma335\MetadataBuilder.Heaps.cs (1)
391if (guid == Guid.Empty)
System.Reflection.MetadataLoadContext (3)
System\Reflection\TypeLoading\Types\RoFunctionPointerType.cs (1)
194public sealed override Guid GUID => Guid.Empty;
System\Reflection\TypeLoading\Types\RoGenericParameterType.cs (1)
62public sealed override Guid GUID => Guid.Empty;
System\Reflection\TypeLoading\Types\RoHasElementType.cs (1)
75public sealed override Guid GUID => Guid.Empty;
System.Transactions.Local (57)
System\Transactions\Enlistment.cs (3)
72Guid returnValue = Guid.Empty; 202Guid.Empty, 209Guid.Empty,
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\InternalTransaction.cs (4)
37internal Guid _promoterType = Guid.Empty; 47internal Guid _distributedTransactionIdentifierNonMSDTC = Guid.Empty; 214if ((_promoterType != Guid.Empty) && (_promoterType != TransactionInterop.PromoterTypeDtc)) 225if ((_promoterType != Guid.Empty) && (_promoterType != TransactionInterop.PromoterTypeDtc))
System\Transactions\Transaction.cs (6)
231Guid returnValue = Guid.Empty; 483if (resourceManagerIdentifier == Guid.Empty) 531if (resourceManagerIdentifier == Guid.Empty) 905if (promoterType == Guid.Empty) 944if (resourceManagerIdentifier == Guid.Empty) 990if (distributedTransactionIdentifier == Guid.Empty)
System\Transactions\TransactionException.cs (1)
19return (distributedTxId != Guid.Empty && AppSettings.IncludeDistributedTxIdInExceptionMessage);
System\Transactions\TransactionManager.cs (2)
142if (resourceManagerIdentifier == Guid.Empty) 240if (resourceManagerIdentifier == Guid.Empty)
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 (1)
1412Guid guid = Guid.Empty;
System\Transactions\TransactionState.cs (21)
252return Guid.Empty; 788Debug.Assert(tx._promoterType != Guid.Empty, "InternalTransaction.PromoterType was not set in PSPEInitialize"); 1077Debug.Assert(tx._promoterType != Guid.Empty, "InternalTransaction.PromoterType was not set in Phase0PSPEInitialize"); 1829return Guid.Empty; 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); 2680throw TransactionException.Create(SR.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId); 2686throw TransactionException.Create(SR.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId); 2844tx == null ? Guid.Empty : tx.DistributedTxId 3805throw TransactionException.Create(SR.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId); 3815throw TransactionException.Create(SR.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId); 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); 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
System\Transactions\VolatileEnlistmentState.cs (1)
72SR.VolEnlistNoRecoveryInfo, null, enlistment == null ? Guid.Empty : enlistment.DistributedTxId);
System.Windows.Forms (21)
System\Windows\Forms\ActiveX\AxHost.AxPropertyDescriptor.cs (5)
45if (!Guid.Empty.Equals(g)) 137return Guid.Empty; 140Guid rval = Guid.Empty; 154return Guid.Empty; 354if (pageGuid != Guid.Empty)
System\Windows\Forms\ComponentModel\COM2Interop\COM2ComponentEditor.cs (4)
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 (4)
34Guid guid = Guid.Empty; 36return hr.Succeeded ? guid : Guid.Empty; 66bool validPropPage = !Guid.Empty.Equals(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\COM2TypeInfoProcessor.cs (6)
175Guid guid = Guid.Empty; 232bool wasProcessed = typeGuid != Guid.Empty && s_processedLibraries.ContainsKey(typeGuid); 264if (typeGuid != Guid.Empty) 376if (!Guid.Empty.Equals(guid)) 528Guid typeGuid = Guid.Empty; 548if (typeGuid != Guid.Empty)
System\Windows\Forms\ComponentModel\COM2Interop\ComNativeDescriptor.cs (1)
128Guid guid = Guid.Empty;
System.Windows.Forms.Design (2)
System\ComponentModel\Design\MultilineStringEditor.OleCallback.cs (1)
70if (realClsid == Guid.Empty)
System\Windows\Forms\Design\DocumentDesigner.AxToolboxItem.cs (1)
287Debug.Assert(!tlbGuid.Equals(Guid.Empty), $"No valid Guid found for: {controlKey}");
System.Windows.Forms.Primitives (2)
System\Windows\Forms\FileDialogCustomPlace.cs (2)
20private Guid _knownFolderGuid = Guid.Empty; 39_knownFolderGuid = Guid.Empty;
System.Windows.Forms.Primitives.Tests (12)
Interop\Oleaut32\VARIANTTests.cs (5)
5541GetGuidAction = () => (Guid.Empty, HRESULT.DISP_E_DIVBYZERO) 5559GetGuidAction = () => (Guid.Empty, HRESULT.DISP_E_DIVBYZERO) 5569yield return new object[] { Guid.Empty }; 5653GetGuidAction = () => (Guid.Empty, HRESULT.DISP_E_DIVBYZERO) 5668yield return new object[] { Guid.Empty };
System\Windows\Forms\FileDialogCustomPlacesCollectionTests.cs (2)
28Assert.Equal(Guid.Empty, place.KnownFolderGuid); 36Guid.Empty,
System\Windows\Forms\FileDialogCustomPlaceTests.cs (4)
24Assert.Equal(Guid.Empty, place.KnownFolderGuid); 32Guid.Empty, 73Assert.Equal(Guid.Empty, place.KnownFolderGuid); 78Assert.Equal(Guid.Empty, place.KnownFolderGuid);
Windows\Win32\System\Com\IDispatchTests.cs (1)
20Guid riid = Guid.Empty;
UIAutomationTypes (1)
System\Windows\Automation\AutomationIdentifier.cs (1)
37: this(type, id, Guid.Empty, programmaticName)
WindowsBase.Tests (2)
System\Security\RightsManagement\UnsignedPublishLicenseTests.cs (2)
12Assert.NotEqual(Guid.Empty, license.ContentId); 40yield return new object[] { Guid.Empty };