示例#1
0
 public void Init() {
     ic = new IC();
     ran = new Random(3456);
     length = 100000;
     a = new int[length];
     for(int i = 0; i < length; i++)
         a[i] = ran.Next();
 }
示例#2
0
文件: Sorting.cs 项目: T145/razordbx
 public void Init()
 {
     ic = new IC ();
     length = 100000;
     a = new int[length];
     for (int i = 0; i < length; i++)
         a [i] = -i;
 }
示例#3
0
        public B(IC c)
        {
            if (c == null)
            {
                throw new ArgumentNullException("c");
            }

            this.c = c;
        }
示例#4
0
文件: iface6.cs 项目: Zman0169/mono
	static int Test(IC n) {

		if (((IA)n).Add(0) != 5)
			return 1;

		if (((IB)n).Add(0) != 6)
			return 1;


		return 0;
	}
示例#5
0
        public ICComposite iccrete(ICComposite icVM)
        {
            try
            {

                using (var db = new CDTEntities())
                {

                    IC ic = new IC()
                    {
                        BOM_Number = icVM.ICMain.BOM_Number,
                        BU = icVM.ICMain.BU,
                        Product_line = icVM.ICMain.Product_line,
                        Site = icVM.ICMain.Site,
                        Thermo_Number = icVM.ICMain.Thermo_Number,
                        Item_Description = icVM.ICMain.Item_Description,
                        Category = icVM.ICMain.Category,
                        Part = icVM.ICMain.Part,
                        Part_Type = icVM.ICMain.Part_Type,
                        Technology = icVM.ICMain.Technology,
                        Supply_Voltage = icVM.ICMain.Supply_Voltage,
                        Memory___organisation = icVM.ICMain.Memory___organisation,
                        Memory___access_Time = icVM.ICMain.Memory___access_Time,
                        Mouting = icVM.ICMain.Mouting,
                        Package = icVM.ICMain.Package,
                        Lead_Spacing_Inch_ = icVM.ICMain.Lead_Spacing_Inch_,
                        No___of_pins = icVM.ICMain.No___of_pins,
                        Operating__Temperature = icVM.ICMain.Operating__Temperature,
                        ICMnfs = GetICMnfs(icVM)
                    };
                    db.ICs.Add(ic);
                    db.SaveChanges();

                    return icVM;
                };
            }
            catch (DbEntityValidationException e)
            {
                foreach (var eve in e.EntityValidationErrors)
                {
                    Console.WriteLine("Entity of type \"{0}\" in state \"{1}\" has the following validation errors:",
                        eve.Entry.Entity.GetType().Name, eve.Entry.State);
                    foreach (var ve in eve.ValidationErrors)
                    {
                        Console.WriteLine("- Property: \"{0}\", Error: \"{1}\"",
                            ve.PropertyName, ve.ErrorMessage);
                    }
                }
                return icVM;
            }
        }
示例#6
0
文件: Sorting.cs 项目: T145/razordbx
 public void Dispose()
 {
     ic = null;
     a = null;
 }
示例#7
0
 public C(IA a, IB b, IC c)
 {
     UsedConstructor = 4;
 }
示例#8
0
 public B(IC ic)
 {
 }
示例#9
0
 public A(IB ib, IC ic)
 {
     _ic = ic;
     _ib = ib;
 }
示例#10
0
文件: IC.cs 项目: buptkang/LogicPad
        /// <summary>
        /// Clone the IC with terminals and location hinting.  The IC may optionally
        /// be renamed in this cloning process.
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        public IC CreateUserInstance(string name)
        {
            Gates.IC nic = (Gates.IC)((Gates.IC)_gate).Clone(name);

            // duplicate the term ids because they have individual
            // refernece to actual terminal
            IC nuic = new IC(nic, CloneTerminals());

            DuplicateLocationHinting(nuic);

            return nuic;
        }
示例#11
0
 public void Dispose()
 {
     ic  = null;
     a   = null;
     ran = null;
 }
示例#12
0
 void Foo2(IC b)
 {
     int i = b.Value;
 }
示例#13
0
文件: D.cs 项目: yus1977/Autofac
 public D(IA a, IC c)
 {
 }
示例#14
0
 public void Consume(IC message)
 {
 }
示例#15
0
 public virtual int CompareTo(IC other)
 {
     return(ToStringN().CompareTo(other.ToStringN()));
 }
 public IAccess <C, T> Get4 <C, T>(IC <C, ISignatur <T> > control) where C : ISignatur <T>
 {
     throw new NotImplementedException();
 }
