-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
Expose the index of the currently stored value via the new `Index` property and add `UnsafeGet()` methods that allow one to bypass the index check and retrieve a value assuming it matches the stored value. This direct access is now used in extension methods. The previous approach would break if the access modifier on the variant's interface was forced to be `internal` because conversion operators must be `static` and `public`. This change not only is robust to the access change but also allows users low-level value access if needed.
- Loading branch information
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.