Foreign/SonyLE/LevelEditor/Search/SearchResultsListView.cs
/// <summary>
/// Gets the string value of the "Name" PropertyDescriptor of a DomNode</summary>
/// <param name="domNode">The DomNode whose name property is retrieved</param>
/// <returns>String value of the specified DomNode's "Name"</returns>
Gets the string value of the "Name" PropertyDescriptor of a DomNode
Gets the string value of the " Name " PropertyDescriptor of a DomNode
static internal string GetDomNodeName(DomNode domNode)
        {
            string name = "<UNKNOWN>";
            PropertyDescriptorCollection properties = GetDomNodeProperties(domNode);
            if (properties != null)
            {
                foreach (System.ComponentModel.PropertyDescriptor property in properties)
                {
                    if (property.Name.Equals("Name", StringComparison.InvariantCultureIgnoreCase))
                    {
                        name = property.GetValue(domNode) as string;
                        break;
                    }
                }
            }
            return name;
        }
static internal string GetDomNodeName ( DomNode domNode ) { string name = " " ; PropertyDescriptorCollection properties = GetDomNodeProperties ( domNode ) ; if ( properties != null ) { foreach ( System . ComponentModel . PropertyDescriptor property in properties ) { if ( property . Name . Equals ( " " , StringComparison . InvariantCultureIgnoreCase ) ) { name = property . GetValue ( domNode ) as string ; break ; } } } return name ; }
Gets the string value of the "Name" PropertyDescriptor of a DomNode
Gets the string value of the " Name " PropertyDescriptor of a DomNode
String value of the specified DomNode's "Name"
String value of the specified DomNode ' s " Name "
domNode
DomNode
The DomNode whose name property is retrieved
The DomNode whose name property is retrieved