Exemple #1
0
 public void AddClass(CmlClass @class)
 {
     manual_classes[Tuple.New(@class.GetTargetType(), @class.GetLayout())] = @class;
     class_cache.Clear();
 }
Exemple #2
0
        protected override object InstanceInternal(CmlContext context)
        {
            CmlClass @class = context.GetClass();

            return(context.GetEngine().GetClassLibrary().GetClass(@class.GetTargetType().BaseType, @class.GetLayout())
                   .IfNotNull(c => c.Create(context)));
        }