Виконано

Cleanup c# code to read in a very simple data file

I have some c# code I am looking to have cleaned up / simplified. All this code needs to do is read some values into a a simple data structure. Looking for best practice on naming conventions etc. Data file attached.

public struct defbulk

{

public string Description;

public float Density;

public float Repose;

public float Abrasive;

public static defbulk CreateInstance()

{

defbulk result = new defbulk();

[login to view URL] = [login to view URL];

return result;

}

}

internal static void LoadMaterial()

{

int i = 0, count = 0;

string a = "";

try

{

[login to view URL](1, [login to view URL]([login to view URL]) + "\\[login to view URL]", [login to view URL], [login to view URL], [login to view URL], -1);

[login to view URL](1, ref count);

bulk = new defbulk[count];

[login to view URL] = new string[count];

for (i = 0; i < count; i++)

{

[login to view URL](1, ref bulk[i].Description);

[login to view URL](1, ref a);

bulk[i].Density = (float) [login to view URL](a);

[login to view URL](1, ref a);

bulk[i].Repose = (float) [login to view URL](a);

}

[login to view URL](1);

}

catch

{

string msg = "";

msg = [login to view URL]([login to view URL]) + "\\[login to view URL]" + " could not be found or is corrupt. This must be corrected for the program to load. Please contact HT for assistance.";

[login to view URL](msg, [login to view URL]);

[login to view URL](0);

}

}

Навички: Програмування на C#

Деталі: software write mq4, software write chip epson, useful software write book, c# programming, software write web specs, free software write user guide, software write edid, free software write company profile, simple read text file, read data file bbx vbnet, php code store data file, using xml file data provider flex read caption, sample script read data file, software write websites idea, simple file progam read count lines, simple read file programme, software write book images, software write books, python read input data file, software write protection

Про роботодавця:
( 138 відгуки(-ів) ) Bonita Springs, United States

ID Проекту: #11891088

Доручено:

JPGalaverna

I have over than five years experience with code engineering and development support, specially working with file management. If you allow me, I can deliver exactly what you expect.

$15 USD за 1 день
(1 відгук)
0.4

13 фрілансерів(-и) у середньому готові виконати цю роботу за $27

Gates777

Hello I am very interested in your project. I am an expert in C#, php, asp.net, web scraping, web automation, selenium and others. I checked your requirement and ready to start to work this job. If you contact me, i Більше

$55 USD за 1 день
(79 відгуків(и))
6.4
$24 USD за 1 день
(30 відгуків(и))
6.0
$25 USD за 1 день
(52 відгуків(и))
6.0
manhpham

My name is Manh from Vietnam. I read your project details and I am sure I can complete your [login to view URL] we can chat/discuss further on your project?

$25 USD за 1 день
(54 відгуків(и))
5.6
sheikDev

Hello, I'm interested to work on this. please message me. Thanks

$15 USD за 1 день
(56 відгуків(и))
5.6
khp31

Sr. Software Developer having 7 years experience. Sr. Software Developer having 7 years experience. Sr. Software Developer having 7 years experience. Sr. Software Developer having 7 years experience.

$66 USD за 3 дні(-в)
(33 відгуків(и))
5.3
hasanjack

Hi sir I am Hasan Jack and I have more than 5 years of experience in C# Development. As because of my prior experience I really feel I can be best choice for this job. Looking forward to hear from you. Regards, Більше

$15 USD за 1 день
(6 відгуків(и))
4.3
johnosullivan

A proposal has not yet been provided

$30 USD за 1 день
(14 відгуків(и))
4.0
$25 USD за 1 день
(0 відгуків(и))
0.0
$15 USD за 2 дні(-в)
(0 відгуків(и))
0.0
hammad143

Hi, I'm a C# developer you can see some of my work no my profile. I can do this job right now. If you select me I'll write you a very clean and commented code. Let's start if you wish :)

$20 USD за 0 дні(-в)
(0 відгуків(и))
0.0
$15 USD за 1 день
(1 відгук)
0.0