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
i want to return an int as object in my function, but i got several false results
YConstantExpressionyconstant0=new YConstantExpression(0,typeof(int));
YExpression.TypeAs(YExpression.Box(yconstant0),typeof(object))// Fatal error. System.AccessViolationException: Attempted to read or write protected memory.
YExpression.Convert(YExpression.Box(yconstant0),typeof(object))// Fatal error. System.AccessViolationException: Attempted to read or write protected memory.
YExpression.Convert(YExpression.Box(yconstant0),typeof(object),true)// Fatal error. System.AccessViolationException: Attempted to read or write protected memory.
YExpression.TypeAs(yconstant0,typeof(object))// Unhandled exception. System.NullReferenceException: Object reference not set to an instance of an object.
YExpression.Convert(yconstant0,typeof(object))// Unhandled exception. System.NullReferenceException: Object reference not set to an instance of an object.
YExpression.Convert(yconstant0,typeof(object),true)// got a null object
YExpression.Box(yconstant0)// Fatal error. System.AccessViolationException: Attempted to read or write protected memory.
i want to return an int as object in my function, but i got several false results
os: win10 x64
dotnet: net6.0 x64
code:
The text was updated successfully, but these errors were encountered: