BsonDictionaryOptionsAttribute.cs 804 B

12345678910111213141516171819202122232425262728
  1. using System;
  2. namespace MongoDB.Bson.Serialization.Options
  3. {
  4. /// <summary>
  5. /// Represents the representation to use for dictionaries.
  6. /// </summary>
  7. public enum DictionaryRepresentation
  8. {
  9. /// <summary>Represent the dictionary as a Document.</summary>
  10. Document,
  11. /// <summary>Represent the dictionary as an array of arrays.</summary>
  12. ArrayOfArrays,
  13. /// <summary>Represent the dictionary as an array of documents.</summary>
  14. ArrayOfDocuments,
  15. }
  16. }
  17. namespace MongoDB.Bson.Serialization.Attributes
  18. {
  19. public class BsonDictionaryOptionsAttribute: Attribute
  20. {
  21. public BsonDictionaryOptionsAttribute(MongoDB.Bson.Serialization.Options.DictionaryRepresentation dictionaryRepresentation)
  22. {
  23. }
  24. }
  25. }