Declaring custom base types

  • Thread starter Thread starter Ray Booysen
  • Start date Start date
R

Ray Booysen

Hi all

I was wondering if C# allowed you to declare your own types similiar to
int, double etc...

I'm wanting to declare my own data type such as this.

Is this possible?

Regards
Ray
 
I realise this. But I need the funcionality like a base type.

For example with an int, I can do:

int _a = 5 + 3;

I need to replicate this behaviour. My type I'm wanting to create is
pretty much a constrained wrapper of double.

Regards
Ray
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top