static public method AmmunitionCaliberFactory.ReadStream

Brief

Reads the stream as a dictonary

Declaration
C#
void  ReadStream (this BallisticCalculator.Data.Dictionary.AmmunitionCaliberDictionary dictionary, System.IO.Stream stream, System.Text.Encoding encoding = null, bool ignoreErrors = False)

Parameters
dictionary
stream
encoding
ignoreErrors

Details

The stream is expected to be a text with the following format

1. One line of the file is one caliber

2. Fields are separated with semicolon (;)

3. Fields are:

3a. Type: pistol, rifle, shotgun or cannon

3b. Group: a caliber group in inches or millimeters

3c. Bullet diameter in inches or millimeters

3d. The primary name

3e. The optional names separated by a comma

Example:

rifle;4mm;0.172';.17 HMR;.17 Hornady Magnum Rimfire, .17 Hornady Magnum

Declared in AmmunitionCaliberFactory

back