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(); }
public void Init() { ic = new IC (); length = 100000; a = new int[length]; for (int i = 0; i < length; i++) a [i] = -i; }
public B(IC c) { if (c == null) { throw new ArgumentNullException("c"); } this.c = c; }
static int Test(IC n) { if (((IA)n).Add(0) != 5) return 1; if (((IB)n).Add(0) != 6) return 1; return 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; } }
public void Dispose() { ic = null; a = null; }
public C(IA a, IB b, IC c) { UsedConstructor = 4; }
public B(IC ic) { }
public A(IB ib, IC ic) { _ic = ic; _ib = ib; }
/// <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; }
public void Dispose() { ic = null; a = null; ran = null; }
void Foo2(IC b) { int i = b.Value; }
public D(IA a, IC c) { }
public void Consume(IC message) { }
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(); }
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); }
{ public B(IC c) { } }
public void Dispose() { ic = null; }
public AClassTestable1683(IA a, IB b, IC c) { A = a; B = b; C = c; }
public TwoConstructorsAttributes(IC a) { }
public A2(IC c) { }
public IA Test (IC b) { IA a = b; return a; }
public Abc(IA a, IB b, IC c) { Console.WriteLine("Abc.ctor()"); }
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); }
public AClassTestable3527(IA a, IB b, IC c) { A = a; B = b; C = c; }
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; }
public B(IC c) { C = c; }
public F(IC c, string first, int second) { _c = c; _first = first; _second = second; }
public HasMultipleConstructors(IA a, IB b, IC c) : this(a, b) { C = c; }
public A(IC c) { }
public HasMultipleConstructors(IA a, IB b, IC c, ID d) : this(a, b, c) { D = d; }
void Foo2 (IC b) { int i = b.Value; }
public HasMultipleConstructors(IA a, IB b, IC c, ID d, IE e) : this(a, b, c, d) { E = e; }
/// <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; }
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; }