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

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

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

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

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

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