コード例 #1
0
ファイル: Type.cs プロジェクト: marcellodash/MBuild
    void SetValue(string path, string name, string value)
    {
        string act = ID;

        if (path != null)
        {
            act += "\\" + path;
        }

        if (value != null)
        {
            WCU.Ensure(act, true)[name] = value;
        }
        else
        {
            if (CU.HasKey(act) && CU.Open(act).HasValue(name))
            {
                WCU.Open(act, true)[name] = null;
            }
            if (LM.HasKey(act) && LM.Open(act).HasValue(name))
            {
                WLM.Open(act, true)[name] = null;
            }
        }
    }
コード例 #2
0
ファイル: Type.cs プロジェクト: marcellodash/MBuild
 public static bool Exists(string type)
 {
     return(CR.HasKey(type) || FX.HasKey(type));
 }
コード例 #3
0
ファイル: Type.cs プロジェクト: marcellodash/MBuild
 public static bool ClassExists(string type)
 {
     return(IsValidClass(type) && CR.HasKey(type));
 }