Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VB random file to MS SQL table
Message
From
28/03/2013 04:02:23
 
 
To
All
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
VB random file to MS SQL table
Environment versions
Environment:
C# 4.0
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01569418
Message ID:
01569418
Views:
32
I'd like to convert a VB random file to an MSSQL table.
I found a code snippet which does the job but there are bits I dont understand.
Like this below:
public struct Product
{
	public int ID;
	[VBFixedString(25)]
	public string ProductName;
	[VBFixedString(25)]
	public string ProductType;
 
	public Product(int new_id, string product_name, string product_type) : this()
	{
		ID = new_id;
		ProductName = product_name;
		ProductType = product_type;
	}
}
What does [VBFixedString(25)] do in front of the variables?
Next
Reply
Map
View

Click here to load this message in the networking platform