Skip to content
csharp logo

C#

C# (pronounced "C sharp") is a simple, modern, object-oriented, and type-safe programming language.

Its roots in the C family of languages makes C# immediately familiar to C, C++, and Java programmers.

Here are 22,546 public repositories matching this topic...

ahsonkhan
ahsonkhan commented Sep 16, 2019

Along with implementing support for Base64, add tests as well.

string base64String = "ABA=";
using (JsonDocument doc = JsonDocument.Parse($"{{\"data\":\"{base64String}\"}}"))
{
    JsonElement root = doc.RootElement;
    JsonElement data = root.GetProperty("data");
    byte[] base64Bytes = data.GetBytesFromBase64(); // {0, 16}
    Console.WriteLine(base64Bytes.Length); // Returns 2
messani
messani commented Aug 30, 2019

Steps to Reproduce

  1. Code
using System;

namespace Test
{
  class MainClass
  {
    public static void Main(string[] args)
    {
      throw new Exception("blabla");
    }
  }
}
  1. Run:
    MONO_DEBUG=suspend-on-unhandled mono ./Test.exe

Current Behavior

Unhandled Exception:
System.Exception: blabla
at Test.MainClass.Main (System.String[] args) [0x000

TheBricktop
TheBricktop commented Dec 6, 2018

Describe the bug
The Unity usage example assumes that user has Rantionary.rpkg file in assets/resources folder but there is no step by step information on how to import those and from what source.
The Rant3.zip from github doesn't contain said file.

To Reproduce
Steps to reproduce the behavior:

  1. Follow the Running in Unity tutorial
  2. Run the example in Unity
  3. See the erro
You can’t perform that action at this time.