System.Reflection.Tests.ReflectionContextSubClass.MapAssembly C# (CSharp) Method

MapAssembly() public method

public MapAssembly ( Assembly asm ) : Assembly
asm Assembly
return Assembly
        public override Assembly MapAssembly(Assembly asm) => asm;
        public override TypeInfo MapType(TypeInfo typeInfo) => typeInfo;

Usage Example

Esempio n. 1
0
        public void ReflectionContext_GetTypeForObject()
        {
            ReflectionContextSubClass rc = new ReflectionContextSubClass();
            TypeInfo typeInfo            = rc.MapType(typeof(int).GetTypeInfo());

            Assert.Equal(typeof(int).GetTypeInfo().Assembly, rc.MapAssembly(typeof(int).GetTypeInfo().Assembly));
            Assert.Equal(typeof(ReflectionContextSubClass).GetTypeInfo(), rc.GetTypeForObject(rc));
        }
All Usage Examples Of System.Reflection.Tests.ReflectionContextSubClass::MapAssembly
ReflectionContextSubClass