IBsonDictionarySerializer.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /* Copyright 2010-present MongoDB Inc.
  2. *
  3. * Licensed under the Apache License, Version 2.0 (the "License");
  4. * you may not use this file except in compliance with the License.
  5. * You may obtain a copy of the License at
  6. *
  7. * http://www.apache.org/licenses/LICENSE-2.0
  8. *
  9. * Unless required by applicable law or agreed to in writing, software
  10. * distributed under the License is distributed on an "AS IS" BASIS,
  11. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. * See the License for the specific language governing permissions and
  13. * limitations under the License.
  14. */
  15. using MongoDB.Bson.Serialization.Options;
  16. namespace MongoDB.Bson.Serialization
  17. {
  18. /// <summary>
  19. /// Represents a dictionary serializer that can be used in LINQ queries.
  20. /// </summary>
  21. public interface IBsonDictionarySerializer
  22. {
  23. /// <summary>
  24. /// Gets the dictionary representation.
  25. /// </summary>
  26. /// <value>
  27. /// The dictionary representation.
  28. /// </value>
  29. DictionaryRepresentation DictionaryRepresentation { get; }
  30. /// <summary>
  31. /// Gets the key serializer.
  32. /// </summary>
  33. /// <value>
  34. /// The key serializer.
  35. /// </value>
  36. IBsonSerializer KeySerializer { get; }
  37. /// <summary>
  38. /// Gets the value serializer.
  39. /// </summary>
  40. /// <value>
  41. /// The value serializer.
  42. /// </value>
  43. IBsonSerializer ValueSerializer { get; }
  44. }
  45. }