Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 893 Bytes

README.md

File metadata and controls

35 lines (25 loc) · 893 Bytes

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.