本文整理汇总了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);
}
}
}
}
示例2: EmployeeDayTimeResult
protected EmployeeDayTimeResult(SerializationInfo info, StreamingContext context)
{
_contractBegin = info.GetDateTime("cb");
_contractEnd = info.GetDateTime("ce");
_coefficient = info.GetDecimal("dt");
_employeeID = info.GetInt64("em");
}
示例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");
}
示例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");
}
示例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");
}
示例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.
}
示例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");
}
示例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");
}
示例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");
}
示例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");
}
示例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");
}
示例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");
}
示例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));
}
示例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");
}
示例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;
}