예제 #1
0
파일: Schema.cs 프로젝트: JianwenSun/cc
        //------------------------------------------------------
        //
        //  Internal Methods
        //
        //------------------------------------------------------
 
        #region Internal Methods

        // look up information on the specified property, returns true if found, else false
        internal static bool GetPropertyInfo( AutomationProperty id, out AutomationPropertyInfo info )
        {
            foreach( AutomationPropertyInfo pi in _propertyInfoTable )
            {
                if( pi.ID == id )
                {
                    info = pi;
                    return true;
                }
            }
            info = null;
            Debug.Assert( false, "GetPropertyInfo failed " + id );
            return false;
        }
예제 #2
0
        //------------------------------------------------------
        //
        //  Internal Methods
        //
        //------------------------------------------------------

        #region Internal Methods

        // look up information on the specified property, returns true if found, else false
        internal static bool GetPropertyInfo(AutomationProperty id, out AutomationPropertyInfo info)
        {
            foreach (AutomationPropertyInfo pi in _propertyInfoTable)
            {
                if (pi.ID == id)
                {
                    info = pi;
                    return(true);
                }
            }
            info = null;
            Debug.Assert(false, "GetPropertyInfo failed " + id);
            return(false);
        }