当前位置: 首页>>代码示例>>C#>>正文


C# Library.GetType方法代码示例

本文整理汇总了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);
 }
开发者ID:peeboo,项目名称:open-media-library,代码行数:29,代码来源:DVDChangerItem.cs

示例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);
 }
开发者ID:peeboo,项目名称:open-media-library,代码行数:35,代码来源:DVDChangerItem.cs

示例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);
 }
开发者ID:peeboo,项目名称:open-media-library,代码行数:15,代码来源:DVDChangerItem.cs


注:本文中的Library.GetType方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。