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
24
24
/// </summary>
25
25
public class GridFSFileInfoSerializer : BsonDocumentBackedClassSerializer < GridFSFileInfo >
26
26
{
27
+ private static readonly GridFSFileInfoSerializer __instance = new GridFSFileInfoSerializer ( ) ;
28
+
27
29
/// <summary>
28
30
/// Gets the pre-created instance.
29
31
/// </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
+ }
34
36
35
37
/// <summary>
36
38
/// Initializes a new instance of the <see cref="GridFSFileInfoSerializer" /> class.
You can’t perform that action at this time.
0 commit comments