mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2026-06-13 22:48:42 +00:00
RuntimeType
This commit is contained in:
@@ -20,10 +20,10 @@ namespace Esiur.Data
|
|||||||
private Type UpdateRuntimeType()
|
private Type UpdateRuntimeType()
|
||||||
{
|
{
|
||||||
if (TypeDef is LocalTypeDef localTypeDef)
|
if (TypeDef is LocalTypeDef localTypeDef)
|
||||||
_runtimeType = localTypeDef.DefinedType ?? typeof(EpResource);
|
_runtimeType = localTypeDef.DefinedType;
|
||||||
else if (TypeDef is RemoteTypeDef remoteTypeDef)
|
else if (TypeDef is RemoteTypeDef remoteTypeDef)
|
||||||
{
|
{
|
||||||
_runtimeType = remoteTypeDef.ProxyType ?? typeof(object);
|
_runtimeType = remoteTypeDef.ProxyType;
|
||||||
}
|
}
|
||||||
|
|
||||||
return _runtimeType ?? typeof(object);
|
return _runtimeType ?? typeof(object);
|
||||||
|
|||||||
Reference in New Issue
Block a user