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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.9.35,141latest

Version History

VersionDownloads (Last 7 Days)Published
0.9.35,141
0.9.20
0.9.10
0.9.00
0.0.10

Package Sidebar

Install

npm i csharp-helpers

Weekly Downloads

5,141

Version

0.9.3

License

MIT

Unpacked Size

21.1 kB

Total Files

15

Last publish

Collaborators

  • nothrow