Ejemplo n.º 1
0
        internal static string GetSelectedPolicyId()
        {
            RegenerateList();
            System.Type   type   = m_policyTypeCache[m_selectedPolicy];
            IPackerPolicy policy = Activator.CreateInstance(type) as IPackerPolicy;

            return($"{type.AssemblyQualifiedName}::{policy.GetVersion()}");
        }
Ejemplo n.º 2
0
        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()));
        }
Ejemplo n.º 3
0
        // 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);
        }