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

MapType() public method

public MapType ( TypeInfo typeInfo ) : TypeInfo
typeInfo TypeInfo
return TypeInfo
        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::MapType
ReflectionContextSubClass