CM3D2.MaidFiddler.Plugin.Utils.Debugger.WriteLine C# (CSharp) Method

WriteLine() private method

private WriteLine ( ) : void
return void
        public static void WriteLine()
        {
            Console.WriteLine();
        }
    }

Same methods

Debugger::WriteLine ( LogLevel level, string s ) : void
Debugger::WriteLine ( string s ) : void

Usage Example

Example #1
0
        public static Dictionary <string, object> GetLatestReleasedVersion()
        {
            Dictionary <string, object> result;

            Debugger.WriteLine(
                LogLevel.Info,
                $"Getting info about the latest version from {MaidFiddler.RELEASES_LATEST_REQUEST_URL}");
            HttpWebRequest releasesRequest = (HttpWebRequest)WebRequest.Create(MaidFiddler.RELEASES_LATEST_REQUEST_URL);

            releasesRequest.UserAgent = "Maid Fiddler Update Checker";
            releasesRequest.Accept    = "application/json";
            HttpWebResponse wr = (HttpWebResponse)releasesRequest.GetResponse();

            Debugger.WriteLine(LogLevel.Info, "Got a response!");
            Debugger.WriteLine(LogLevel.Info, $"Response code: {wr.StatusCode}");
            if (!wr.ContentType.StartsWith("application/json"))
            {
                Debugger.WriteLine(
                    LogLevel.Error,
                    $"Could not load version data! Content gotten: {wr.ContentType} Skipping version checking...");
                return(null);
            }
            JsonReader jr = new JsonReader(wr.GetResponseStream());

            result = jr.Deserialize <Dictionary <string, object> >();
            wr.Close();
            return(result);
        }
All Usage Examples Of CM3D2.MaidFiddler.Plugin.Utils.Debugger::WriteLine