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


C# SerializationInfo.GetDateTime方法代码示例

本文整理汇总了C#中System.Runtime.Serialization.SerializationInfo.GetDateTime方法的典型用法代码示例。如果您正苦于以下问题:C# SerializationInfo.GetDateTime方法的具体用法?C# SerializationInfo.GetDateTime怎么用?C# SerializationInfo.GetDateTime使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在System.Runtime.Serialization.SerializationInfo的用法示例。


在下文中一共展示了SerializationInfo.GetDateTime方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: RolePrincipal

 protected RolePrincipal(SerializationInfo info, StreamingContext context)
 {
     this._Version = info.GetInt32("_Version");
     this._ExpireDate = info.GetDateTime("_ExpireDate");
     this._IssueDate = info.GetDateTime("_IssueDate");
     try
     {
         this._Identity = info.GetValue("_Identity", typeof(IIdentity)) as IIdentity;
     }
     catch
     {
     }
     this._ProviderName = info.GetString("_ProviderName");
     this._Username = info.GetString("_Username");
     this._IsRoleListCached = info.GetBoolean("_IsRoleListCached");
     this._Roles = new HybridDictionary(true);
     string str = info.GetString("_AllRoles");
     if (str != null)
     {
         foreach (string str2 in str.Split(new char[] { ',' }))
         {
             if (this._Roles[str2] == null)
             {
                 this._Roles.Add(str2, string.Empty);
             }
         }
     }
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:28,代码来源:RolePrincipal.cs

示例2: EmployeeDayTimeResult

 protected EmployeeDayTimeResult(SerializationInfo info, StreamingContext context)
 {
     _contractBegin = info.GetDateTime("cb");
     _contractEnd = info.GetDateTime("ce");
     _coefficient = info.GetDecimal("dt");
     _employeeID = info.GetInt64("em");
 }
开发者ID:5509850,项目名称:baumax,代码行数:7,代码来源:EmployeeDayTimeResult.cs

示例3: Plate

 /// <summary>
 /// Initializes a new instance of the <see cref="Plate"/> class.
 /// </summary>
 /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo"/> from which to create a new instance.</param>
 /// <param name="context">The source (see <see cref="T:System.Runtime.Serialization.StreamingContext"/>) for this serialization.</param>
 public Plate(SerializationInfo info, StreamingContext context)
 {
     Content = (Well[])info.GetValue("Content", typeof(Well[]));
     Type = (IPlateType) info.GetValue("Type", typeof (IPlateType));
     Created = info.GetDateTime("Created");
     LastChanged = info.GetDateTime("LastChanged");
 }
开发者ID:m1ch4ls,项目名称:microplate,代码行数:12,代码来源:Plate.cs

示例4: RecurringSchedule

 protected RecurringSchedule(SerializationInfo info, StreamingContext context)
 {
     type = (RecurringScheduleUnit)info.GetValue("Type", typeof(RecurringScheduleUnit));
        frequency = (int)info.GetValue("Frequency", typeof(int));
        executionTime = (DateTime)info.GetValue("ExecutionTime", typeof(DateTime));
        weeklySchedule = (DaysOfWeek)info.GetValue("WeeklySchedule", typeof(DaysOfWeek));
        monthlySchedule = (int)info.GetValue("MonthlySchedule", typeof(int));
        LastRun = (DateTime)info.GetDateTime("LastRun");
        NextRunCache = (DateTime)info.GetDateTime("NextRun");
 }
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:10,代码来源:Schedule.cs

示例5: ReplayAttackException

        /// <summary>
        /// Deserializes an exception.
        /// </summary>
        private ReplayAttackException(SerializationInfo info, StreamingContext context)
            : base(info, context)
        {
            #region Sanity checks
            if (info == null) throw new ArgumentNullException("info");
            #endregion

            FeedUrl = new Uri(info.GetString("FeedUrl"));
            OldTime = info.GetDateTime("OldTime");
            NewTime = info.GetDateTime("NewTime");
        }
开发者ID:modulexcite,项目名称:0install-win,代码行数:14,代码来源:ReplayAttackException.cs

示例6: UserQuerySettings

        /// <summary>
        /// Overloaded constructor for deserialization of object
        /// </summary>
        /// <param name="info"></param>
        /// <param name="ctxt"></param>
        public UserQuerySettings(SerializationInfo info, StreamingContext ctxt)
        {
            this.DatabasePath = info.GetString(DB_PATH);
            this.SourceTable = info.GetString(SOURCE_TABLE);
            this.FromDate = info.GetDateTime(FROM_DATE);
            this.ToDate = info.GetDateTime(TO_DATE);
            this.DateFieldName = info.GetString(DATE_FIELDNAME);
            this.fields = new List<string>();

            this.recentFiles = (List<string>)info.GetValue(RECENT_FILES, typeof(List<string>));

            //not storing fields and localities a the moment.
        }
开发者ID:TomMonks,项目名称:HomeVisitTravelAnalyser,代码行数:18,代码来源:UserQuerySettings.cs

示例7: Person

 /// <summary>
 /// 
 /// </summary>
 /// <param name="info"></param>
 /// <param name="ctxt"></param>
 public Person(SerializationInfo info, StreamingContext ctxt)
 {
     _full_name = info.GetString("full_name");
     _sex = (Sex)info.GetValue("sex", typeof(Sex));
     _birth_date = info.GetDateTime("birth_date");
     _photo_path = info.GetString("photo_path");
 }
开发者ID:peeboo,项目名称:open-media-library,代码行数:12,代码来源:Person.cs

示例8: WfTransition

        protected WfTransition(SerializationInfo info, StreamingContext context)
        {
			this._ID = info.GetString("ID");
            this._FromActivity = (WfActivityBase)info.GetValue("FromActivity", typeof(WfActivityBase));
            this._ToActivity = (WfActivityBase)info.GetValue("ToActivity", typeof(WfActivityBase));
			this._IsAborted = info.GetBoolean("IsAborted");
			this._StartTime = info.GetDateTime("StartTime");
        }
开发者ID:jerryshi2007,项目名称:AK47Source,代码行数:8,代码来源:WfTransition.cs

示例9: PoeAccHandler

 public PoeAccHandler(SerializationInfo info, StreamingContext ctxt)
 {
     cookies = (CookieContainer)info.GetValue("cookies", typeof(CookieContainer));
     UserDisplayName = info.GetString("UserDisplayName");
     _UserLogin = info.GetString("userLogin");
     _UserPassword = info.GetString("userPassword");
     LastStashRefresh = info.GetDateTime("LastStashRefresh");
 }
开发者ID:Vycka,项目名称:PoeStasher,代码行数:8,代码来源:PoeAccHandler.cs

示例10: GridTransform

 public GridTransform(SerializationInfo info, StreamingContext context)
 {
     _mapPoints = info.GetValue("_mapPoints", typeof(MappingGridVector2[])) as MappingGridVector2[];
     _TriangleIndiciesCache = info.GetValue("_TriangleIndiciesCache", typeof(int[])) as int[];
     _CachedMappedBounds = (GridRectangle)info.GetValue("_CachedMappedBounds", typeof(GridRectangle));
     _CachedControlBounds = (GridRectangle)info.GetValue("_CachedControlBounds", typeof(GridRectangle));
     LastModified = info.GetDateTime("LastModified");
 }
开发者ID:abordt,项目名称:Viking,代码行数:8,代码来源:GridTransform.cs

示例11: Signature

 public Signature(SerializationInfo info, StreamingContext context)
 {
     Text = info.GetString("Text");
     DateTime = info.GetDateTime("DateTime");
     SecurityHash = (byte[]) info.GetValue("SecurityHash", typeof(byte[]));
     SecurityToken = (byte[])info.GetValue("SecurityToken", typeof(byte[]));
     UserName = info.GetString("UserName");
 }
开发者ID:onesimoh,项目名称:Andamio,代码行数:8,代码来源:Signature.cs

示例12: Song

 /// <summary>
 /// Deserializable constructor
 /// </summary>
 /// <param name="info"></param>
 /// <param name="ctxt"></param>
 public Song(SerializationInfo info, StreamingContext context)
 {
     this.ID = info.GetInt32("ID");
     this.Title = info.GetString("Title");
     this.TrackNumber = info.GetInt16("TrackNumber");
     this.Duration = (TimeSpan)info.GetValue("Duration", typeof(TimeSpan));
     this.SongLocation = (SongLocations)info.GetValue("SongLocation", typeof(SongLocations));
     this.UploadDate = info.GetDateTime("UploadDate");
 }
开发者ID:ssickles,项目名称:archive,代码行数:14,代码来源:Song.cs

示例13: BaseApplicationException

		/// <summary>
		/// Constructor used for deserialization of the exception class.
		/// </summary>
		/// <param name="info">Represents the SerializationInfo of the exception.</param>
		/// <param name="context">Represents the context information of the exception.</param>
		protected BaseApplicationException(SerializationInfo info, StreamingContext context) : base(info, context)
		{
			machineName = info.GetString("machineName");
			createdDateTime = info.GetDateTime("createdDateTime");
			appDomainName = info.GetString("appDomainName");
			threadIdentity = info.GetString("threadIdentity");
			windowsIdentity = info.GetString("windowsIdentity");
			additionalInformation = (NameValueCollection)info.GetValue("additionalInformation",typeof(NameValueCollection));
		}
开发者ID:pjeconde,项目名称:CedForecast,代码行数:14,代码来源:BaseApplicationException.cs

示例14: DocumentInformation

 /// <summary>
 /// Deserialization constructor
 /// </summary>
 /// <param name="info">The info.</param>
 /// <param name="context">The context.</param>
 protected DocumentInformation(SerializationInfo info, StreamingContext context)
 {
     if(Tracing.BinaryDeserializationSwitch.Enabled)
         Trace.WriteLine("Deserializing the fields of 'DocumentInformation'.");
     mAuthor = info.GetString("Author");
     mCreationDate = info.GetDateTime("CreationDate").ToString();
     mDescription = info.GetString("Description");
     mTitle = info.GetString("Title");
 }
开发者ID:JackWangCUMT,项目名称:mathnet-yttrium,代码行数:14,代码来源:DocumentInformation.Serialization.cs

示例15: WfProcess

		/// <summary>
		/// 
		/// </summary>
		/// <param name="info"></param>
		/// <param name="context"></param>
		protected WfProcess(SerializationInfo info, StreamingContext context)
		{
			this._ID = info.GetString("ID");
			this._ResourceID = info.GetString("ResourceID");
			this._Activities = (WfActivityCollection)info.GetValue("Activities", typeof(WfActivityCollection));
			this._Context = (WfProcessContext)info.GetValue("Context", typeof(WfProcessContext));

			this._Status = (WfProcessStatus)info.GetValue("Status", typeof(WfProcessStatus));
			this._StartTime = info.GetDateTime("StartTime");
			this._EndTime = info.GetDateTime("EndTime");
			this._Creator = (IUser)info.GetValue("Creator", typeof(IUser));
			this._OwnerDepartment = (IOrganization)info.GetValue("OwnerDepartment", typeof(IOrganization));

			this._EntryInfo = (WfBranchProcessInfo)info.GetValue("EntryInfo", typeof(WfBranchProcessInfo));
			this._LoadingType = (DataLoadingType)info.GetValue("LoadingType", typeof(DataLoadingType));

			WfProcessContextCache.Instance[this._ID] = this;
		}
开发者ID:jerryshi2007,项目名称:AK47Source,代码行数:23,代码来源:WfProcess.cs


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