示例#1
0
 public Reflector(Assembly assembly)
 {
     M_AssemblyModel = new AssemblyMetadata(assembly);
     MefStartup.Instance.ComposeParts(this);
 }
示例#2
0
 public Reflector(AssemblyMetadata assembly)
 {
     M_AssemblyModel = assembly;
     TypeMetadata.TypeDictionary.Clear();
     M_AssemblyModel.Namespaces.ToList().ForEach(ns => ns.Types.ToList().ForEach(t => TypeMetadata.TypeDictionary.Add(t.TypeName, (TypeMetadata)t)));
 }
示例#3
0
        public void DeserializeAssembly(string path)
        {
            BaseAssemblyMetadata deserializedData = Serialization.Read(path);

            M_AssemblyModel = new AssemblyMetadata(deserializedData);
        }