We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 644a57a commit d03b980Copy full SHA for d03b980
Util/ValueTypeWrapper.cs
@@ -0,0 +1,19 @@
1
+namespace ReClassNET.Util
2
+{
3
+ /// <summary>A wrapper for non reference types.</summary>
4
+ /// <typeparam name="T">Generic type parameter.</typeparam>
5
+ public class ValueTypeWrapper<T> where T : struct
6
+ {
7
+ public ValueTypeWrapper(T value)
8
9
+ Value = value;
10
+ }
11
+
12
+ public T Value { get; set; }
13
14
+ public static implicit operator ValueTypeWrapper<T>(T value)
15
16
+ return new ValueTypeWrapper<T>(value);
17
18
19
+}
0 commit comments