Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
2.0 kB
1
Indexable
Never
using System;
using System.Collections.Generic;

public class MyClass
{
    public Dictionary<char, string> LevelOne { get; private set; } = new Dictionary<char, string>();
    public Dictionary<char, string> LevelTwo { get; private set; } = new Dictionary<char, string>();
    public Dictionary<char, string> LevelThree { get; private set; } = new Dictionary<char, string>();
    public Dictionary<char, string> LevelFour { get; private set; } = new Dictionary<char, string>();
    public Dictionary<char, string> LevelFive { get; private set; } = new Dictionary<char, string>();
    public Dictionary<char, string> LevelSix { get; private set; } = new Dictionary<char, string>();

    public MyClass()
    {
        InitializeLevelOneMap();
        InitializeLevelTwoMap();
        InitializeLevelThreeMap();
        // You can initialize other maps in a similar way.
    }

    private void InitializeLevelOneMap()
    {
        LevelOne.Add('あ', "a");
        LevelOne.Add('い', "i");
        LevelOne.Add('う', "u");
        LevelOne.Add('え', "e");
        LevelOne.Add('お', "o");
        LevelOne.Add('ん', "n");
    }

    private void InitializeLevelTwoMap()
    {
        LevelTwo.Add('か', "ka");
        LevelTwo.Add('き', "ki");
        LevelTwo.Add('く', "ku");
        LevelTwo.Add('け', "ke");
        LevelTwo.Add('こ', "ko");
        LevelTwo.Add('さ', "sa");
        LevelTwo.Add('し', "shi");
        LevelTwo.Add('す', "su");
        LevelTwo.Add('せ', "se");
        LevelTwo.Add('そ', "so");
    }

    private void InitializeLevelThreeMap()
    {
        LevelThree.Add('た', "ta");
        LevelThree.Add('ち', "chi");
        LevelThree.Add('つ', "tsu");
        LevelThree.Add('て', "te");
        LevelThree.Add('こ', "to");
        LevelThree.Add('な', "na");
        LevelThree.Add('に', "ni");
        LevelThree.Add('ぬ', "nu");
        LevelThree.Add('ね', "ne");
        LevelThree.Add('の', "no");
    }
    // You can define similar initialization methods for other maps.
}