Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8276495
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T08:23:31+00:00 2026-06-08T08:23:31+00:00

struct MyStruct : int { …/… } The MSDN states that after the :

  • 0
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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T08:23:33+00:00Added an answer on June 8, 2026 at 8:23 am

    It is illegal and means nothing whatsoever.

    Error 5 Type ‘int’ in interface list is not an interface redacted\Program.cs 13 23 ConsoleApplication9

    However! If by int you mean “an interface”, then it means: “this is a value-type that implements an interface”

    You can’t, however, have an interface called int, since int is a reserved keyword. You would have to refer to that as @int in the C#.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a structure: struct mystruct { int* pointer; }; structure mystruct* struct_inst; Now
Code to illustrate : public struct MyStruct { public int SomeNumber; } public string
I have a struct, MyStruct , that has a private member private bool[] boolArray;
I'm having a brain cramp: struct MyStruct { int x; ... inline int getX1()
I currently have the following code in my program: struct mystruct { int x;
Consider a structure to serialize: struct MyStruct { int a; std::string b; template<class Archive>
Having something like the following code (simplified): struct MyStruct { int member1; int member2;
Consider the following example: struct MyStruct { int a; int b; }; I can
consider the following code:- struct mystruct { int data; struct mystruct *next; }; void
if I have a struct say: struct myStruct { int someInt; flot someFloat; }

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.