locked
User defined Data type in C#.net RRS feed

  • Question

  • User-728864577 posted

    Dear all friends,

             I would like to know how to define user defined data type/ custom defined data type in C#.net. In C++, we can use typedef keyword for custom defined data type. But I don't know, what keyword should I use in C#.net.

    Thanks and waiting for any your answer

    Arli

    Wednesday, January 2, 2013 2:27 AM

Answers

  • User226262986 posted

    Hi check the following link:

    http://forums.asp.net/t/1331122.aspx/1

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, January 2, 2013 2:35 AM
  • User-166373564 posted

    Hi Su Mon

     I would like to know how to define user defined data type/ custom defined data type in C#.net.

    As you know, there is no equivalent typedef keyword in C#, but you could try this workaround, <o:p></o:p>

    create your own struct/class and round the value in the constructor,<o:p></o:p>

    For reference here,

    hope it helps you,

    Kind regards

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, January 3, 2013 9:52 PM

All replies

  • User226262986 posted

    Hi check the following link:

    http://forums.asp.net/t/1331122.aspx/1

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, January 2, 2013 2:35 AM
  • User-166373564 posted

    Hi Su Mon

     I would like to know how to define user defined data type/ custom defined data type in C#.net.

    As you know, there is no equivalent typedef keyword in C#, but you could try this workaround, <o:p></o:p>

    create your own struct/class and round the value in the constructor,<o:p></o:p>

    For reference here,

    hope it helps you,

    Kind regards

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, January 3, 2013 9:52 PM