Mercurial > pub > bltoolkit
diff Tools/DocGen/Content/Doc/Aspects/NotNull.cs @ 0:f990fcb411a9
Копия текущей версии из github
author | cin |
---|---|
date | Thu, 27 Mar 2014 21:46:09 +0400 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Tools/DocGen/Content/Doc/Aspects/NotNull.cs Thu Mar 27 21:46:09 2014 +0400 @@ -0,0 +1,24 @@ +[BLToolkitGenerated] +public sealed class TestObject : NotNullTest.TestObject +{ + public override void Foo1(string str1, string str2, string str3) + { + if (str2 == null) throw new ArgumentNullException("str2"); + + base.Foo1(str1, str2, str3); + } + + public override void Foo2(string str1, string str2, string str3) + { + if (str2 == null) throw new ArgumentNullException("str2", "Null"); + + base.Foo2(str1, str2, str3); + } + + public override void Foo3(string str1, string str2, string str3) + { + if (str2 == null) throw new ArgumentNullException("str2", "Null: str2"); + + base.Foo3(str1, str2, str3); + } +}