Пример #1
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="abc"></param>
 public override void Verify( ABC.AbcFile abc )
 {
     if ( !abc.VerifyStringIndex( _Index ) )
     {
         throw new AbcVerifierException( "Invalid string index" );
     }
 }
Пример #2
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="abc"></param>
 public override void Verify( ABC.AbcFile abc )
 {
     if ( ! abc.VerifyStringIndex( _Index ) )
     {
         throw new AbcVerifierException("String index out of bounds: " + _Index.ToString("d" ) );
     }
 }
Пример #3
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="abc"></param>
        public override void Verify( ABC.AbcFile abc )
        {
            if ( !abc.VerifyStringIndex( _Index ) )
            {
                throw new AbcVerifierException( "Invalid string index" );
            }

            try
            {
                UriBuilder urib = new UriBuilder( abc.ConstantPool.Strings[ ( int )_Index ] );
            }
            catch ( UriFormatException urie )
            {
                throw new AbcVerifierException( "dxns URI format error: " + abc.ConstantPool.Strings[ ( int )_Index ], urie );
            }
        }