本文整理匯總了C#中iTextSharp.text.List.GetType方法的典型用法代碼示例。如果您正苦於以下問題:C# List.GetType方法的具體用法?C# List.GetType怎麽用?C# List.GetType使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類iTextSharp.text.List
的用法示例。
在下文中一共展示了List.GetType方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: Main
//.........這裏部分代碼省略.........
// TEMP_Conversie = 0;
// TEMP_FlightMonday = false;
// TEMP_FlightTuesday = false;
// TEMP_FlightWednesday = false;
// TEMP_FlightThursday = false;
// TEMP_FlightFriday = false;
// TEMP_FlightSaterday = false;
// TEMP_FlightSunday = false;
// TEMP_DepartTime = new DateTime();
// TEMP_ArrivalTime = new DateTime();
// TEMP_FlightNumber = null;
// TEMP_Aircraftcode = null;
// TEMP_DurationTime = TimeSpan.MinValue;
// TEMP_FlightCodeShare = false;
// TEMP_FlightNextDayArrival = false;
// TEMP_FlightNextDays = 0;
// TEMP_FlightDirect = true;
//}
Console.WriteLine(value);
}
}
}
}
}
}
// You'll do something else with it, here I write it to a console window
// Console.WriteLine(text.ToString());
// Write the list of objects to a file.
System.Xml.Serialization.XmlSerializer writer =
new System.Xml.Serialization.XmlSerializer(CIFLights.GetType());
string myDir = AppDomain.CurrentDomain.BaseDirectory + "\\output";
Directory.CreateDirectory(myDir);
StreamWriter file =
new System.IO.StreamWriter("output\\output.xml");
writer.Serialize(file, CIFLights);
file.Close();
string gtfsDir = AppDomain.CurrentDomain.BaseDirectory + "\\gtfs";
System.IO.Directory.CreateDirectory(gtfsDir);
Console.WriteLine("Reading IATA Airports....");
string IATAAirportsFile = AppDomain.CurrentDomain.BaseDirectory + "IATAAirports.json";
JArray o1 = JArray.Parse(File.ReadAllText(IATAAirportsFile));
IList<IATAAirport> TempIATAAirports = o1.ToObject<IList<IATAAirport>>();
var IATAAirports = TempIATAAirports as List<IATAAirport>;
Console.WriteLine("Creating GTFS Files...");
Console.WriteLine("Creating GTFS File agency.txt...");
using (var gtfsagency = new StreamWriter(@"gtfs\\agency.txt"))
{
var csv = new CsvWriter(gtfsagency);
csv.Configuration.Delimiter = ",";
csv.Configuration.Encoding = Encoding.UTF8;
csv.Configuration.TrimFields = true;
// header
csv.WriteField("agency_id");
csv.WriteField("agency_name");
csv.WriteField("agency_url");
csv.WriteField("agency_timezone");
csv.WriteField("agency_lang");