struct MyStruct : int
{
.../...
}
The MSDN states that after the : is the list of the implemented interfaces, but intis quite a curious interface to me…
Is it maybe a way to define the size of the struct? Someting like a bitfield?
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.
It is illegal and means nothing whatsoever.
However! If by
intyou mean “an interface”, then it means: “this is a value-type that implements an interface”You can’t, however, have an interface called
int, sinceintis a reserved keyword. You would have to refer to that as@intin the C#.