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 8492389
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T22:42:16+00:00 2026-06-10T22:42:16+00:00

That was just a test I tried. I want to make a type which

  • 0

That was just a test I tried. I want to make a type which behaves exactly like int. I tried to make a proxy type like this:

class myint : int { }

but then myint won’t be value type. Is there a way to create a proxy type of int?

P.S. I know about extension methods.

  • 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-10T22:42:18+00:00Added an answer on June 10, 2026 at 10:42 pm

    Value types can only implement interfaces – you can’t inherit from another value type.

    So, you can’t inherit from int.

    You can wrap an int in a class/struct as a field.

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

Sidebar

Related Questions

I have this test code that just saves an XML file to a folder.
I have a very simple unit test that just allocates a lot of Strings:
Is it just to test compile a simple program, with that header file #included
I've tried using Sleep but that just froze the program. Is it messing up
Wordpress 3.0 just came out and it was cited that one can make a
So I made the following test for a class Board that would to be
I have some strings like this: i: 11;a:5: {s:2:id;s:4:1097;s:5:iName;s:12:Ovo de Andre;s:10:dropChance;s:4:2000;s:4:type; i:1;s:5: kName; s:12:
So I have a set of data that can look like this (sample line-by-line):
I have a function in a module that looks something like this: module MyLibrary
I want to make an application in javaFX 2 which opens as a smaller

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.