21 namespace Deveel.Data.Serialization {
26 container =
new Container();
38 protected abstract void Init();
40 protected void Register<TObject, TSerializer>()
42 var typeName = typeof (TObject).FullName;
47 if (objectType == null)
48 throw new ArgumentNullException(
"objectType");
50 var typeName = objectType.FullName;
51 return container.Resolve<
IObjectSerializer>(typeName, IfUnresolved.ReturnDefault);
56 GC.SuppressFinalize(
this);
59 protected virtual void Dispose(
bool disposing) {
61 if (container != null)
ObjectSerializerProvider()
virtual void Dispose(bool disposing)
IObjectSerializer ResolveSerializer(Type objectType)
~ObjectSerializerProvider()