static void Main(string[] args) { //ClassLibraryTest.Test oj = new ClassLibraryTest.Test(); //oj.NewFun(); FirstType ff = new FirstType(); ff.MyFunTwo(); //InvokeMethodSlow(@"C:\Mahesh\Projects\Complier\CompilerWriting\bin\Debug\ClassLibraryTest.dll","Test","NewFun",new object[0] {}); }
public void InsertionSort_by_OperatorByDelegate2() { var notSortedArray = GetNotSortedArray; var sortedArray = GetNotSortedArray.OrderBy(x => x); var result = FirstType.sort_delegate(notSortedArray, (x, z) => x > z); Assert.AreEqual(sortedArray, result); }
public void InsertionSort_by_OperatorByDescending() { var notSortedArray = GetNotSortedArray; var sortedArray = GetNotSortedArray.OrderByDescending(x => x); var result = FirstType.insertionSortOperator(notSortedArray, true); Assert.AreEqual(sortedArray, result); }
public void InsertionSort_Sort_ByAscending() { var notSortedArray = GetNotSortedArray; var sortedArray = GetNotSortedArray.OrderBy(x => x); var result = FirstType.insertionSort(notSortedArray); Assert.AreEqual(sortedArray, result); }
public static FirstType GetFirstType(int value) { var item = new FirstType(value); if (_lookup.TryGetValue(item, out var found)) { return((FirstType)found); } _lookup.Add(item); return(item); }
protected override string InnerTranslate() { string initializerStr = ""; if (!IsIgnoreInitialize) { initializerStr = GetInitializerStr(); } if (FirstType == null) { return(string.Format("{0} {1}", Identifier.Translate(), initializerStr)); } else { return(string.Format("{0}:{1} {2}", Identifier.Translate(), FirstType.Translate(), initializerStr)); } }
public void Method(FirstType item, Func<object> action) { }
public bool Upd(FirstType model) { return(dal.Upd(model)); }
public bool Del(FirstType model) { return(dal.Del(model)); }
public bool Ins(FirstType model) { return(dal.Ins(model)); }
public First(string text, FirstType type, char letter = '\0') { this.Text = text; this.Type = type; this.Letter = letter; }
protected override void LLWrite(ICodeWriter writer, object o) { FirstType.Write(writer, o); writer.Write(String.Format(" {0} ", IsInheritance ? ":" : "=="), true); SecondType.Write(writer, o); }
public void Method(FirstType item, Func <object> action) { }
public override string ToSql() { return($"tuple<{FirstType.ToSql()}, {SecondType.ToSql()}>"); }