File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
src/Abstractions/src/Asp.Versioning.Abstractions Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,23 @@ public class ApiVersionMetadata
28
28
Name = name ?? string . Empty ;
29
29
}
30
30
31
+ /// <summary>
32
+ /// Initializes a new instance of the <see cref="ApiVersionMetadata"/> class.
33
+ /// </summary>
34
+ /// <param name="other">The other <see cref="ApiVersionMetadata">instance</see> to initialize from.</param>
35
+ protected ApiVersionMetadata ( ApiVersionMetadata other )
36
+ {
37
+ if ( other == null )
38
+ {
39
+ throw new ArgumentNullException ( nameof ( other ) ) ;
40
+ }
41
+
42
+ apiModel = other . apiModel ;
43
+ endpointModel = other . endpointModel ;
44
+ mergedModel = other . mergedModel ;
45
+ Name = other . Name ;
46
+ }
47
+
31
48
/// <summary>
32
49
/// Gets an empty API version information.
33
50
/// </summary>
You can’t perform that action at this time.
0 commit comments