src/Microsoft/Windows/Registry/InMemory/_Library/InMemoryRegistryKey.cs
/// <summary>
/// Builds the full qualified name (rooted path)
/// </summary>
/// <returns>The full qualified name.</returns>
Builds the full qualified name (rooted path)
Builds the full qualified name ( rooted path )
string BuildFullQualifiedName() {
            Stack<InMemoryRegistryKey> keys = new Stack<InMemoryRegistryKey>();
            int capacity = 0;
            InMemoryRegistryKey current = this;
            while( current != null ) {
                capacity += current._name.Length + 1;
                keys.Push( current );
                current = current._parent;
            }
            StringBuilder sb = new StringBuilder( capacity );
            while( keys.Count != 0 ) {
                _ = sb.AppendFormat( "{0}\\", keys.Pop()._name );
            }
            return sb.ToString( 0, capacity - 1 );
        }
string BuildFullQualifiedName ( ) { Stack < InMemoryRegistryKey > keys = new Stack < InMemoryRegistryKey > ( ) ; int capacity = 0 ; InMemoryRegistryKey current = this ; while ( current != null ) { capacity += current . _name . Length + 1 ; keys . Push ( current ) ; current = current . _parent ; } StringBuilder sb = new StringBuilder ( capacity ) ; while ( keys . Count != 0 ) { _ = sb . AppendFormat ( " \\ " , keys . Pop ( ) . _name ) ; } return sb . ToString ( 0 , capacity - 1 ) ; }
Builds the full qualified name (rooted path)
Builds the full qualified name ( rooted path )
The full qualified name.
The full qualified name .