Ejemplo n.º 1
0
 internal void PrecacheBaseTypes(IEnumberable <Type> types)
 {
     if (TypeOfDataContract == null)
     {
         TypeOfDataContract = Type.GetType("System.Runtime.Serialization.DataContract, System.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089");
     }
     lock (xmlNames)
     {
         var remaining = new Queue <Type>(types.Except(xmlNames.Values));
         while (remaining.Count > 0)
         {
             Type          next   = remaining.Dequeue();
             var           dc     = Impromptu.InvokeMember(TypeOfDataContract.WithStaticContext(), "GetDataContract", next);
             IDataContract result = Impromptu.ActLike <IDataContract>(dc);
             xmlNames.Add(new System.Xml.XmlQualifiedName(result.Name.Value, result.Namespace.Value), next);
         }
     }
 }
Ejemplo n.º 2
0
 public void AddItems(IEnumberable <Show> shows)
 {
     Shows.AddRange(shows);
 }
 void Start()
 {
     // Initialize the list with levels
     scenes = new List <int>(IEnumberable.Range(1, MAX));   // This creates a list with values from 1 to 50
 }
Ejemplo n.º 4
0
 public Manager(IEnumberable <ITool> tools);
Ejemplo n.º 5
0
 private void AddItems(IEnumberable <Show> shows)
 {
     Shows.AddRange(shows);
 }