Example #1
0
        public ReferenceFormatter(CerasSerializer ceras)
        {
            _ceras = ceras;

            _typeFormatter = (TypeFormatter)ceras.GetSpecificFormatter(typeof(Type));

            _allowReferences = _ceras.Config.PreserveReferences;
        }
Example #2
0
        public ReferenceFormatter(CerasSerializer serializer)
        {
            _serializer = serializer;

            _typeFormatter = (TypeFormatter)serializer.GetSpecificFormatter(typeof(Type));

            _allowReferences = _serializer.Config.PreserveReferences;
        }
Example #3
0
        public ReferenceFormatter(CerasSerializer ceras)
        {
            _ceras = ceras;

            if (typeof(T).IsStatic())
            {
                throw new InvalidOperationException("static");
            }

            _typeFormatter = (TypeFormatter)ceras.GetSpecificFormatter(typeof(Type));

            _allowReferences = _ceras.Config.PreserveReferences;
        }
Example #4
0
        public ReferenceFormatter(CerasSerializer serializer)
        {
            _serializer = serializer;

            _typeFormatter = (TypeFormatter)serializer.GetSpecificFormatter(typeof(Type));
        }