File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
src/MongoDB.Driver.GridFS Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -24,13 +24,15 @@ namespace MongoDB.Driver.GridFS
2424 /// </summary>
2525 public class GridFSFileInfoSerializer : BsonDocumentBackedClassSerializer < GridFSFileInfo >
2626 {
27+ private static readonly GridFSFileInfoSerializer __instance = new GridFSFileInfoSerializer ( ) ;
28+
2729 /// <summary>
2830 /// Gets the pre-created instance.
2931 /// </summary>
30- /// <value>
31- /// The pre-created instance.
32- /// </value>
33- public static GridFSFileInfoSerializer Instance { get ; } = new GridFSFileInfoSerializer ( ) ;
32+ public static GridFSFileInfoSerializer Instance
33+ {
34+ get { return __instance ; }
35+ }
3436
3537 /// <summary>
3638 /// Initializes a new instance of the <see cref="GridFSFileInfoSerializer" /> class.
You can’t perform that action at this time.
0 commit comments