static void ParseBandwidthUseMode( [NotNull] PlayerInfo info, [NotNull] string field ) {
if( info == null ) throw new ArgumentNullException( "info" );
if( field == null ) throw new ArgumentNullException( "field" );
byte bandwidthUseModeCode;
if( field.Length > 0 && Byte.TryParse( field, out bandwidthUseModeCode ) ) {
info.BandwidthUseMode = (BandwidthUseMode)bandwidthUseModeCode;
if( !Enum.IsDefined( typeof( BandwidthUseMode ), bandwidthUseModeCode ) ) {
info.BandwidthUseMode = BandwidthUseMode.Default;
}
} else {
info.BandwidthUseMode = BandwidthUseMode.Default;
}
}