public RuntimePropertyInfo(Property property, RuntimeType declaringType, RuntimeMethodInfo getMethod, RuntimeMethodInfo setMethod) { _property = property; _declaringType = declaringType; _getMethod = getMethod; _setMethod = setMethod; }
[System.Security.SecurityCritical] // auto-generated internal static bool IsActivationAllowed(RuntimeType svrType) { if (svrType == null) return false; RemotingTypeCachedData cache = (RemotingTypeCachedData) InternalRemotingServices.GetReflectionCachedData(svrType); String assemblyName = cache.SimpleAssemblyName; return Info.ActivationAllowed(svrType.FullName, assemblyName); } // IsActivationAllowed
[System.Security.SecurityCritical] // auto-generated internal static WellKnownClientTypeEntry IsWellKnownClientType(RuntimeType svrType) { RemotingTypeCachedData cache = (RemotingTypeCachedData) InternalRemotingServices.GetReflectionCachedData(svrType); String assemblyName = cache.SimpleAssemblyName; WellKnownClientTypeEntry wke = Info.QueryConnect(svrType.FullName, assemblyName); if (wke == null) { wke= Info.QueryConnect(svrType.Name, assemblyName); } return wke; }
[System.Security.SecurityCritical] // auto-generated internal static ActivatedClientTypeEntry IsRemotelyActivatedClientType(RuntimeType svrType) { RemotingTypeCachedData cache = (RemotingTypeCachedData) InternalRemotingServices.GetReflectionCachedData(svrType); String assemblyName = cache.SimpleAssemblyName; ActivatedClientTypeEntry entry = Info.QueryRemoteActivate(svrType.FullName, assemblyName); if (entry == null) { // If not found try with the full assembly name String fullAssemblyName = cache.AssemblyName; entry = Info.QueryRemoteActivate(svrType.FullName, fullAssemblyName); if (entry == null){ // If still not found try with partial type name (without namespace) entry = Info.QueryRemoteActivate(svrType.Name, assemblyName); } } return entry; } // IsRemotelyActivatedClientType
public static object CreateInstance(RuntimeType type) { return CreateInstance(((VTable)type.TypeHandle).Class); }
private String _simpleAssemblyName; // (no strong name, version, etc.) internal RemotingTypeCachedData(RuntimeType ri) { RI = ri; }
// TODO: This method is not code generated correctly // root cause is likely the conditional expression // the arguments to RuntimeType::.ctor are reversed! private static RuntimeType BrokenGetTypeFromClass(Class klass) { // check cache. if not there, create the runtime type and save to cache if (!_runtimeTypeCache.ContainsKey(klass)) { RuntimeType runtimeType = new RuntimeType(klass, klass.DeclaringClass != null ? GetTypeFromClass(klass.DeclaringClass) : null); _runtimeTypeCache[klass] = runtimeType; } return _runtimeTypeCache[klass]; }
private static RuntimeType GetTypeFromClass(Class klass) { // check cache. if not there, create the runtime type and save to cache if (!_runtimeTypeCache.ContainsKey(klass)) { RuntimeType declaringType; if (klass.DeclaringClass != null) { declaringType = GetTypeFromClass(klass.DeclaringClass); } else { declaringType = null; } RuntimeType runtimeType = new RuntimeType(klass, declaringType); _runtimeTypeCache[klass] = runtimeType; } return _runtimeTypeCache[klass]; }
public RuntimeMethodInfo(Method method, RuntimeType declaringType) { _method = method; _declaringType = declaringType; }
// TODO: This method breaks XaeiO.Compiler2 private static RuntimeType BrokenGetType(object obj) { XaeiOSObject xaeiOSObject = var.Cast<object>(obj).Cast<XaeiOSObject>(); Class klass = xaeiOSObject.VTable.Class; // check cache if(_runtimeTypeCache.ContainsKey(klass)) { return _runtimeTypeCache[klass]; } RuntimeType runtimeType = new RuntimeType(klass, null); _runtimeTypeCache[klass] = runtimeType; return runtimeType; }
public RuntimeConstructorInfo(Constructor constructor, RuntimeType declaringType) { _constructor = constructor; _declaringType = declaringType; }
internal MarshalByRefObject CreateInstanceInternal(RuntimeType serverType) { return ActivationServices.CreateInstance(serverType); }
internal static bool ProxyCheckCast (RealProxy rp, RuntimeType castType) { // TODO: What should it do? return true; }
public RuntimeType(Class klass, RuntimeType declaringType) : base((RuntimeTypeHandle)klass.VTable) { _class = klass; }
private String _simpleAssemblyName; // (no strong name, version, etc.) internal RemotingTypeCachedData(RuntimeType ri) : base(ri) { }