# C# Libraries for Canonical APIs

**URL:** <https://discourse.openehr.org/t/c-libraries-for-canonical-apis/5050>\
**Category:** Integration\
**Created:** [26 March 2024 12:14 UTC](https://discourse.openehr.org/t/c-libraries-for-canonical-apis/5050 "2024-03-26T12:14:19Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![borut.jures](https://discourse.openehr.org/user_avatar/discourse.openehr.org/borut.jures/32/1391_2.png) [@borut.jures](https://discourse.openehr.org/u/borut.jures)\
**Post date:** [18 April 2024 17:48 UTC](https://discourse.openehr.org/t/c-libraries-for-canonical-apis/5050/5 "2024-04-18T17:48:03Z")

</div>

In the past I’ve spent more time explaining how “easy” it is to add a C# generator than it took me to write one 😊

Here are the C# classes for RM 1.0.3 (rename the extension `.md` to `.zip`):

[openehr\_csharp\_models\_rm103.md](https://discourse.openehr.org/uploads/short-url/39rdWk3Ms36VLvvy5FTZzFecf1V.md) (210.9 KB)

@johnmeredith @DanielBaumert Would something like this be useful for your .NET / C# implementation?

There is only one serious error for `DV_INTERVAL` class but maybe somebody who uses C# might help me figure it out.

I would need to add serialization/deserialization but have to [learn how it is done in C#](https://learn.microsoft.com/en-us/dotnet/standard/serialization/) – it looks “easier” than in Java 🤔  
EDIT: done (file above updated with the new version)

After generators for Dart, Java and C#, should I add one for Kotlin too? Or TypeScript?  
EDIT: [TypeScript](https://discourse.openehr.org/t/typescript-library-for-am-rm-opts/5131)

---

_[View the full topic](https://discourse.openehr.org/t/c-libraries-for-canonical-apis/5050)._
