public void WriteComInterfaceFor(TypeReference type)
{
this._writer.WriteCommentedLine(type.FullName);
this.WriteForwardDeclarations(type);
string str = !type.Resolve().IsWindowsRuntime ? "Il2CppIUnknown" : "Il2CppIInspectable";
object[] args = new object[] { Naming.ForTypeNameOnly(type), str };
this._writer.WriteLine("struct NOVTABLE {0} : {1}", args);
using (new BlockWriter(this._writer, true))
{
this._writer.WriteStatement("static const Il2CppGuid IID");
Unity.IL2CPP.ILPreProcessor.TypeResolver typeResolver = Unity.IL2CPP.ILPreProcessor.TypeResolver.For(type);
foreach (MethodDefinition definition in type.Resolve().Methods)
{
MethodReference method = typeResolver.Resolve(definition);
this._writer.Write(GetSignature(method, method, typeResolver, null));
this._writer.WriteLine(" = 0;");
}
}
}