IBsonArraySerializer.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. /* Copyright 2010-2015 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. namespace MongoDB.Bson.Serialization
  16. {
  17. /// <summary>
  18. /// Contract for serializers to implement if they serialize an array of items.
  19. /// </summary>
  20. public interface IBsonArraySerializer : IBsonSerializer
  21. {
  22. /// <summary>
  23. /// Tries to get the serialization info for the individual items of the array.
  24. /// </summary>
  25. /// <param name="serializationInfo">The serialization information.</param>
  26. /// <returns>
  27. /// <c>true</c> if the serialization info exists; otherwise <c>false</c>.
  28. ///</returns>
  29. bool TryGetItemSerializationInfo(out BsonSerializationInfo serializationInfo);
  30. }
  31. }