public form() { InitializeComponent(); string[] names = new string[] { "left", "top", "right", "bottom" }; sets = new stateSearcher.ascii <Action>(names, names.getArray(name => (Action)Delegate.CreateDelegate(typeof(Action), this, "set_" + name))); incs = new stateSearcher.ascii <Action <int> >(names, names.getArray(name => (Action <int>)Delegate.CreateDelegate(typeof(Action <int>), this, "inc_" + name))); foreach (string name in names) { sets.Get(name)(); } }
static ajaxLoader() { string[] names = new string[4]; fastCSharp.code.cSharp.ajax.call[] callMethods = new fastCSharp.code.cSharp.ajax.call[4]; names[0] = "pub.OpenFile"; callMethods[0] = new fastCSharp.code.cSharp.ajax.call(0, 4194304, 65536, false, true); names[1] = "/include/codeMenu.html"; callMethods[1] = new fastCSharp.code.cSharp.ajax.call(1, 4194304, 65536, true, false, false); names[2] = "/index.html"; callMethods[2] = new fastCSharp.code.cSharp.ajax.call(2, 4194304, 65536, true, false, false); names[4 - 1] = fastCSharp.code.cSharp.ajax.PubErrorCallName; callMethods[4 - 1] = new fastCSharp.code.cSharp.ajax.call(4 - 1, 2048, 0, false, false); methods = new fastCSharp.stateSearcher.ascii <fastCSharp.code.cSharp.ajax.call>(names, callMethods, true); }
static ajaxLoader() { string[] names = new string[5]; fastCSharp.code.cSharp.ajax.call[] callMethods = new fastCSharp.code.cSharp.ajax.call[5]; names[0] = "loadBalancing.Start"; callMethods[0] = new fastCSharp.code.cSharp.ajax.call(0, 4194304, 65536, false, false); names[1] = "loadBalancing.Add"; callMethods[1] = new fastCSharp.code.cSharp.ajax.call(1, 4194304, 65536, false, false, false); names[2] = "loadBalancing.Xor"; callMethods[2] = new fastCSharp.code.cSharp.ajax.call(2, 4194304, 65536, false, false, false); names[3] = "/webView.html"; callMethods[3] = new fastCSharp.code.cSharp.ajax.call(3, 4194304, 65536, true, false, false); names[5 - 1] = fastCSharp.code.cSharp.ajax.PubErrorCallName; callMethods[5 - 1] = new fastCSharp.code.cSharp.ajax.call(5 - 1, 2048, 0, false, false); methods = new fastCSharp.stateSearcher.ascii <fastCSharp.code.cSharp.ajax.call>(names, callMethods, true); }
static ajaxLoader() { string[] names = new string[8]; fastCSharp.code.cSharp.ajax.call[] callMethods = new fastCSharp.code.cSharp.ajax.call[8]; names[0] = "pub.CrawlTitle"; callMethods[0] = new fastCSharp.code.cSharp.ajax.call(0, 4194304, 65536, false, true); names[1] = "pub.PasteImage"; callMethods[1] = new fastCSharp.code.cSharp.ajax.call(1, 4194304, 65536, false, true); names[2] = "user.Login"; callMethods[2] = new fastCSharp.code.cSharp.ajax.call(2, 4194304, 65536, false, true); names[3] = "user.Logout"; callMethods[3] = new fastCSharp.code.cSharp.ajax.call(3, 4194304, 65536, false, true); names[4] = "user.Send"; callMethods[4] = new fastCSharp.code.cSharp.ajax.call(4, 4194304, 65536, false, true); names[5] = "/chat.html"; callMethods[5] = new fastCSharp.code.cSharp.ajax.call(5, 4194304, 65536, true, false); names[6] = "/poll.html"; callMethods[6] = new fastCSharp.code.cSharp.ajax.call(6, 4194304, 65536, true, false); names[8 - 1] = fastCSharp.code.cSharp.ajax.PubErrorCallName; callMethods[8 - 1] = new fastCSharp.code.cSharp.ajax.call(8 - 1, 2048, 0, false, false); methods = new fastCSharp.stateSearcher.ascii <fastCSharp.code.cSharp.ajax.call>(names, callMethods, true); }
static ajaxLoader() { string[] names = new string[@MethodCount]; fastCSharp.code.cSharp.ajax.call[] callMethods = new fastCSharp.code.cSharp.ajax.call[@MethodCount]; #region LOOP Methods names[@MethodIndex] = "@CallName"; callMethods[@MethodIndex] = new fastCSharp.code.cSharp.ajax.call(@MethodIndex, @MaxPostDataSize, @MaxMemoryStreamSize, false /*PUSH:DefaultAttribute*/, @IsOnlyPost /*NOT:IsReferer*/, false /*NOT:IsReferer*//*PUSH:DefaultAttribute*/); #endregion LOOP Methods #region LOOP ViewMethods names[@MethodIndex] = "@CallName"; #region IF Attribute.IsPool callMethods[@MethodIndex] = new fastCSharp.code.cSharp.ajax.call(@MethodIndex, @MaxPostDataSize, @MaxMemoryStreamSize, true, false /*NOT:Attribute.IsReferer*/, false /*NOT:Attribute.IsReferer*/); #endregion IF Attribute.IsPool #region NOT Attribute.IsPool callMethods[@MethodIndex] = new fastCSharp.code.cSharp.ajax.call(@MethodIndex, @MaxPostDataSize, @MaxMemoryStreamSize, true, false /*NOT:Attribute.IsReferer*/, false /*NOT:Attribute.IsReferer*/); #endregion NOT Attribute.IsPool #endregion LOOP ViewMethods #region NOT IsPubError names[@MethodCount - 1 /*NOTE*/ + 1 /*NOTE*/] = fastCSharp.code.cSharp.ajax.PubErrorCallName /*IF:AutoParameter.WebConfig.IgnoreCase*/.ToLower() /*IF:AutoParameter.WebConfig.IgnoreCase*/; callMethods[@MethodCount - 1 /*NOTE*/ + 1 /*NOTE*/] = new fastCSharp.code.cSharp.ajax.call(@MethodCount - 1, 2048, 0, false, false); #endregion NOT IsPubError methods = new fastCSharp.stateSearcher.ascii <fastCSharp.code.cSharp.ajax.call>(names, callMethods, true); }