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})"); }
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))); } } } }