private void WriteEntityType(CilEntity type) { if (type.Kind == EntityKind.TypeDefinition) { _writer.Write(((CilTypeDefinition)type.Entity).FullName); } else if (type.Kind == EntityKind.TypeReference) { _writer.Write(((CilTypeReference)type.Entity).FullName); } else { _writer.Write(((CilTypeSpecification)type.Entity).Signature); } }
private void WriteEntityType(CilEntity type) { if (type.Kind == EntityKind.TypeDefinition) { _writer.Write(((CilTypeDefinition)type.Entity).FullName); } else if (type.Kind == EntityKind.TypeReference) { _writer.Write(((CilTypeReference)type.Entity).FullName); } else { _writer.Write(((CilTypeSpecification)type.Entity).Signature); } }