Is it possible to make an alias on unsafe pointer type, i.e. I wanna use following: using bytePtr = System.Byte*.
Will .net developers introduce this feature in future versions (alias to pointer and array types)?
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.
No, it isn’t.
And if it was, the syntax would have been:
but again: no, you can’t do that. A
usingalias can not be to a pointer.Also,
byte*is both shorter and clearer thanBytePtr, IMO.