Skip to content

Marthyi/Oml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Welcome to Oml Packages project

Oml.Resources

  • 100% code coverage
  • Access easily to your embedded resources.

Read binary content

	Stream stream = EmbeddedResources.ReadAsStream(CurrentAssembly, "file.zip");

Read text content

	string text = EmbeddedResources.ReadAsText(CurrentAssembly, "file.csv");

Oml.Memory

  • 100% code coverage
  • Access easily to your embedded resources.

Example

var collection.Add(new User("sean", "paul"));
var collection.Add(new User("sean", "connery"));
var collection.Add(new User("sean", "penn"));

	 collection.OptimizeStringMemory();

// memory is reduced from 3 instance to only one in GC for the firsname (sean).

It removes from memory all duplicated string properties and string fields from collection. string object is immutable so we can point to the same string value from all objects.