public static string WriteArgumentsFile(string path, IEnumerable <string> args) { using (Unity.IL2CPP.Portability.StreamWriter writer = new Unity.IL2CPP.Portability.StreamWriter(path)) { foreach (string str in args) { writer.WriteLine(str); } } return(path); }
public override void Dispose() { using (Unity.IL2CPP.Portability.StreamWriter writer = new Unity.IL2CPP.Portability.StreamWriter(this._filename.ToString(), Encoding.UTF8)) { if (this.IsHeaderFile()) { writer.WriteLine("#pragma once\n"); } this.WriteCollectedIncludes(writer); base.Writer.Flush(); base.Writer.BaseStream.Seek(0L, SeekOrigin.Begin); base.Writer.BaseStream.CopyTo(writer.BaseStream); writer.Flush(); } base.Dispose(); }