/// <summary> /// Reads the specified token. /// </summary> /// <param name="token">The token.</param> /// <param name="result">The result.</param> public void Read(TokenTypes token, out ParamRow result) { if ((token & TokenTypes.TableMask) != TokenTypes.Param) throw new ArgumentException ("Invalid token type for ParamRow.", "token"); using (BinaryReader reader = CreateReaderForToken (token)) { result = new ParamRow ((ParameterAttributes)reader.ReadUInt16 (), reader.ReadInt16 (), ReadIndexValue (reader, IndexType.StringHeap)); } }
void IMetadataProvider.Read(TokenTypes token, out ParamRow result) { TableHeap theap = (TableHeap)_streams[(int)HeapType.Tables]; theap.Read(token, out result); }
public ParamRowExt(IMetadataProvider metadata, ParamRow row) : base(metadata) { this.row = row; }