本文整理汇总了C#中Library.GetType方法的典型用法代码示例。如果您正苦于以下问题:C# Library.GetType方法的具体用法?C# Library.GetType怎么用?C# Library.GetType使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Library
的用法示例。
在下文中一共展示了Library.GetType方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Write3_Title
private void Write3_Title(string n, string ns, Library.Code.V3.XmlSerializationReaderDvdInfo.Title o, bool needType)
{
if (!needType && (o.GetType() != typeof(Library.Code.V3.XmlSerializationReaderDvdInfo.Title)))
{
throw base.CreateUnknownTypeException(o);
}
base.WriteStartElement(n, ns, o, false, null);
if (needType)
{
base.WriteXsiType("Title", "");
}
base.WriteElementString("titleNum", "", o.TitleNumber);
base.WriteElementString("titleTitle", "", o.Name);
base.WriteElementString("studio", "", o.Studio);
base.WriteElementString("director", "", o.Director);
base.WriteElementString("leadPerformer", "", o.LeadPerformer);
base.WriteElementString("MPAARating", "", o.MPAARating);
base.WriteElementString("genre", "", o.Genre);
base.WriteElementString("synopsis", "", o.Synopsis);
Library.Code.V3.XmlSerializationReaderDvdInfo.Chapter[] chapters = o.Chapters;
if (chapters != null)
{
for (int i = 0; i < chapters.Length; i++)
{
this.Write2_Chapter("chapter", "", chapters[i], false);
}
}
base.WriteEndElement(o);
}
示例2: Write4_MdrDvd
private void Write4_MdrDvd(string n, string ns, Library.Code.V3.XmlSerializationReaderDvdInfo.MdrDvd o, bool needType)
{
if (!needType && (o.GetType() != typeof(Library.Code.V3.XmlSerializationReaderDvdInfo.MdrDvd)))
{
throw base.CreateUnknownTypeException(o);
}
base.WriteStartElement(n, ns, o, false, null);
if (needType)
{
base.WriteXsiType("MdrDvd", "");
}
base.WriteElementStringRaw("MetadataExpires", "", XmlSerializationWriter.FromDateTime(o.MetadataExpires));
base.WriteElementString("version", "", o.Version);
base.WriteElementString("dvdTitle", "", o.Name);
base.WriteElementString("studio", "", o.Studio);
base.WriteElementString("leadPerformer", "", o.LeadPerformer);
base.WriteElementString("director", "", o.Director);
base.WriteElementString("MPAARating", "", o.MPAARating);
base.WriteElementString("language", "", o.Language);
base.WriteElementString("releaseDate", "", o.ReleaseDate);
base.WriteElementString("genre", "", o.Genre);
base.WriteElementString("largeCoverParams", "", o.LargeCoverUrl);
base.WriteElementString("smallCoverParams", "", o.SmallCoverUrl);
base.WriteElementString("dataProvider", "", o.DataProvider);
base.WriteElementString("duration", "", o.Duration);
Library.Code.V3.XmlSerializationReaderDvdInfo.Title[] titles = o.Titles;
if (titles != null)
{
for (int i = 0; i < titles.Length; i++)
{
this.Write3_Title("title", "", titles[i], false);
}
}
base.WriteEndElement(o);
}
示例3: Write2_Chapter
private void Write2_Chapter(string n, string ns, Library.Code.V3.XmlSerializationReaderDvdInfo.Chapter o, bool needType)
{
if (!needType && (o.GetType() != typeof(Library.Code.V3.XmlSerializationReaderDvdInfo.Chapter)))
{
throw base.CreateUnknownTypeException(o);
}
base.WriteStartElement(n, ns, o, false, null);
if (needType)
{
base.WriteXsiType("Chapter", "");
}
base.WriteElementString("chapterNum", "", o.ChapterNumber);
base.WriteElementString("chapterTitle", "", o.Name);
base.WriteEndElement(o);
}