You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Container variant types are code generated as a class that encapsulates the variant name and the variant object, with factory methods for creating each built-in variant type. This makes them reasonably easy to work with when using them in requests but challenging to use when accessing them in responses.
The code-generated class includes internal properties for the Variant and VariantName but doesn't expose ways to access the variant. Currently, in v8.0, we manually add a TryGet<T> method to these types. We do not "mark" variants which limits our ability to constrain the generic T on the TryGet method.
We should enhance the code-generation to make these types easier to use:
The content you are editing has changed. Please copy your edits and refresh the page.
Container variant types are code generated as a class that encapsulates the variant name and the variant
object
, with factory methods for creating each built-in variant type. This makes them reasonably easy to work with when using them in requests but challenging to use when accessing them in responses.The code-generated class includes internal properties for the
Variant
andVariantName
but doesn't expose ways to access the variant. Currently, in v8.0, we manually add aTryGet<T>
method to these types. We do not "mark" variants which limits our ability to constrain the genericT
on theTryGet
method.We should enhance the code-generation to make these types easier to use:
Enhancements
An example of where this applies is the
Processor
container type.The text was updated successfully, but these errors were encountered: