本文整理汇总了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");