Skip to content

thickey/transit-csharp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

transit-csharp

Build status NuGet version NuGet downloads

Transit is a data format and a set of libraries for conveying values between applications written in different languages. This library provides support for marshalling Transit data to/from C#.

This implementation's major.minor version number corresponds to the version of the Transit specification it supports.

JSON and JSON-Verbose are implemented, but more tests need to be written. MessagePack is not implemented yet.

NOTE: Transit is a work in progress and may evolve based on feedback. As a result, while Transit is a great option for transferring data between applications, it should not yet be used for storing data durably over time. This recommendation will change when the specification is complete.

Releases and Dependency Information

  • Latest release: NuGet version

This is a Portable Class Library with the following targets:

  • .NET Framework 4.5
  • Windows 8
  • Windows Phone 8.1

Usage

Default Type Mapping

Transit type Write accepts Read returns
null null null
string System.String System.String
boolean System.Boolean System.Boolean
integer System.Byte, System.Int16, System.Int32, System.Int64 System.Int64
decimal System.Single, System.Double System.Double
keyword NForza.Transit.IKeyword NForza.Transit.IKeyword
symbol NForza.Transit.ISymbol NForza.Transit.ISymbol
big decimal not implemented NForza.Transit.Numerics.BigRational
big integer System.Numerics.BigInteger System.Numerics.BigInteger
time System.DateTime System.DateTime
uri System.Uri System.Uri
uuid System.Guid System.Guid
char System.Char System.Char
array T[], System.Collections.Generic.IList<> System.Collections.Generic.IList
list System.Collections.Generic.IEnumerable<> System.Collections.Generic.IEnumerable
set System.Collections.Generic.ISet<> System.Collections.Generic.ISet
map System.Collections.Generic.IDictionary<,> System.Collections.Generic.IDictionary<object, object>
link NForza.Transit.ILink NForza.Transit.ILink
ratio + NForza.Transit.IRatio NForza.Transit.IRatio

+ Extension type

Layered Implementations

Copyright and License

Copyright © 2014 NForza.

This library is a C# port of the Java version created and maintained by Cognitect, therefore

Copyright © 2014 Cognitect

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

.NET implementation of the Transit format in C#

Resources

License

Stars

Watchers

Forks

Packages

No packages published