Axiom.Core.MeterManager.BarfOnBadChars C# (CSharp) Method

BarfOnBadChars() protected static method

protected static BarfOnBadChars ( string name, string nameDescription ) : void
name string
nameDescription string
return void
		protected static void BarfOnBadChars( string name, string nameDescription )
		{
			if ( name.IndexOf( "\n" ) >= 0 )
				throw new Exception( string.Format( "Carriage returns are not allowed in {0}", nameDescription ) );
			else if ( name.IndexOf( "," ) >= 0 )
				throw new Exception( string.Format( "Commas are not allowed in {0}", nameDescription ) );
		}