I’m using the following statement in Java:
Arrays.fill(mynewArray, oldArray.Length, size, -1);
Please suggest the C# equivalent.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I don’t know of anything in the framework which does that, but it’s easy enough to implement:
Or if you want to specify the count instead of the start/end: