csharp-helpers
TypeScript icon, indicating that this package has built-in type declarations

0.9.3 • Public • Published

csharp-helpers

Some helper methods I find useful for interaction between C# and JavaScript

Installation

npm install csharp-helpers --save

Usage

parseAssemblyQualifiedName

Parses C#'s typeof().FullName Assembly Qualified Name to something readable by machine.

import { parseAssemblyQualifiedName } from 'csharp-helpers';
console.log(test('System.IEnumerable`1[[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]'))
Output is 
{
    namespace: "System",
    typeName: "IEnumerable",
    assembly: undefined,
    templateParameters: [{
        namespace: "System",
        typeName: "Int32",
        assembly: "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089",
        templateParameters: undefined
    }]
}

Test

npm run test

Readme

Keywords

none

Package Sidebar

Install

npm i csharp-helpers

Weekly Downloads

697

Version

0.9.3

License

MIT

Unpacked Size

21.1 kB

Total Files

15

Last publish

Collaborators

  • nothrow