diff options
author | Marek Safar <marek.safar@gmail.com> | 2008-12-19 18:02:59 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2008-12-19 18:02:59 +0300 |
commit | a57ea8054f9aa8d23cc011720f32a36321d97b0c (patch) | |
tree | eb94a4bc1301aa2f499310c4790b591028d22742 /mcs/tests/gtest-398.cs | |
parent | 3c666ed0337fc5bbbbb5ec6322826573d5509297 (diff) |
Set svn:eol-style
svn path=/trunk/mcs/; revision=121849
Diffstat (limited to 'mcs/tests/gtest-398.cs')
-rw-r--r-- | mcs/tests/gtest-398.cs | 82 |
1 files changed, 41 insertions, 41 deletions
diff --git a/mcs/tests/gtest-398.cs b/mcs/tests/gtest-398.cs index 626c5a7fd90..90a45ca38ee 100644 --- a/mcs/tests/gtest-398.cs +++ b/mcs/tests/gtest-398.cs @@ -1,41 +1,41 @@ -using System;
-
-
-public interface IFace
-{
- void Tst (IFace b);
-}
-
-public delegate string ToStr (string format, IFormatProvider format_provider);
-
-
-public class GenericClass<T> where T : IFormattable
-{
- T field;
-
- public GenericClass (T t)
- {
- this.field = t;
- }
-
- public void Method ()
- {
- ToStr str = new ToStr (field.ToString);
-
- Console.WriteLine (str ("x", null));
- }
-
- public void Test (T t) { }
-}
-
-
-
-public class Foo
-{
- public static void Main (string [] args)
- {
- GenericClass<int> example = new GenericClass<int> (99);
- example.Method ();
- }
-}
-
+using System; + + +public interface IFace +{ + void Tst (IFace b); +} + +public delegate string ToStr (string format, IFormatProvider format_provider); + + +public class GenericClass<T> where T : IFormattable +{ + T field; + + public GenericClass (T t) + { + this.field = t; + } + + public void Method () + { + ToStr str = new ToStr (field.ToString); + + Console.WriteLine (str ("x", null)); + } + + public void Test (T t) { } +} + + + +public class Foo +{ + public static void Main (string [] args) + { + GenericClass<int> example = new GenericClass<int> (99); + example.Method (); + } +} + |