[Mono-list] templates for Public Fields

Dietmar Maurer dietmar@ximian.com
20 Apr 2002 22:30:17 +0200


On Sat, 2002-04-20 at 22:09, Daniel Carrera wrote:
> How do you make a template for "Public Fields"?  Are those like
> properties? like methods?
> 
> If the documentation says:
> 
> [C#] public const int DefaultItemHeight;
> 
> 
> Would the template be:
> 
> 	public const int DefaultItemHeight()
> 	{
> 		throw NotImplementedException()
> 	}

no - fields are instance variables. Simply use:

public const int DefaultItemHeight;

- Dietmar