Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
System.Diagnostics.Trace.CorrelationManager.LogicalOperationStack 属性可以为空吗?
我假设你的意思是System.Diagnostics.Trace.CorrelationManager.LogicalOperationStack。不,它不会为空。如果CallContext没有现有堆栈,无论出于何种原因,都会在 getter 中分配一个新堆栈。
System.Diagnostics.Trace.CorrelationManager.LogicalOperationStack
CallContext