C#
ReSharper provides the following predefined file templates for commonly used C# declarations: classes, enumerations, interfaces,
and structs. See
Creating Files from Templates for details on using file templates.
| Template name |
Description |
Class
Go to top
|
Purpose Creates a new file in the current project containing an empty class.
namespace $NAMESPACE$
{
public class $CLASS$ {$END$}
}
Parameters
-
NAMESPACE - namespace that a new class belongs to (determined based on properties of the current project).
-
CLASS - name of a new class that a user enters in the Create: Class dialog box.
-
END - body of a new class (left empty when generating the class).
The caret is put in the position that allows you to immediately proceed with coding the class body.
|
Enum
Go to top
|
Purpose Creates a new file in the current project containing an empty enumeration.
namespace $NAMESPACE$
{
public enum $ENUM$ {$END$}
}
Parameters
-
NAMESPACE - namespace that a new enumeration belongs to (determined based on properties of the current project).
-
ENUM - name of a new enumeration that a user enters in the Create: Enum dialog box.
-
END - body of a new enumeration (left empty when generating the enumeration).
The caret is put in the position that allows you to immediately proceed with coding the enumeration body.
|
Interface
Go to top
|
Purpose Creates a new file in the current project containing an empty interface.
namespace $NAMESPACE$
{
public interface $INTERFACE$ {$END$}
}
Parameters
-
NAMESPACE - namespace that a new interface belongs to (determined based on properties of the current project).
-
INTERFACE - name of a new interface that a user enters in the Create: Interface dialog box.
-
END - body of a new interface (left empty when generating the interface).
The caret is put in the position that allows you to immediately proceed with coding the interface body.
|
Struct
Go to top
|
Purpose Creates a new file in the current project containing an empty struct.
namespace $NAMESPACE$
{
public struct $STRUCT$ {$END$}
}
Parameters
-
NAMESPACE - namespace that a new struct belongs to (determined based on properties of the current project).
-
STRUCT - name of a new struct that a user enters in the Create: Struct dialog box.
-
END - body of a new struct (left empty when generating the struct).
The caret is put in the position that allows you to immediately proceed with coding the struct body.
|