// look up information on the specified property, returns true if found, else false internal static bool GetAttributeInfo(AutomationTextAttribute id, out AutomationAttributeInfo info) { foreach (AutomationAttributeInfo ai in _attributeInfoTable) { if (ai.ID == id) { info = ai; return(true); } } info = null; Debug.Assert(false, "GetAttributeInfo failed " + id); return(false); }
// look up information on the specified property, returns true if found, else false internal static bool GetAttributeInfo( AutomationTextAttribute id, out AutomationAttributeInfo info ) { foreach( AutomationAttributeInfo ai in _attributeInfoTable ) { if( ai.ID == id ) { info = ai; return true; } } info = null; Debug.Assert( false, "GetAttributeInfo failed " + id ); return false; }