By registering with us, you'll be able to discuss, share and private message with other members of our community.
SignUp Now!What are the pros and cons of learning C# instead of another C / +
List<string>
or List<int>
.new T()
possible which helps writing more generic code.// The "where" restricts T to types that provide
// a parameterless constructor, to prove to the C#
// compiler that "new T()" can work.
public T Make<T>() where T : new() {
return new T();
}
async
/await
for asynchronous programmingevent
and delegate
ref
, in
, out
)struct
is on the stack, class
is on the heap)fixed
), manual memory allocations (stackalloc
), and unsafe operations if you need them.Do the other Cs support asynchronous methods/functions? If so, is it a lot harder to implement them?
Code Forum is a community platform where coding enthusiasts can connect with other developers, engage in discussions, ask for help, and share their knowledge with a supportive community. It's a perfect place to improve your coding skills and to find a community of like-minded individuals who share your passion for coding.
We use essential cookies to make this site work, and optional cookies to enhance your experience.