Esempio n. 1
0
            protected ArrayList m_nameRecords; // NameRecordCache[]

            // constructor
            public name_cache(Table_name OwnerTable)
            {
                m_format = OwnerTable.FormatSelector;

                m_nameRecords = new ArrayList(OwnerTable.NumberNameRecords);

                for (ushort i = 0; i < OwnerTable.NumberNameRecords; i++)
                {
                    NameRecord nr          = OwnerTable.GetNameRecord(i);
                    string     sNameString = OwnerTable.GetString(nr.PlatformID, nr.EncodingID, nr.LanguageID, nr.NameID);
                    addNameRecord(nr.PlatformID, nr.EncodingID, nr.LanguageID, nr.NameID, sNameString);
                }
            }
            protected ArrayList m_nameRecords; // NameRecordCache[]

            // constructor
            public name_cache(Table_name OwnerTable)
            {
            
                m_format = OwnerTable.FormatSelector;
                
                m_nameRecords = new ArrayList( OwnerTable.NumberNameRecords );

                for( ushort i = 0; i < OwnerTable.NumberNameRecords; i++ )
                {
                    NameRecord nr = OwnerTable.GetNameRecord( i );                    
                    string sNameString = OwnerTable.GetString( nr.PlatformID, nr.EncodingID, nr.LanguageID, nr.NameID );                    
                    addNameRecord(nr.PlatformID, nr.EncodingID, nr.LanguageID, nr.NameID, sNameString);
                }
            }