示例#17
0
            public void View()
            {
                int[] inner = new int[] { 3, 4, 6, 5, 7 };
                WrappedArray <int> outerwrapped = new WrappedArray <int>(inner);
                WrappedArray <int> wrapped      = (WrappedArray <int>)outerwrapped.View(1, 3);

                //
                Assert.AreEqual(6, wrapped[1]);
                Assert.IsTrue(IC.eq(wrapped[1, 2], 6, 5));
                //
                Fun <int, bool> is4 = delegate(int i)
                {
                    return(i == 4);
                };

                Assert.AreEqual(EventTypeEnum.None, wrapped.ActiveEvents);
                Assert.AreEqual(false, wrapped.All(is4));
                Assert.AreEqual(true, wrapped.AllowsDuplicates);
                wrapped.Apply(delegate(int i) { });
                Assert.AreEqual("{ 5, 6, 4 }", wrapped.Backwards().ToString());
                Assert.AreEqual(true, wrapped.Check());
                wrapped.Choose();
                Assert.AreEqual(true, wrapped.Contains(4));
                Assert.AreEqual(true, wrapped.ContainsAll(new ArrayList <int>()));
                Assert.AreEqual(1, wrapped.ContainsCount(4));
                Assert.AreEqual(Speed.Linear, wrapped.ContainsSpeed);
                int[] extarray = new int[5];
                wrapped.CopyTo(extarray, 1);
                Assert.IsTrue(IC.eq(extarray, 0, 4, 6, 5, 0));
                Assert.AreEqual(3, wrapped.Count);
                Assert.AreEqual(Speed.Constant, wrapped.CountSpeed);
                Assert.AreEqual(EnumerationDirection.Forwards, wrapped.Direction);
                Assert.AreEqual(false, wrapped.DuplicatesByCounting);
                Assert.AreEqual(IntEqualityComparer.Default, wrapped.EqualityComparer);
                Assert.AreEqual(true, wrapped.Exists(is4));
                Assert.IsTrue(IC.eq(wrapped.Filter(is4), 4));
                int j = 5;

                Assert.AreEqual(true, wrapped.Find(ref j));
                Assert.AreEqual(true, wrapped.Find(is4, out j));
                Assert.AreEqual("[ 0:4 ]", wrapped.FindAll(is4).ToString());
                Assert.AreEqual(0, wrapped.FindIndex(is4));
                Assert.AreEqual(true, wrapped.FindLast(is4, out j));
                Assert.AreEqual(0, wrapped.FindLastIndex(is4));
                Assert.AreEqual(4, wrapped.First);
                wrapped.GetEnumerator();
                Assert.AreEqual(CHC.sequencedhashcode(4, 6, 5), wrapped.GetSequencedHashCode());
                Assert.AreEqual(CHC.unsequencedhashcode(4, 6, 5), wrapped.GetUnsequencedHashCode());
                Assert.AreEqual(Speed.Constant, wrapped.IndexingSpeed);
                Assert.AreEqual(2, wrapped.IndexOf(5));
                Assert.AreEqual(false, wrapped.IsEmpty);
                Assert.AreEqual(true, wrapped.IsReadOnly);
                Assert.AreEqual(false, wrapped.IsSorted());
                Assert.AreEqual(true, wrapped.IsValid);
                Assert.AreEqual(5, wrapped.Last);
                Assert.AreEqual(2, wrapped.LastIndexOf(5));
                Assert.AreEqual(EventTypeEnum.None, wrapped.ListenableEvents);
                Fun <int, string> i2s = delegate(int i)
                {
                    return(string.Format("T{0}", i));
                };

                Assert.AreEqual("[ 0:T4, 1:T6, 2:T5 ]", wrapped.Map <string>(i2s).ToString());
                Assert.AreEqual(1, wrapped.Offset);
                wrapped.Reverse();
                Assert.AreEqual("[ 0:5, 1:6, 2:4 ]", wrapped.ToString());
                IList <int> other = new ArrayList <int>();

                other.AddAll <int>(new int[] { 4, 5, 6 });
                Assert.IsFalse(wrapped.SequencedEquals(other));
                j = 30;
                Assert.AreEqual(true, wrapped.Show(new System.Text.StringBuilder(), ref j, null));
                wrapped.Sort();
                Assert.AreEqual("[ 0:4, 1:5, 2:6 ]", wrapped.ToString());
                Assert.IsTrue(IC.eq(wrapped.ToArray(), 4, 5, 6));
                Assert.AreEqual("[ ... ]", wrapped.ToString("L4", null));
                Assert.AreEqual(outerwrapped, wrapped.Underlying);
                Assert.IsTrue(IC.seteq(wrapped.UniqueItems(), 4, 5, 6));
                Assert.IsTrue(wrapped.UnsequencedEquals(other));
                //
                Assert.IsTrue(wrapped.TrySlide(1));
                Assert.IsTrue(IC.eq(wrapped, 5, 6, 7));
                Assert.IsTrue(wrapped.TrySlide(-1, 2));
                Assert.IsTrue(IC.eq(wrapped, 4, 5));
                Assert.IsFalse(wrapped.TrySlide(-2));
                Assert.IsTrue(IC.eq(wrapped.Span(outerwrapped.ViewOf(7)), 4, 5, 6, 7));
                //
                wrapped.Shuffle();
                Assert.IsTrue(IC.seteq(wrapped.UniqueItems(), 4, 5));
                Assert.IsTrue(wrapped.IsValid);
                wrapped.Dispose();
                Assert.IsFalse(wrapped.IsValid);
            }
