Declaring custom base types

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
 
R

Ray Booysen

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

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top