Esempio n. 1
0
        public ReferenceFormatter(CerasSerializer ceras)
        {
            _ceras = ceras;

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

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

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

            _allowReferences = _serializer.Config.PreserveReferences;
        }
Esempio n. 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;
        }
Esempio n. 4
0
        public ReferenceFormatter(CerasSerializer serializer)
        {
            _serializer = serializer;

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