示例#18
0
 public D(IA a, IC c)
 {
 }
示例#19
0
 { public B(IC c) { } }
示例#20
0
 public void Dispose()
 {
     ic = null;
 }
 public AClassTestable1683(IA a, IB b, IC c)
 {
     A = a;
     B = b;
     C = c;
 }
示例#22
0
 public TwoConstructorsAttributes(IC a)
 {
 }
示例#23
0
 public A2(IC c)
 {
 }
示例#24
0
文件: test-810.cs 项目: nobled/mono
	public IA Test (IC b)
	{
		IA a = b;
		return a;
	}
示例#25
0
文件: Abc.cs 项目: baens/Esri2011
 public Abc(IA a, IB b, IC c)
 {
     Console.WriteLine("Abc.ctor()");
 }
示例#26
0
 public void Expand()
 {
     Assert.IsTrue(queue.Check());
     loadup3();
     Assert.IsTrue(IC.eq(queue, 14, 15, 16, 17));
 }
 public A(IB b, IC c)
 {
     _b = Argument.NotNull(nameof(b), b);
     _c = Argument.NotNull(nameof(c), c);
 }
示例#28
0
 public AClassTestable3527(IA a, IB b, IC c)
 {
     A = a;
     B = b;
     C = c;
 }
示例#29
0
 public M(IA A, IB B, IC C) {
     _Process += A.Process;
     A.Result += B.Process;
     B.Result += C.Process;
     C.Result += m => Result(m);
 }
 public AClassTestable844(IA a, IB b, IC c)
 {
     A = a;
     B = b;
     C = c;
 }
 public B(IC c)
 {
     this.c = c;
 }
示例#32
0
 public B(IC c)
 {
     C = c;
 }
示例#33
0
 public F(IC c, string first, int second)
 {
     _c      = c;
     _first  = first;
     _second = second;
 }
示例#34
0
 public HasMultipleConstructors(IA a, IB b, IC c) : this(a, b)
 {
     C = c;
 }
示例#35
0
 public A(IC c)
 {
 }
示例#36
0
 public HasMultipleConstructors(IA a, IB b, IC c, ID d) : this(a, b, c)
 {
     D = d;
 }
示例#37
0
文件: test-526.cs 项目: nobled/mono
	void Foo2 (IC b)
	{
		int i = b.Value;
	}
示例#38
0
 public HasMultipleConstructors(IA a, IB b, IC c, ID d, IE e) : this(a, b, c, d)
 {
     E = e;
 }
示例#39
0
文件: IC.cs 项目: buptkang/LogicPad
        /// <summary>
        /// The "template" here is used as a visual template, that is, a descriptor of
        /// how the terminals should be laid out and a provided of location hints.
        /// The IC becomes the actual circuit within the return value.
        /// Accordingly, it is assumed that the template will be of the same
        /// "type" as the IC.
        /// </summary>
        /// <param name="ic"></param>
        /// <param name="template"></param>
        /// <returns></returns>
        public static IC CreateFromTemplate(Gates.IC ic, IC template)
        {
            UIGates.IC nuic = new UIGates.IC(ic, template.CloneTerminals());
            template.DuplicateLocationHinting(nuic);
            return nuic;

        }
 public AClassTestable2986(IA a, IB b, IC c)
 {
     A = a;
     B = b;
     C = c;
 }
示例#41
0
        void numberPad_NumberKeyPressed(object sender, IC.Controls.NumberPadEventArgs e)
        {
            //OnCallKeyPress(e.NumberKey);

            if (_call != null && _call.StateId == EStateId.ACTIVE)
            {
                sipResource.CallManager.onUserDialDigit(_call.Session, e.NumberKey, sipResource.Configurator.DtmfMode);
            }

            callDestinationTextBox.Text += e.NumberKey;
            numberLabel.Text += e.NumberKey;
        }
 public A(C c)
 {
     arr    = new B[100];
     this.c = c;
 }