class TestClass { private List < String > _generatedDigits; public TestClass() { _generatedDigits = new List < string >(); } public void GenerateList( Int32 listLength) { Random rnd = new Random ( DateTime .Now.Millisecond); _generatedDigits.Clear(); for ( Int32 i = 0; i < listLength; ++i) { _generatedDigits.Add(rnd.Next().ToString()); } } public bool TestTryParse() { bool result = true ; Int32 outValue = 0; foreach ( String str in _generatedDigits) { result &= Int32 .TryParse(str, out outValue); } return (result); } public bool TestIndusCode() { bool result = true ; foreach ( String str in _generatedDigits) { for ( int i = 0; i < str.Length; i++) if ( char .IsDigit(str[i]) == false ) result = false ; } return (result); } public bool TestRegularExpression() { bool result = true ; foreach ( String str in _generatedDigits) { result &= Regex.IsMatch(str, @"^\d{0,}$" ); } return (result); } } * This source code was highlighted with Source Code Highlighter .
class TestClass { private List < String > _generatedDigits; public TestClass() { _generatedDigits = new List < string >(); } public void GenerateList( Int32 listLength) { Random rnd = new Random ( DateTime .Now.Millisecond); _generatedDigits.Clear(); for ( Int32 i = 0; i < listLength; ++i) { _generatedDigits.Add(rnd.Next().ToString()); } } public bool TestTryParse() { bool result = true ; Int32 outValue = 0; foreach ( String str in _generatedDigits) { result &= Int32 .TryParse(str, out outValue); } return (result); } public bool TestIndusCode() { bool result = true ; foreach ( String str in _generatedDigits) { for ( int i = 0; i < str.Length; i++) if ( char .IsDigit(str[i]) == false ) result = false ; } return (result); } public bool TestRegularExpression() { bool result = true ; foreach ( String str in _generatedDigits) { result &= Regex.IsMatch(str, @"^\d{0,}$" ); } return (result); } } * This source code was highlighted with Source Code Highlighter .
class TestClass { private List < String > _generatedDigits; public TestClass() { _generatedDigits = new List < string >(); } public void GenerateList( Int32 listLength) { Random rnd = new Random ( DateTime .Now.Millisecond); _generatedDigits.Clear(); for ( Int32 i = 0; i < listLength; ++i) { _generatedDigits.Add(rnd.Next().ToString()); } } public bool TestTryParse() { bool result = true ; Int32 outValue = 0; foreach ( String str in _generatedDigits) { result &= Int32 .TryParse(str, out outValue); } return (result); } public bool TestIndusCode() { bool result = true ; foreach ( String str in _generatedDigits) { for ( int i = 0; i < str.Length; i++) if ( char .IsDigit(str[i]) == false ) result = false ; } return (result); } public bool TestRegularExpression() { bool result = true ; foreach ( String str in _generatedDigits) { result &= Regex.IsMatch(str, @"^\d{0,}$" ); } return (result); } } * This source code was highlighted with Source Code Highlighter .
class TestClass { private List < String > _generatedDigits; public TestClass() { _generatedDigits = new List < string >(); } public void GenerateList( Int32 listLength) { Random rnd = new Random ( DateTime .Now.Millisecond); _generatedDigits.Clear(); for ( Int32 i = 0; i < listLength; ++i) { _generatedDigits.Add(rnd.Next().ToString()); } } public bool TestTryParse() { bool result = true ; Int32 outValue = 0; foreach ( String str in _generatedDigits) { result &= Int32 .TryParse(str, out outValue); } return (result); } public bool TestIndusCode() { bool result = true ; foreach ( String str in _generatedDigits) { for ( int i = 0; i < str.Length; i++) if ( char .IsDigit(str[i]) == false ) result = false ; } return (result); } public bool TestRegularExpression() { bool result = true ; foreach ( String str in _generatedDigits) { result &= Regex.IsMatch(str, @"^\d{0,}$" ); } return (result); } } * This source code was highlighted with Source Code Highlighter .
class TestClass { private List < String > _generatedDigits; public TestClass() { _generatedDigits = new List < string >(); } public void GenerateList( Int32 listLength) { Random rnd = new Random ( DateTime .Now.Millisecond); _generatedDigits.Clear(); for ( Int32 i = 0; i < listLength; ++i) { _generatedDigits.Add(rnd.Next().ToString()); } } public bool TestTryParse() { bool result = true ; Int32 outValue = 0; foreach ( String str in _generatedDigits) { result &= Int32 .TryParse(str, out outValue); } return (result); } public bool TestIndusCode() { bool result = true ; foreach ( String str in _generatedDigits) { for ( int i = 0; i < str.Length; i++) if ( char .IsDigit(str[i]) == false ) result = false ; } return (result); } public bool TestRegularExpression() { bool result = true ; foreach ( String str in _generatedDigits) { result &= Regex.IsMatch(str, @"^\d{0,}$" ); } return (result); } } * This source code was highlighted with Source Code Highlighter .
class TestClass { private List < String > _generatedDigits; public TestClass() { _generatedDigits = new List < string >(); } public void GenerateList( Int32 listLength) { Random rnd = new Random ( DateTime .Now.Millisecond); _generatedDigits.Clear(); for ( Int32 i = 0; i < listLength; ++i) { _generatedDigits.Add(rnd.Next().ToString()); } } public bool TestTryParse() { bool result = true ; Int32 outValue = 0; foreach ( String str in _generatedDigits) { result &= Int32 .TryParse(str, out outValue); } return (result); } public bool TestIndusCode() { bool result = true ; foreach ( String str in _generatedDigits) { for ( int i = 0; i < str.Length; i++) if ( char .IsDigit(str[i]) == false ) result = false ; } return (result); } public bool TestRegularExpression() { bool result = true ; foreach ( String str in _generatedDigits) { result &= Regex.IsMatch(str, @"^\d{0,}$" ); } return (result); } } * This source code was highlighted with Source Code Highlighter .
class TestClass { private List < String > _generatedDigits; public TestClass() { _generatedDigits = new List < string >(); } public void GenerateList( Int32 listLength) { Random rnd = new Random ( DateTime .Now.Millisecond); _generatedDigits.Clear(); for ( Int32 i = 0; i < listLength; ++i) { _generatedDigits.Add(rnd.Next().ToString()); } } public bool TestTryParse() { bool result = true ; Int32 outValue = 0; foreach ( String str in _generatedDigits) { result &= Int32 .TryParse(str, out outValue); } return (result); } public bool TestIndusCode() { bool result = true ; foreach ( String str in _generatedDigits) { for ( int i = 0; i < str.Length; i++) if ( char .IsDigit(str[i]) == false ) result = false ; } return (result); } public bool TestRegularExpression() { bool result = true ; foreach ( String str in _generatedDigits) { result &= Regex.IsMatch(str, @"^\d{0,}$" ); } return (result); } } * This source code was highlighted with Source Code Highlighter .
class TestClass { private List < String > _generatedDigits; public TestClass() { _generatedDigits = new List < string >(); } public void GenerateList( Int32 listLength) { Random rnd = new Random ( DateTime .Now.Millisecond); _generatedDigits.Clear(); for ( Int32 i = 0; i < listLength; ++i) { _generatedDigits.Add(rnd.Next().ToString()); } } public bool TestTryParse() { bool result = true ; Int32 outValue = 0; foreach ( String str in _generatedDigits) { result &= Int32 .TryParse(str, out outValue); } return (result); } public bool TestIndusCode() { bool result = true ; foreach ( String str in _generatedDigits) { for ( int i = 0; i < str.Length; i++) if ( char .IsDigit(str[i]) == false ) result = false ; } return (result); } public bool TestRegularExpression() { bool result = true ; foreach ( String str in _generatedDigits) { result &= Regex.IsMatch(str, @"^\d{0,}$" ); } return (result); } } * This source code was highlighted with Source Code Highlighter .
class TestClass { private List < String > _generatedDigits; public TestClass() { _generatedDigits = new List < string >(); } public void GenerateList( Int32 listLength) { Random rnd = new Random ( DateTime .Now.Millisecond); _generatedDigits.Clear(); for ( Int32 i = 0; i < listLength; ++i) { _generatedDigits.Add(rnd.Next().ToString()); } } public bool TestTryParse() { bool result = true ; Int32 outValue = 0; foreach ( String str in _generatedDigits) { result &= Int32 .TryParse(str, out outValue); } return (result); } public bool TestIndusCode() { bool result = true ; foreach ( String str in _generatedDigits) { for ( int i = 0; i < str.Length; i++) if ( char .IsDigit(str[i]) == false ) result = false ; } return (result); } public bool TestRegularExpression() { bool result = true ; foreach ( String str in _generatedDigits) { result &= Regex.IsMatch(str, @"^\d{0,}$" ); } return (result); } } * This source code was highlighted with Source Code Highlighter .
class TestClass { private List < String > _generatedDigits; public TestClass() { _generatedDigits = new List < string >(); } public void GenerateList( Int32 listLength) { Random rnd = new Random ( DateTime .Now.Millisecond); _generatedDigits.Clear(); for ( Int32 i = 0; i < listLength; ++i) { _generatedDigits.Add(rnd.Next().ToString()); } } public bool TestTryParse() { bool result = true ; Int32 outValue = 0; foreach ( String str in _generatedDigits) { result &= Int32 .TryParse(str, out outValue); } return (result); } public bool TestIndusCode() { bool result = true ; foreach ( String str in _generatedDigits) { for ( int i = 0; i < str.Length; i++) if ( char .IsDigit(str[i]) == false ) result = false ; } return (result); } public bool TestRegularExpression() { bool result = true ; foreach ( String str in _generatedDigits) { result &= Regex.IsMatch(str, @"^\d{0,}$" ); } return (result); } } * This source code was highlighted with Source Code Highlighter .
class TestClass { private List < String > _generatedDigits; public TestClass() { _generatedDigits = new List < string >(); } public void GenerateList( Int32 listLength) { Random rnd = new Random ( DateTime .Now.Millisecond); _generatedDigits.Clear(); for ( Int32 i = 0; i < listLength; ++i) { _generatedDigits.Add(rnd.Next().ToString()); } } public bool TestTryParse() { bool result = true ; Int32 outValue = 0; foreach ( String str in _generatedDigits) { result &= Int32 .TryParse(str, out outValue); } return (result); } public bool TestIndusCode() { bool result = true ; foreach ( String str in _generatedDigits) { for ( int i = 0; i < str.Length; i++) if ( char .IsDigit(str[i]) == false ) result = false ; } return (result); } public bool TestRegularExpression() { bool result = true ; foreach ( String str in _generatedDigits) { result &= Regex.IsMatch(str, @"^\d{0,}$" ); } return (result); } } * This source code was highlighted with Source Code Highlighter .
class TestClass { private List < String > _generatedDigits; public TestClass() { _generatedDigits = new List < string >(); } public void GenerateList( Int32 listLength) { Random rnd = new Random ( DateTime .Now.Millisecond); _generatedDigits.Clear(); for ( Int32 i = 0; i < listLength; ++i) { _generatedDigits.Add(rnd.Next().ToString()); } } public bool TestTryParse() { bool result = true ; Int32 outValue = 0; foreach ( String str in _generatedDigits) { result &= Int32 .TryParse(str, out outValue); } return (result); } public bool TestIndusCode() { bool result = true ; foreach ( String str in _generatedDigits) { for ( int i = 0; i < str.Length; i++) if ( char .IsDigit(str[i]) == false ) result = false ; } return (result); } public bool TestRegularExpression() { bool result = true ; foreach ( String str in _generatedDigits) { result &= Regex.IsMatch(str, @"^\d{0,}$" ); } return (result); } } * This source code was highlighted with Source Code Highlighter .
class TestClass { private List < String > _generatedDigits; public TestClass() { _generatedDigits = new List < string >(); } public void GenerateList( Int32 listLength) { Random rnd = new Random ( DateTime .Now.Millisecond); _generatedDigits.Clear(); for ( Int32 i = 0; i < listLength; ++i) { _generatedDigits.Add(rnd.Next().ToString()); } } public bool TestTryParse() { bool result = true ; Int32 outValue = 0; foreach ( String str in _generatedDigits) { result &= Int32 .TryParse(str, out outValue); } return (result); } public bool TestIndusCode() { bool result = true ; foreach ( String str in _generatedDigits) { for ( int i = 0; i < str.Length; i++) if ( char .IsDigit(str[i]) == false ) result = false ; } return (result); } public bool TestRegularExpression() { bool result = true ; foreach ( String str in _generatedDigits) { result &= Regex.IsMatch(str, @"^\d{0,}$" ); } return (result); } } * This source code was highlighted with Source Code Highlighter .
class TestClass { private List < String > _generatedDigits; public TestClass() { _generatedDigits = new List < string >(); } public void GenerateList( Int32 listLength) { Random rnd = new Random ( DateTime .Now.Millisecond); _generatedDigits.Clear(); for ( Int32 i = 0; i < listLength; ++i) { _generatedDigits.Add(rnd.Next().ToString()); } } public bool TestTryParse() { bool result = true ; Int32 outValue = 0; foreach ( String str in _generatedDigits) { result &= Int32 .TryParse(str, out outValue); } return (result); } public bool TestIndusCode() { bool result = true ; foreach ( String str in _generatedDigits) { for ( int i = 0; i < str.Length; i++) if ( char .IsDigit(str[i]) == false ) result = false ; } return (result); } public bool TestRegularExpression() { bool result = true ; foreach ( String str in _generatedDigits) { result &= Regex.IsMatch(str, @"^\d{0,}$" ); } return (result); } } * This source code was highlighted with Source Code Highlighter .
class TestClass { private List < String > _generatedDigits; public TestClass() { _generatedDigits = new List < string >(); } public void GenerateList( Int32 listLength) { Random rnd = new Random ( DateTime .Now.Millisecond); _generatedDigits.Clear(); for ( Int32 i = 0; i < listLength; ++i) { _generatedDigits.Add(rnd.Next().ToString()); } } public bool TestTryParse() { bool result = true ; Int32 outValue = 0; foreach ( String str in _generatedDigits) { result &= Int32 .TryParse(str, out outValue); } return (result); } public bool TestIndusCode() { bool result = true ; foreach ( String str in _generatedDigits) { for ( int i = 0; i < str.Length; i++) if ( char .IsDigit(str[i]) == false ) result = false ; } return (result); } public bool TestRegularExpression() { bool result = true ; foreach ( String str in _generatedDigits) { result &= Regex.IsMatch(str, @"^\d{0,}$" ); } return (result); } } * This source code was highlighted with Source Code Highlighter .
class TestClass { private List < String > _generatedDigits; public TestClass() { _generatedDigits = new List < string >(); } public void GenerateList( Int32 listLength) { Random rnd = new Random ( DateTime .Now.Millisecond); _generatedDigits.Clear(); for ( Int32 i = 0; i < listLength; ++i) { _generatedDigits.Add(rnd.Next().ToString()); } } public bool TestTryParse() { bool result = true ; Int32 outValue = 0; foreach ( String str in _generatedDigits) { result &= Int32 .TryParse(str, out outValue); } return (result); } public bool TestIndusCode() { bool result = true ; foreach ( String str in _generatedDigits) { for ( int i = 0; i < str.Length; i++) if ( char .IsDigit(str[i]) == false ) result = false ; } return (result); } public bool TestRegularExpression() { bool result = true ; foreach ( String str in _generatedDigits) { result &= Regex.IsMatch(str, @"^\d{0,}$" ); } return (result); } } * This source code was highlighted with Source Code Highlighter .
class TestClass { private List < String > _generatedDigits; public TestClass() { _generatedDigits = new List < string >(); } public void GenerateList( Int32 listLength) { Random rnd = new Random ( DateTime .Now.Millisecond); _generatedDigits.Clear(); for ( Int32 i = 0; i < listLength; ++i) { _generatedDigits.Add(rnd.Next().ToString()); } } public bool TestTryParse() { bool result = true ; Int32 outValue = 0; foreach ( String str in _generatedDigits) { result &= Int32 .TryParse(str, out outValue); } return (result); } public bool TestIndusCode() { bool result = true ; foreach ( String str in _generatedDigits) { for ( int i = 0; i < str.Length; i++) if ( char .IsDigit(str[i]) == false ) result = false ; } return (result); } public bool TestRegularExpression() { bool result = true ; foreach ( String str in _generatedDigits) { result &= Regex.IsMatch(str, @"^\d{0,}$" ); } return (result); } } * This source code was highlighted with Source Code Highlighter .
class TestClass { private List < String > _generatedDigits; public TestClass() { _generatedDigits = new List < string >(); } public void GenerateList( Int32 listLength) { Random rnd = new Random ( DateTime .Now.Millisecond); _generatedDigits.Clear(); for ( Int32 i = 0; i < listLength; ++i) { _generatedDigits.Add(rnd.Next().ToString()); } } public bool TestTryParse() { bool result = true ; Int32 outValue = 0; foreach ( String str in _generatedDigits) { result &= Int32 .TryParse(str, out outValue); } return (result); } public bool TestIndusCode() { bool result = true ; foreach ( String str in _generatedDigits) { for ( int i = 0; i < str.Length; i++) if ( char .IsDigit(str[i]) == false ) result = false ; } return (result); } public bool TestRegularExpression() { bool result = true ; foreach ( String str in _generatedDigits) { result &= Regex.IsMatch(str, @"^\d{0,}$" ); } return (result); } } * This source code was highlighted with Source Code Highlighter .
class TestClass { private List < String > _generatedDigits; public TestClass() { _generatedDigits = new List < string >(); } public void GenerateList( Int32 listLength) { Random rnd = new Random ( DateTime .Now.Millisecond); _generatedDigits.Clear(); for ( Int32 i = 0; i < listLength; ++i) { _generatedDigits.Add(rnd.Next().ToString()); } } public bool TestTryParse() { bool result = true ; Int32 outValue = 0; foreach ( String str in _generatedDigits) { result &= Int32 .TryParse(str, out outValue); } return (result); } public bool TestIndusCode() { bool result = true ; foreach ( String str in _generatedDigits) { for ( int i = 0; i < str.Length; i++) if ( char .IsDigit(str[i]) == false ) result = false ; } return (result); } public bool TestRegularExpression() { bool result = true ; foreach ( String str in _generatedDigits) { result &= Regex.IsMatch(str, @"^\d{0,}$" ); } return (result); } } * This source code was highlighted with Source Code Highlighter .
class TestClass { private List < String > _generatedDigits; public TestClass() { _generatedDigits = new List < string >(); } public void GenerateList( Int32 listLength) { Random rnd = new Random ( DateTime .Now.Millisecond); _generatedDigits.Clear(); for ( Int32 i = 0; i < listLength; ++i) { _generatedDigits.Add(rnd.Next().ToString()); } } public bool TestTryParse() { bool result = true ; Int32 outValue = 0; foreach ( String str in _generatedDigits) { result &= Int32 .TryParse(str, out outValue); } return (result); } public bool TestIndusCode() { bool result = true ; foreach ( String str in _generatedDigits) { for ( int i = 0; i < str.Length; i++) if ( char .IsDigit(str[i]) == false ) result = false ; } return (result); } public bool TestRegularExpression() { bool result = true ; foreach ( String str in _generatedDigits) { result &= Regex.IsMatch(str, @"^\d{0,}$" ); } return (result); } } * This source code was highlighted with Source Code Highlighter .
class TestClass { private List < String > _generatedDigits; public TestClass() { _generatedDigits = new List < string >(); } public void GenerateList( Int32 listLength) { Random rnd = new Random ( DateTime .Now.Millisecond); _generatedDigits.Clear(); for ( Int32 i = 0; i < listLength; ++i) { _generatedDigits.Add(rnd.Next().ToString()); } } public bool TestTryParse() { bool result = true ; Int32 outValue = 0; foreach ( String str in _generatedDigits) { result &= Int32 .TryParse(str, out outValue); } return (result); } public bool TestIndusCode() { bool result = true ; foreach ( String str in _generatedDigits) { for ( int i = 0; i < str.Length; i++) if ( char .IsDigit(str[i]) == false ) result = false ; } return (result); } public bool TestRegularExpression() { bool result = true ; foreach ( String str in _generatedDigits) { result &= Regex.IsMatch(str, @"^\d{0,}$" ); } return (result); } } * This source code was highlighted with Source Code Highlighter .
class TestClass { private List < String > _generatedDigits; public TestClass() { _generatedDigits = new List < string >(); } public void GenerateList( Int32 listLength) { Random rnd = new Random ( DateTime .Now.Millisecond); _generatedDigits.Clear(); for ( Int32 i = 0; i < listLength; ++i) { _generatedDigits.Add(rnd.Next().ToString()); } } public bool TestTryParse() { bool result = true ; Int32 outValue = 0; foreach ( String str in _generatedDigits) { result &= Int32 .TryParse(str, out outValue); } return (result); } public bool TestIndusCode() { bool result = true ; foreach ( String str in _generatedDigits) { for ( int i = 0; i < str.Length; i++) if ( char .IsDigit(str[i]) == false ) result = false ; } return (result); } public bool TestRegularExpression() { bool result = true ; foreach ( String str in _generatedDigits) { result &= Regex.IsMatch(str, @"^\d{0,}$" ); } return (result); } } * This source code was highlighted with Source Code Highlighter .
class TestClass { private List < String > _generatedDigits; public TestClass() { _generatedDigits = new List < string >(); } public void GenerateList( Int32 listLength) { Random rnd = new Random ( DateTime .Now.Millisecond); _generatedDigits.Clear(); for ( Int32 i = 0; i < listLength; ++i) { _generatedDigits.Add(rnd.Next().ToString()); } } public bool TestTryParse() { bool result = true ; Int32 outValue = 0; foreach ( String str in _generatedDigits) { result &= Int32 .TryParse(str, out outValue); } return (result); } public bool TestIndusCode() { bool result = true ; foreach ( String str in _generatedDigits) { for ( int i = 0; i < str.Length; i++) if ( char .IsDigit(str[i]) == false ) result = false ; } return (result); } public bool TestRegularExpression() { bool result = true ; foreach ( String str in _generatedDigits) { result &= Regex.IsMatch(str, @"^\d{0,}$" ); } return (result); } } * This source code was highlighted with Source Code Highlighter .
class TestClass { private List < String > _generatedDigits; public TestClass() { _generatedDigits = new List < string >(); } public void GenerateList( Int32 listLength) { Random rnd = new Random ( DateTime .Now.Millisecond); _generatedDigits.Clear(); for ( Int32 i = 0; i < listLength; ++i) { _generatedDigits.Add(rnd.Next().ToString()); } } public bool TestTryParse() { bool result = true ; Int32 outValue = 0; foreach ( String str in _generatedDigits) { result &= Int32 .TryParse(str, out outValue); } return (result); } public bool TestIndusCode() { bool result = true ; foreach ( String str in _generatedDigits) { for ( int i = 0; i < str.Length; i++) if ( char .IsDigit(str[i]) == false ) result = false ; } return (result); } public bool TestRegularExpression() { bool result = true ; foreach ( String str in _generatedDigits) { result &= Regex.IsMatch(str, @"^\d{0,}$" ); } return (result); } } * This source code was highlighted with Source Code Highlighter .
class TestClass { private List < String > _generatedDigits; public TestClass() { _generatedDigits = new List < string >(); } public void GenerateList( Int32 listLength) { Random rnd = new Random ( DateTime .Now.Millisecond); _generatedDigits.Clear(); for ( Int32 i = 0; i < listLength; ++i) { _generatedDigits.Add(rnd.Next().ToString()); } } public bool TestTryParse() { bool result = true ; Int32 outValue = 0; foreach ( String str in _generatedDigits) { result &= Int32 .TryParse(str, out outValue); } return (result); } public bool TestIndusCode() { bool result = true ; foreach ( String str in _generatedDigits) { for ( int i = 0; i < str.Length; i++) if ( char .IsDigit(str[i]) == false ) result = false ; } return (result); } public bool TestRegularExpression() { bool result = true ; foreach ( String str in _generatedDigits) { result &= Regex.IsMatch(str, @"^\d{0,}$" ); } return (result); } } * This source code was highlighted with Source Code Highlighter .
class TestClass { private List < String > _generatedDigits; public TestClass() { _generatedDigits = new List < string >(); } public void GenerateList( Int32 listLength) { Random rnd = new Random ( DateTime .Now.Millisecond); _generatedDigits.Clear(); for ( Int32 i = 0; i < listLength; ++i) { _generatedDigits.Add(rnd.Next().ToString()); } } public bool TestTryParse() { bool result = true ; Int32 outValue = 0; foreach ( String str in _generatedDigits) { result &= Int32 .TryParse(str, out outValue); } return (result); } public bool TestIndusCode() { bool result = true ; foreach ( String str in _generatedDigits) { for ( int i = 0; i < str.Length; i++) if ( char .IsDigit(str[i]) == false ) result = false ; } return (result); } public bool TestRegularExpression() { bool result = true ; foreach ( String str in _generatedDigits) { result &= Regex.IsMatch(str, @"^\d{0,}$" ); } return (result); } } * This source code was highlighted with Source Code Highlighter .
class TestClass { private List < String > _generatedDigits; public TestClass() { _generatedDigits = new List < string >(); } public void GenerateList( Int32 listLength) { Random rnd = new Random ( DateTime .Now.Millisecond); _generatedDigits.Clear(); for ( Int32 i = 0; i < listLength; ++i) { _generatedDigits.Add(rnd.Next().ToString()); } } public bool TestTryParse() { bool result = true ; Int32 outValue = 0; foreach ( String str in _generatedDigits) { result &= Int32 .TryParse(str, out outValue); } return (result); } public bool TestIndusCode() { bool result = true ; foreach ( String str in _generatedDigits) { for ( int i = 0; i < str.Length; i++) if ( char .IsDigit(str[i]) == false ) result = false ; } return (result); } public bool TestRegularExpression() { bool result = true ; foreach ( String str in _generatedDigits) { result &= Regex.IsMatch(str, @"^\d{0,}$" ); } return (result); } } * This source code was highlighted with Source Code Highlighter .
class TestClass { private List < String > _generatedDigits; public TestClass() { _generatedDigits = new List < string >(); } public void GenerateList( Int32 listLength) { Random rnd = new Random ( DateTime .Now.Millisecond); _generatedDigits.Clear(); for ( Int32 i = 0; i < listLength; ++i) { _generatedDigits.Add(rnd.Next().ToString()); } } public bool TestTryParse() { bool result = true ; Int32 outValue = 0; foreach ( String str in _generatedDigits) { result &= Int32 .TryParse(str, out outValue); } return (result); } public bool TestIndusCode() { bool result = true ; foreach ( String str in _generatedDigits) { for ( int i = 0; i < str.Length; i++) if ( char .IsDigit(str[i]) == false ) result = false ; } return (result); } public bool TestRegularExpression() { bool result = true ; foreach ( String str in _generatedDigits) { result &= Regex.IsMatch(str, @"^\d{0,}$" ); } return (result); } } * This source code was highlighted with Source Code Highlighter .
class TestClass { private List < String > _generatedDigits; public TestClass() { _generatedDigits = new List < string >(); } public void GenerateList( Int32 listLength) { Random rnd = new Random ( DateTime .Now.Millisecond); _generatedDigits.Clear(); for ( Int32 i = 0; i < listLength; ++i) { _generatedDigits.Add(rnd.Next().ToString()); } } public bool TestTryParse() { bool result = true ; Int32 outValue = 0; foreach ( String str in _generatedDigits) { result &= Int32 .TryParse(str, out outValue); } return (result); } public bool TestIndusCode() { bool result = true ; foreach ( String str in _generatedDigits) { for ( int i = 0; i < str.Length; i++) if ( char .IsDigit(str[i]) == false ) result = false ; } return (result); } public bool TestRegularExpression() { bool result = true ; foreach ( String str in _generatedDigits) { result &= Regex.IsMatch(str, @"^\d{0,}$" ); } return (result); } } * This source code was highlighted with Source Code Highlighter .
class TestClass { private List < String > _generatedDigits; public TestClass() { _generatedDigits = new List < string >(); } public void GenerateList( Int32 listLength) { Random rnd = new Random ( DateTime .Now.Millisecond); _generatedDigits.Clear(); for ( Int32 i = 0; i < listLength; ++i) { _generatedDigits.Add(rnd.Next().ToString()); } } public bool TestTryParse() { bool result = true ; Int32 outValue = 0; foreach ( String str in _generatedDigits) { result &= Int32 .TryParse(str, out outValue); } return (result); } public bool TestIndusCode() { bool result = true ; foreach ( String str in _generatedDigits) { for ( int i = 0; i < str.Length; i++) if ( char .IsDigit(str[i]) == false ) result = false ; } return (result); } public bool TestRegularExpression() { bool result = true ; foreach ( String str in _generatedDigits) { result &= Regex.IsMatch(str, @"^\d{0,}$" ); } return (result); } } * This source code was highlighted with Source Code Highlighter .
class TestClass { private List < String > _generatedDigits; public TestClass() { _generatedDigits = new List < string >(); } public void GenerateList( Int32 listLength) { Random rnd = new Random ( DateTime .Now.Millisecond); _generatedDigits.Clear(); for ( Int32 i = 0; i < listLength; ++i) { _generatedDigits.Add(rnd.Next().ToString()); } } public bool TestTryParse() { bool result = true ; Int32 outValue = 0; foreach ( String str in _generatedDigits) { result &= Int32 .TryParse(str, out outValue); } return (result); } public bool TestIndusCode() { bool result = true ; foreach ( String str in _generatedDigits) { for ( int i = 0; i < str.Length; i++) if ( char .IsDigit(str[i]) == false ) result = false ; } return (result); } public bool TestRegularExpression() { bool result = true ; foreach ( String str in _generatedDigits) { result &= Regex.IsMatch(str, @"^\d{0,}$" ); } return (result); } } * This source code was highlighted with Source Code Highlighter .
class TestClass { private List < String > _generatedDigits; public TestClass() { _generatedDigits = new List < string >(); } public void GenerateList( Int32 listLength) { Random rnd = new Random ( DateTime .Now.Millisecond); _generatedDigits.Clear(); for ( Int32 i = 0; i < listLength; ++i) { _generatedDigits.Add(rnd.Next().ToString()); } } public bool TestTryParse() { bool result = true ; Int32 outValue = 0; foreach ( String str in _generatedDigits) { result &= Int32 .TryParse(str, out outValue); } return (result); } public bool TestIndusCode() { bool result = true ; foreach ( String str in _generatedDigits) { for ( int i = 0; i < str.Length; i++) if ( char .IsDigit(str[i]) == false ) result = false ; } return (result); } public bool TestRegularExpression() { bool result = true ; foreach ( String str in _generatedDigits) { result &= Regex.IsMatch(str, @"^\d{0,}$" ); } return (result); } } * This source code was highlighted with Source Code Highlighter .
class TestClass { private List < String > _generatedDigits; public TestClass() { _generatedDigits = new List < string >(); } public void GenerateList( Int32 listLength) { Random rnd = new Random ( DateTime .Now.Millisecond); _generatedDigits.Clear(); for ( Int32 i = 0; i < listLength; ++i) { _generatedDigits.Add(rnd.Next().ToString()); } } public bool TestTryParse() { bool result = true ; Int32 outValue = 0; foreach ( String str in _generatedDigits) { result &= Int32 .TryParse(str, out outValue); } return (result); } public bool TestIndusCode() { bool result = true ; foreach ( String str in _generatedDigits) { for ( int i = 0; i < str.Length; i++) if ( char .IsDigit(str[i]) == false ) result = false ; } return (result); } public bool TestRegularExpression() { bool result = true ; foreach ( String str in _generatedDigits) { result &= Regex.IsMatch(str, @"^\d{0,}$" ); } return (result); } } * This source code was highlighted with Source Code Highlighter .
class TestClass { private List < String > _generatedDigits; public TestClass() { _generatedDigits = new List < string >(); } public void GenerateList( Int32 listLength) { Random rnd = new Random ( DateTime .Now.Millisecond); _generatedDigits.Clear(); for ( Int32 i = 0; i < listLength; ++i) { _generatedDigits.Add(rnd.Next().ToString()); } } public bool TestTryParse() { bool result = true ; Int32 outValue = 0; foreach ( String str in _generatedDigits) { result &= Int32 .TryParse(str, out outValue); } return (result); } public bool TestIndusCode() { bool result = true ; foreach ( String str in _generatedDigits) { for ( int i = 0; i < str.Length; i++) if ( char .IsDigit(str[i]) == false ) result = false ; } return (result); } public bool TestRegularExpression() { bool result = true ; foreach ( String str in _generatedDigits) { result &= Regex.IsMatch(str, @"^\d{0,}$" ); } return (result); } } * This source code was highlighted with Source Code Highlighter .
class TestClass { private List < String > _generatedDigits; public TestClass() { _generatedDigits = new List < string >(); } public void GenerateList( Int32 listLength) { Random rnd = new Random ( DateTime .Now.Millisecond); _generatedDigits.Clear(); for ( Int32 i = 0; i < listLength; ++i) { _generatedDigits.Add(rnd.Next().ToString()); } } public bool TestTryParse() { bool result = true ; Int32 outValue = 0; foreach ( String str in _generatedDigits) { result &= Int32 .TryParse(str, out outValue); } return (result); } public bool TestIndusCode() { bool result = true ; foreach ( String str in _generatedDigits) { for ( int i = 0; i < str.Length; i++) if ( char .IsDigit(str[i]) == false ) result = false ; } return (result); } public bool TestRegularExpression() { bool result = true ; foreach ( String str in _generatedDigits) { result &= Regex.IsMatch(str, @"^\d{0,}$" ); } return (result); } } * This source code was highlighted with Source Code Highlighter .
class TestClass { private List < String > _generatedDigits; public TestClass() { _generatedDigits = new List < string >(); } public void GenerateList( Int32 listLength) { Random rnd = new Random ( DateTime .Now.Millisecond); _generatedDigits.Clear(); for ( Int32 i = 0; i < listLength; ++i) { _generatedDigits.Add(rnd.Next().ToString()); } } public bool TestTryParse() { bool result = true ; Int32 outValue = 0; foreach ( String str in _generatedDigits) { result &= Int32 .TryParse(str, out outValue); } return (result); } public bool TestIndusCode() { bool result = true ; foreach ( String str in _generatedDigits) { for ( int i = 0; i < str.Length; i++) if ( char .IsDigit(str[i]) == false ) result = false ; } return (result); } public bool TestRegularExpression() { bool result = true ; foreach ( String str in _generatedDigits) { result &= Regex.IsMatch(str, @"^\d{0,}$" ); } return (result); } } * This source code was highlighted with Source Code Highlighter .
class TestClass { private List < String > _generatedDigits; public TestClass() { _generatedDigits = new List < string >(); } public void GenerateList( Int32 listLength) { Random rnd = new Random ( DateTime .Now.Millisecond); _generatedDigits.Clear(); for ( Int32 i = 0; i < listLength; ++i) { _generatedDigits.Add(rnd.Next().ToString()); } } public bool TestTryParse() { bool result = true ; Int32 outValue = 0; foreach ( String str in _generatedDigits) { result &= Int32 .TryParse(str, out outValue); } return (result); } public bool TestIndusCode() { bool result = true ; foreach ( String str in _generatedDigits) { for ( int i = 0; i < str.Length; i++) if ( char .IsDigit(str[i]) == false ) result = false ; } return (result); } public bool TestRegularExpression() { bool result = true ; foreach ( String str in _generatedDigits) { result &= Regex.IsMatch(str, @"^\d{0,}$" ); } return (result); } } * This source code was highlighted with Source Code Highlighter .
class TestClass { private List < String > _generatedDigits; public TestClass() { _generatedDigits = new List < string >(); } public void GenerateList( Int32 listLength) { Random rnd = new Random ( DateTime .Now.Millisecond); _generatedDigits.Clear(); for ( Int32 i = 0; i < listLength; ++i) { _generatedDigits.Add(rnd.Next().ToString()); } } public bool TestTryParse() { bool result = true ; Int32 outValue = 0; foreach ( String str in _generatedDigits) { result &= Int32 .TryParse(str, out outValue); } return (result); } public bool TestIndusCode() { bool result = true ; foreach ( String str in _generatedDigits) { for ( int i = 0; i < str.Length; i++) if ( char .IsDigit(str[i]) == false ) result = false ; } return (result); } public bool TestRegularExpression() { bool result = true ; foreach ( String str in _generatedDigits) { result &= Regex.IsMatch(str, @"^\d{0,}$" ); } return (result); } } * This source code was highlighted with Source Code Highlighter .
class TestClass { private List < String > _generatedDigits; public TestClass() { _generatedDigits = new List < string >(); } public void GenerateList( Int32 listLength) { Random rnd = new Random ( DateTime .Now.Millisecond); _generatedDigits.Clear(); for ( Int32 i = 0; i < listLength; ++i) { _generatedDigits.Add(rnd.Next().ToString()); } } public bool TestTryParse() { bool result = true ; Int32 outValue = 0; foreach ( String str in _generatedDigits) { result &= Int32 .TryParse(str, out outValue); } return (result); } public bool TestIndusCode() { bool result = true ; foreach ( String str in _generatedDigits) { for ( int i = 0; i < str.Length; i++) if ( char .IsDigit(str[i]) == false ) result = false ; } return (result); } public bool TestRegularExpression() { bool result = true ; foreach ( String str in _generatedDigits) { result &= Regex.IsMatch(str, @"^\d{0,}$" ); } return (result); } } * This source code was highlighted with Source Code Highlighter .
class TestClass { private List < String > _generatedDigits; public TestClass() { _generatedDigits = new List < string >(); } public void GenerateList( Int32 listLength) { Random rnd = new Random ( DateTime .Now.Millisecond); _generatedDigits.Clear(); for ( Int32 i = 0; i < listLength; ++i) { _generatedDigits.Add(rnd.Next().ToString()); } } public bool TestTryParse() { bool result = true ; Int32 outValue = 0; foreach ( String str in _generatedDigits) { result &= Int32 .TryParse(str, out outValue); } return (result); } public bool TestIndusCode() { bool result = true ; foreach ( String str in _generatedDigits) { for ( int i = 0; i < str.Length; i++) if ( char .IsDigit(str[i]) == false ) result = false ; } return (result); } public bool TestRegularExpression() { bool result = true ; foreach ( String str in _generatedDigits) { result &= Regex.IsMatch(str, @"^\d{0,}$" ); } return (result); } } * This source code was highlighted with Source Code Highlighter .
class TestClass { private List < String > _generatedDigits; public TestClass() { _generatedDigits = new List < string >(); } public void GenerateList( Int32 listLength) { Random rnd = new Random ( DateTime .Now.Millisecond); _generatedDigits.Clear(); for ( Int32 i = 0; i < listLength; ++i) { _generatedDigits.Add(rnd.Next().ToString()); } } public bool TestTryParse() { bool result = true ; Int32 outValue = 0; foreach ( String str in _generatedDigits) { result &= Int32 .TryParse(str, out outValue); } return (result); } public bool TestIndusCode() { bool result = true ; foreach ( String str in _generatedDigits) { for ( int i = 0; i < str.Length; i++) if ( char .IsDigit(str[i]) == false ) result = false ; } return (result); } public bool TestRegularExpression() { bool result = true ; foreach ( String str in _generatedDigits) { result &= Regex.IsMatch(str, @"^\d{0,}$" ); } return (result); } } * This source code was highlighted with Source Code Highlighter .
class TestClass { private List < String > _generatedDigits; public TestClass() { _generatedDigits = new List < string >(); } public void GenerateList( Int32 listLength) { Random rnd = new Random ( DateTime .Now.Millisecond); _generatedDigits.Clear(); for ( Int32 i = 0; i < listLength; ++i) { _generatedDigits.Add(rnd.Next().ToString()); } } public bool TestTryParse() { bool result = true ; Int32 outValue = 0; foreach ( String str in _generatedDigits) { result &= Int32 .TryParse(str, out outValue); } return (result); } public bool TestIndusCode() { bool result = true ; foreach ( String str in _generatedDigits) { for ( int i = 0; i < str.Length; i++) if ( char .IsDigit(str[i]) == false ) result = false ; } return (result); } public bool TestRegularExpression() { bool result = true ; foreach ( String str in _generatedDigits) { result &= Regex.IsMatch(str, @"^\d{0,}$" ); } return (result); } } * This source code was highlighted with Source Code Highlighter .
class TestClass { private List < String > _generatedDigits; public TestClass() { _generatedDigits = new List < string >(); } public void GenerateList( Int32 listLength) { Random rnd = new Random ( DateTime .Now.Millisecond); _generatedDigits.Clear(); for ( Int32 i = 0; i < listLength; ++i) { _generatedDigits.Add(rnd.Next().ToString()); } } public bool TestTryParse() { bool result = true ; Int32 outValue = 0; foreach ( String str in _generatedDigits) { result &= Int32 .TryParse(str, out outValue); } return (result); } public bool TestIndusCode() { bool result = true ; foreach ( String str in _generatedDigits) { for ( int i = 0; i < str.Length; i++) if ( char .IsDigit(str[i]) == false ) result = false ; } return (result); } public bool TestRegularExpression() { bool result = true ; foreach ( String str in _generatedDigits) { result &= Regex.IsMatch(str, @"^\d{0,}$" ); } return (result); } } * This source code was highlighted with Source Code Highlighter .
class TestClass { private List < String > _generatedDigits; public TestClass() { _generatedDigits = new List < string >(); } public void GenerateList( Int32 listLength) { Random rnd = new Random ( DateTime .Now.Millisecond); _generatedDigits.Clear(); for ( Int32 i = 0; i < listLength; ++i) { _generatedDigits.Add(rnd.Next().ToString()); } } public bool TestTryParse() { bool result = true ; Int32 outValue = 0; foreach ( String str in _generatedDigits) { result &= Int32 .TryParse(str, out outValue); } return (result); } public bool TestIndusCode() { bool result = true ; foreach ( String str in _generatedDigits) { for ( int i = 0; i < str.Length; i++) if ( char .IsDigit(str[i]) == false ) result = false ; } return (result); } public bool TestRegularExpression() { bool result = true ; foreach ( String str in _generatedDigits) { result &= Regex.IsMatch(str, @"^\d{0,}$" ); } return (result); } } * This source code was highlighted with Source Code Highlighter .
class TestClass { private List < String > _generatedDigits; public TestClass() { _generatedDigits = new List < string >(); } public void GenerateList( Int32 listLength) { Random rnd = new Random ( DateTime .Now.Millisecond); _generatedDigits.Clear(); for ( Int32 i = 0; i < listLength; ++i) { _generatedDigits.Add(rnd.Next().ToString()); } } public bool TestTryParse() { bool result = true ; Int32 outValue = 0; foreach ( String str in _generatedDigits) { result &= Int32 .TryParse(str, out outValue); } return (result); } public bool TestIndusCode() { bool result = true ; foreach ( String str in _generatedDigits) { for ( int i = 0; i < str.Length; i++) if ( char .IsDigit(str[i]) == false ) result = false ; } return (result); } public bool TestRegularExpression() { bool result = true ; foreach ( String str in _generatedDigits) { result &= Regex.IsMatch(str, @"^\d{0,}$" ); } return (result); } } * This source code was highlighted with Source Code Highlighter .
class TestClass { private List < String > _generatedDigits; public TestClass() { _generatedDigits = new List < string >(); } public void GenerateList( Int32 listLength) { Random rnd = new Random ( DateTime .Now.Millisecond); _generatedDigits.Clear(); for ( Int32 i = 0; i < listLength; ++i) { _generatedDigits.Add(rnd.Next().ToString()); } } public bool TestTryParse() { bool result = true ; Int32 outValue = 0; foreach ( String str in _generatedDigits) { result &= Int32 .TryParse(str, out outValue); } return (result); } public bool TestIndusCode() { bool result = true ; foreach ( String str in _generatedDigits) { for ( int i = 0; i < str.Length; i++) if ( char .IsDigit(str[i]) == false ) result = false ; } return (result); } public bool TestRegularExpression() { bool result = true ; foreach ( String str in _generatedDigits) { result &= Regex.IsMatch(str, @"^\d{0,}$" ); } return (result); } } * This source code was highlighted with Source Code Highlighter .
class TestClass { private List < String > _generatedDigits; public TestClass() { _generatedDigits = new List < string >(); } public void GenerateList( Int32 listLength) { Random rnd = new Random ( DateTime .Now.Millisecond); _generatedDigits.Clear(); for ( Int32 i = 0; i < listLength; ++i) { _generatedDigits.Add(rnd.Next().ToString()); } } public bool TestTryParse() { bool result = true ; Int32 outValue = 0; foreach ( String str in _generatedDigits) { result &= Int32 .TryParse(str, out outValue); } return (result); } public bool TestIndusCode() { bool result = true ; foreach ( String str in _generatedDigits) { for ( int i = 0; i < str.Length; i++) if ( char .IsDigit(str[i]) == false ) result = false ; } return (result); } public bool TestRegularExpression() { bool result = true ; foreach ( String str in _generatedDigits) { result &= Regex.IsMatch(str, @"^\d{0,}$" ); } return (result); } } * This source code was highlighted with Source Code Highlighter .
class TestClass { private List < String > _generatedDigits; public TestClass() { _generatedDigits = new List < string >(); } public void GenerateList( Int32 listLength) { Random rnd = new Random ( DateTime .Now.Millisecond); _generatedDigits.Clear(); for ( Int32 i = 0; i < listLength; ++i) { _generatedDigits.Add(rnd.Next().ToString()); } } public bool TestTryParse() { bool result = true ; Int32 outValue = 0; foreach ( String str in _generatedDigits) { result &= Int32 .TryParse(str, out outValue); } return (result); } public bool TestIndusCode() { bool result = true ; foreach ( String str in _generatedDigits) { for ( int i = 0; i < str.Length; i++) if ( char .IsDigit(str[i]) == false ) result = false ; } return (result); } public bool TestRegularExpression() { bool result = true ; foreach ( String str in _generatedDigits) { result &= Regex.IsMatch(str, @"^\d{0,}$" ); } return (result); } } * This source code was highlighted with Source Code Highlighter .
class TestClass { private List < String > _generatedDigits; public TestClass() { _generatedDigits = new List < string >(); } public void GenerateList( Int32 listLength) { Random rnd = new Random ( DateTime .Now.Millisecond); _generatedDigits.Clear(); for ( Int32 i = 0; i < listLength; ++i) { _generatedDigits.Add(rnd.Next().ToString()); } } public bool TestTryParse() { bool result = true ; Int32 outValue = 0; foreach ( String str in _generatedDigits) { result &= Int32 .TryParse(str, out outValue); } return (result); } public bool TestIndusCode() { bool result = true ; foreach ( String str in _generatedDigits) { for ( int i = 0; i < str.Length; i++) if ( char .IsDigit(str[i]) == false ) result = false ; } return (result); } public bool TestRegularExpression() { bool result = true ; foreach ( String str in _generatedDigits) { result &= Regex.IsMatch(str, @"^\d{0,}$" ); } return (result); } } * This source code was highlighted with Source Code Highlighter .
* This source code was highlighted with Source Code Highlighter .
- TestClass testClass = new TestClass ();
- testClass.GenerateList (10,000,000);
- Console .WriteLine (Environment.TickCount);
- testClass.TestTryParse ();
- Console .WriteLine (Environment.TickCount);
- testClass.TestIndusCode ();
- Console .WriteLine (Environment.TickCount);
- testClass.TestRegularExpression ();
- Console .WriteLine (Environment.TickCount);
C-style | TryParse | Regular expression | The number of processed items |
ten | O | sixteen | 10,000 |
15 | 32 | 203 | 100,000 |
125 | 312 | 1656 | 1,000,000 |
Source: https://habr.com/ru/post/47228/
All Articles