From a72f5aa166df2c976dfce40310d0882db33a461e Mon Sep 17 00:00:00 2001 From: eiffel-org Date: Mon, 2 Oct 2023 13:38:24 +0000 Subject: [PATCH] Updated wikipage Workaround Eiffel .NET limitations. (Signed-off-by:jocelyn). git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@2441 abb3cda0-5349-4a8f-a601-0c33ac3a8c38 --- .../Workaround-Eiffel-.NET-limitations.wiki | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/documentation/23.09/solutions/dotnet/eiffel-net-language/eiffel-net-integration/Workaround-Eiffel-.NET-limitations.wiki b/documentation/23.09/solutions/dotnet/eiffel-net-language/eiffel-net-integration/Workaround-Eiffel-.NET-limitations.wiki index fd912042..c9736207 100644 --- a/documentation/23.09/solutions/dotnet/eiffel-net-language/eiffel-net-integration/Workaround-Eiffel-.NET-limitations.wiki +++ b/documentation/23.09/solutions/dotnet/eiffel-net-language/eiffel-net-integration/Workaround-Eiffel-.NET-limitations.wiki @@ -1,10 +1,17 @@ -[[Property:modification_date|Mon, 02 Oct 2023 11:38:46 GMT]] +[[Property:modification_date|Mon, 02 Oct 2023 13:38:24 GMT]] [[Property:publication_date|Mon, 02 Oct 2023 10:22:20 GMT]] [[Property:uuid|AF5801CA-928B-4870-BCC4-53DCAB23AF96]] [[Property:weight|10]] [[Property:title|Workaround Eiffel .NET limitations]] [[Property:link_title|Workarounds]] +There are a [[Eiffel for .NET Integration|few limitations]] in the integration between Eiffel .NET and .NET solution. +However, it is sometime possible to find workaround, a common technique is to use a C# facade project, and use it from the Eiffel .NET project. + +See in the following section, a way to use a facade C# project to workaround the current limitation on ".NET generic" compilation (i.e the fact the Eiffel compiler does not support yet the .NET generics). + +This technique can be adapted to bypass other limitations or annoyances. + ==Using generic .NET classes through a facade== Currently, Eiffel does not support consuming generics from C# classes. This tutorial demonstrates a workaround for this limitation by creating a Facade for a `List` in C# @@ -67,5 +74,7 @@ Open the Eiffel configuration file (.ecf) of your project and add the following ===Conclusion=== By creating a Facade for a `List` in C#, we can effectively consume C# generic features in Eiffel. -This approach can be extended to other generic types as well. +Obviously, this approach can be extended to other generic types as well. + +