Exemple #1
0
        public BSONSerializer(BSONTypeResolver resolver)
        {
            if (resolver == null)
            {
                throw new BSONException(StringConsts.ARGUMENT_ERROR + "BSONSerializer.ctor(resolver==null)");
            }

            m_Resolver = resolver;
        }
Exemple #2
0
        public BSONSerializer(IConfigSectionNode node)
        {
            if (node == null || !node.Exists)
            {
                throw new BSONException(StringConsts.ARGUMENT_ERROR + "BSONSerializer.ctor(node==null|!Exists)");
            }
            ConfigAttribute.Apply(this, node);

            m_Resolver = new BSONTypeResolver(node[CONFIG_RESOLVER_SECTON]);
        }
Exemple #3
0
 public BSONSerializer()
 {
     m_Resolver = new BSONTypeResolver((IConfigSectionNode)null);
 }