예제 #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 );
            }
        }