Giter Club home page Giter Club logo

sekvap-dotnet's People

Contributors

dependabot[bot] avatar sandrock avatar

Stargazers

 avatar

Watchers

 avatar  avatar

sekvap-dotnet's Issues

Consider adding singleton instances

As SekvapLanguage does not maintain a state related to the data it processes, we can create a singleton instance. This would avoid declaring/creating too many instances in our apps.

These two static instances would help a lot:

SekvapLanguage.Default = new SekvapLanguage();
SekvapLanguage.TrimAllWhispaces = new SekvapLanguage()
{
    TrimKeyStart = true, TrimKeyEnd = true,
    TrimValueStart = true, TrimValueEnd = true,
};

Optional whitespace trimming of keys and values

Consider the following data strings:

Key1=Value...1;Key2=Valu  ;Key3=X
Key1=Value1;   Key2=Value2;Key3=X

The user may use whitespaces to align keys and values. Consider adding three 4 properties to the parser in order to trim these characters.

bool TrimKeyLeft
bool TrimKeyRight
bool TrimValueLeft
bool TrimValueRight

The `Value=` should not be serialized (enumerable data)

These unit tests are bugged:

  • SerializeEnumerableMethod.SerializeEnumerableMethod
  • SerializeEnumerableMethod.Value_Item
  • SerializeEnumerableMethod.Value_Item_Value

And the implementation is wrong.

This assert type: Assert.Equal("Hello;Foo=Bar;Value=Yop", result); fails.
We get "Value=Hello;Foo=Bar;Value=Yop"

Multi-framework build

Current build targets Profile344 (portable-net45+sl5+win8+wpa81+wp8).

Microsoft indicates:

PCLs are not recommended. Although PCLs are supported, package authors should support netstandard instead. The .NET Platform Standard is an evolution of PCLs and represents binary portability across platforms using a single moniker that isn't tied to a static library like portable-a+b+c monikers.

Support for Silverlight and Windows Phone may be dropped. A net40 + netstandard2.0 seems fine.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.