Ejemplo n.º 1
0
 private IBSonNode GetValueContainer(object value, string name)
 {
   var node = value as IBSonNode;
   if (node == null)
   {
     node = new BSonProp() { Value = value };
   }
   node.Name = name;
   return node;
 }
Ejemplo n.º 2
0
        private IBSonNode GetValueContainer(object value, string name)
        {
            var node = value as IBSonNode;

            if (node == null)
            {
                node = new BSonProp()
                {
                    Value = value
                };
            }
            node.Name = name;
            return(node);
        }