Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VB random file to MS SQL table
Message
De
28/03/2013 04:02:23
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
VB random file to MS SQL table
Versions des environnements
Environment:
C# 4.0
OS:
Windows XP SP2
Divers
Thread ID:
01569418
Message ID:
01569418
Vues:
33
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?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform