What does the "<" statement do?

M

Mike Hamilton

Hi newsgroup,

I have a C# code that I tried to convert to VB.NET using a snippet
converter.
The converter produced something I don't understand, namely:

<Config("Camera", "cameraType")> _
Shared cameraType As CameraType

What does the "<" statement do, please?

Thanks
Mike

C#:

public class ActionGameWindow : GameWindow
{
enum CameraType
{
FPS,
TPS,
Free,

Count,
}
[Config( "Camera", "cameraType" )]
static CameraType cameraType;

[Config( "Camera", "tpsCameraDistance" )]
static float tpsCameraDistance = 4;
[Config( "Camera", "tpsCameraCenterOffset" )]
static float tpsCameraCenterOffset = 1.6f;

is being translated to:

VB.NET:

Public Class ActionGameWindow
Inherits GameWindow
Private Enum CameraType
FPS
TPS
Free

Count
End Enum
<Config("Camera", "cameraType")> _
Shared cameraType As CameraType

<Config("Camera", "tpsCameraDistance")> _
Shared tpsCameraDistance As Single = 4
<Config("Camera", "tpsCameraCenterOffset")> _
Shared tpsCameraCenterOffset As Single = 1.6F
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top