[Mono-dev] [PATCH] Small fix for CSharpCodegenerator
Gert Driesen
gert.driesen at telenet.be
Thu Jun 19 14:41:49 EDT 2008
Antik,
I know the generated code does not look good, but it actually matches the
output of MS. In general, the formatting of generated code it not much of
interest since one does not tend to change it anyway.
Having our generated code exactly match that MS makes our it easier to
create tests, so I'd prefer to keep it this way.
Gert
-----Original Message-----
From: mono-devel-list-bounces at lists.ximian.com
[mailto:mono-devel-list-bounces at lists.ximian.com] On Behalf Of Ankit Jain
Sent: donderdag 19 juni 2008 18:50
To: mono-devel-list at lists.ximian.com
Subject: [Mono-dev] [PATCH] Small fix for CSharpCodegenerator
A newline is emitted for every type parameter, even if it doesn't have any
constraint defined, which results in :
------------
public string GenericAbc<T, U>(T t, U u)
{
throw new NotImplementedException();
}
------------
See the extra lines between the first line and the open brace.
Ok to commit?
-Ankit
--
Walt Disney - "I love Mickey Mouse more than any woman I have ever known."
More information about the Mono-devel-list
mailing list