internal static string GetSelectedPolicyId() { RegenerateList(); System.Type type = m_policyTypeCache[m_selectedPolicy]; IPackerPolicy policy = Activator.CreateInstance(type) as IPackerPolicy; return($"{type.AssemblyQualifiedName}::{policy.GetVersion()}"); }
internal static string GetSelectedPolicyId() { Packer.RegenerateList(); Type type = Packer.m_policyTypeCache[Packer.m_selectedPolicy]; IPackerPolicy packerPolicy = Activator.CreateInstance(type) as IPackerPolicy; return(string.Format("{0}::{1}", type.AssemblyQualifiedName, packerPolicy.GetVersion())); }
// Called from SpritePacker::GetSelectedPolicyId() internal static string GetSelectedPolicyId() { RegenerateList(); Type t = m_policyTypeCache[m_selectedPolicy]; IPackerPolicy policy = Activator.CreateInstance(t) as IPackerPolicy; string versionString = string.Format("{0}::{1}", t.AssemblyQualifiedName, policy.GetVersion()); return(versionString); }