public void AppendTo(StringBuilder builder) { builder.Append(m_time.ToString("yyyy-MM-dd HH:mm:ss,fff")); builder.Append(": "); builder.AppendLine(m_message); builder.Append(" State: Owned="); builder.Append(m_owned); builder.Append(", SharedOwners="); builder.Append(m_sharedOwners); builder.Append(", ExclusiveWaiters="); builder.Append(m_exclusiveWaiters); builder.Append(", SharedWaiters="); builder.Append(m_sharedWaiters); builder.AppendLine(); #if STACK_TRACE Logger.AppendStack(builder, m_stackTrace, typeof(FastResourceLock), typeof(Activity)); #endif }