コード例 #1
0
        public string GetName()
        {
            var    path     = m_Prop.FindPropertyRelative("m_Path").stringValue;
            var    typeStr  = m_Prop.FindPropertyRelative("m_Type").stringValue;
            var    entry    = LightBindEntry.GetEntry(typeStr);
            string typeName = entry?.Type.Name ?? "?" + typeStr;

            return($"{path}({typeName})");
        }
コード例 #2
0
 static IEnumerable <LightBindEntry> GetEntries()
 {
     foreach (var assemblie in System.AppDomain.CurrentDomain.GetAssemblies())
     {
         foreach (var type in assemblie.GetTypes())
         {
             if (type.IsAbstract)
             {
                 continue;
             }
             if (typeof(ILightBind).IsAssignableFrom(type) && typeof(IBindable).IsAssignableFrom(type))
             {
                 yield return(LightBindEntry.GetEntry(LightBindEntry.GetKey(type)));
             }
         }
     }
 }