Please add an example of returning a generic type (T) as it's not clear what it the base practice here ?
Is using return (T) Convert.ChangeType(sometypeLocalVariable, typeof(T)); ok ?
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
ID: b3fba961-e752-eb89-f339-089fb06651f4
Version Independent ID: f5147198-1751-5d96-dd17-a00291ca0ad5
Please add an example of returning a generic type (T) as it's not clear what it the base practice here ? Is using return (T) Convert.ChangeType(sometypeLocalVariable, typeof(T)); ok ?
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.