Find Jobs
Hire Freelancers

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

$10-30 USD

Completed
Posted over 7 years ago

$10-30 USD

Paid on delivery
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); } }
Project ID: 11891088

About the project

12 proposals
Remote project
Active 8 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
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 in 1 day
5.0 (1 review)
0.4
0.4
12 freelancers are bidding on average $24 USD for this job
User Avatar
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 in 3 days
4.9 (42 reviews)
5.9
5.9
User Avatar
Hello, I'm interested to work on this. please message me. Thanks
$15 USD in 1 day
4.9 (63 reviews)
5.7
5.7
User Avatar
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, Hasan Jack
$15 USD in 1 day
4.7 (6 reviews)
4.2
4.2
User Avatar
A proposal has not yet been provided
$30 USD in 1 day
5.0 (14 reviews)
4.0
4.0
User Avatar
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 in 0 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
Bonita Springs, United States
5.0
143
Payment method verified
Member since Oct 25, 2004

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.