You may want to create a C# library and do most of the work there, rather then using blob API directly from X++. The .NET Interop from X++ has a plenty of limitations, such as a very limited support for generics.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.