Skip to content

alaabenfatma/TinySerializer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TinySerializer

TinySerializer is a .NET objects serializer. It is written in approx. 80 lines of code only. The main goal of this basic serializer is to demonstrate the basic functionalities of a de/serializer.

Implementation

code:

        private class Pet
        {
            public string Type { get; set; }
            public string Name { get; set; }
            public string Age { get; set; }
            public double Weight { get; set; }
        }
        /*
        Input :
        Type = Dragon
        Name = SkyCloud
        Age = 9200 years
        Weight = 9562.6500
        */

Generated code:

<?
[Type=Dragon]
[Name=SkyCloud]
[Age=9200 year]
[Weight=9562.6500]
?>

Notes

  • This serializer may possibly be the tiniest serializer around.
  • It is basic; basic as heck.
  • It does not support arrays/collections of objects. However, workarounds can be implemented to perform such a feat manually.

About

TinySerializer is a basic .NET objects de/serializer.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages