2 using System.Collections.Generic;
8 abstract class Profile {
10 static Profile current;
12 static Profile Current {
17 current = CreateProfile ("MonoTouch");
21 current = CreateProfile ("MonoDroid");
25 current = CreateProfile ("MonoMac");
29 throw new NotSupportedException ("No active profile");
33 static Profile CreateProfile (string name)
35 var type = Type.GetType (string.Format ("{0}.Tuner.{0}Profile", name));
39 return (Profile) Activator.CreateInstance (type);
42 public static bool IsSdkAssembly (AssemblyDefinition assembly)
44 return Current.IsSdk (assembly);
47 public static bool IsProductAssembly (AssemblyDefinition assembly)
49 return Current.IsProduct (assembly);
52 protected abstract bool IsSdk (AssemblyDefinition assembly);
53 protected abstract bool IsProduct (AssemblyDefinition assembly);