System.Xml.Serialization.CodeGenerator.IsInst C# (CSharp) Method

IsInst() private method

private IsInst ( Type type ) : void
type Type
return void
        internal void IsInst(Type type)
        {
            _ilGen.Emit(OpCodes.Isinst, type);
        }

Usage Example

 internal void WriteInstanceOf(SourceInfo source, Type type, CodeGenerator ilg)
 {
     {
         source.Load(typeof(object));
         ilg.IsInst(type);
         ilg.Load(null);
         ilg.Cne();
         return;
     }
 }