Hey,
I noticed that I have been using var instead of string, int etc. in delegates due to a habit from another language where they were cleared after, and it just makes a temporary value for the class only, and once it has executed, is deleted.
Is this the same in C#, or can I just use string or int etc?
Which is better?
Thanks.
bbman 12 Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.