/// <summary> /// Creates an empty record of <code>type</code> and <code>subtype</code> specified by <code>header</code>. /// </summary> /// <param name="header">The header of the record.</param> /// <returns>A record of type and subtype.</returns> /// <exception cref="InvalidOperationException">If the type has no public constructor and hence no instance can be created.</exception> /// <exception cref="StdfException">If the record instance cannot be created.</exception> /// <exception cref="RecordNotFoundException">If the record with specified header does not exist.</exception> internal StdfRecord CreateRecord(StdfHeader header) { StdfRecord record = CreateRecord(header.Type, header.Subtype); record.Length = header.Lenght; return(record); }
protected StdfRecord() { attribute = GetStdfRecordAttribute(GetType()); fieldRegistry = new FieldRegistry(); header = new StdfHeader(); }