0.9.3 • Published 6 years ago

csharp-helpers v0.9.3

Weekly downloads
184
License
MIT
Repository
github
Last release
6 years ago

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
0.9.3

6 years ago

0.9.2

6 years ago

0.9.1

6 years ago

0.9.0

6 years ago

0.0.1

6 years ago