public ReferenceFormatter(CerasSerializer ceras) { _ceras = ceras; _typeFormatter = (TypeFormatter)ceras.GetSpecificFormatter(typeof(Type)); _allowReferences = _ceras.Config.PreserveReferences; }
public ReferenceFormatter(CerasSerializer serializer) { _serializer = serializer; _typeFormatter = (TypeFormatter)serializer.GetSpecificFormatter(typeof(Type)); _allowReferences = _serializer.Config.PreserveReferences; }
public ReferenceFormatter(CerasSerializer ceras) { _ceras = ceras; if (typeof(T).IsStatic()) { throw new InvalidOperationException("static"); } _typeFormatter = (TypeFormatter)ceras.GetSpecificFormatter(typeof(Type)); _allowReferences = _ceras.Config.PreserveReferences; }
public ReferenceFormatter(CerasSerializer serializer) { _serializer = serializer; _typeFormatter = (TypeFormatter)serializer.GetSpecificFormatter(typeof(Type)); }