How to know whether a type is Value type or Reference type?

Just starting to learning C# for Grasshopper, the type difference troubles me. Is there somewhere in RhinoCommon API to show whether a type is Value type or Reference type? @c#

Structs are value types, whereas Classes are reference types.

Thank you, that is useful!

---- Replied Message ----

From | Mahdiyar via McNeel Forumnotifications@mcneel.discoursemail.com |

  • | - |
    Date | 12/15/2023 11:45 |
    To | wangdongao_wda@163.com |
    Cc | |
    Subject | [McNeel Forum] [Scripting] How to know whether a type is Value type or Reference type? |

| Mahdiyar
December 15 |

  • | - |

Structs are value types, whereas Classes are reference types.