示例#1
0
        public void DelegateBuilderNew_Speed()
        {
            Speed inst  = null;
            var   ctor  = DelegateBuilder.BuildCtor <Speed>();
            var   watch = Stopwatch.StartNew();

            for (int i = 0; i < Iterations; i++)
            {
                inst = ctor();
            }
            watch.Stop();
            Trace.WriteLine(inst.Property1);
            Trace.WriteLine(watch.ElapsedMilliseconds);
        }
 public StandardObjectMapping(string namingContext,
                              IEnumerable <IPropertyMapping> propertyMappings, string objectCategory, bool includeObjectCategory, IEnumerable <string> objectClass, bool includeObjectClasses)
     : base(namingContext, propertyMappings, objectCategory, includeObjectCategory, objectClass, includeObjectClasses)
 {
     _constructor = DelegateBuilder.BuildCtor <T>();
 }