當前位置: 首頁>>代碼示例>>C#>>正文


C# SerializationInfo.GetInt64方法代碼示例

本文整理匯總了C#中System.Runtime.Serialization.SerializationInfo.GetInt64方法的典型用法代碼示例。如果您正苦於以下問題:C# SerializationInfo.GetInt64方法的具體用法?C# SerializationInfo.GetInt64怎麽用?C# SerializationInfo.GetInt64使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在System.Runtime.Serialization.SerializationInfo的用法示例。


在下文中一共展示了SerializationInfo.GetInt64方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: VideoFile

 private VideoFile(SerializationInfo info, DeserializeInfo di)
     : this(di.Server, di.Info, di.Type)
 {
     actors = info.GetValue("a", typeof(string[])) as string[];
       description = info.GetString("de");
       director = info.GetString("di");
       genre = info.GetString("g");
       title = info.GetString("t");
       try {
     width = info.GetInt32("w");
     height = info.GetInt32("h");
       }
       catch (Exception) {
       }
       var ts = info.GetInt64("du");
       if (ts > 0) {
     duration = new TimeSpan(ts);
       }
       try {
     bookmark = info.GetInt64("b");
       }
       catch (Exception) {
     bookmark = 0;
       }
       try {
     subTitle = info.GetValue("st", typeof(Subtitle)) as Subtitle;
       }
       catch (Exception) {
     subTitle = null;
       }
       initialized = true;
 }
開發者ID:vitska,項目名稱:simpleDLNA,代碼行數:32,代碼來源:VideoFile.cs

示例2: ParameterBindingException

 protected ParameterBindingException(SerializationInfo info, StreamingContext context) : base(info, context)
 {
     this.parameterName = string.Empty;
     this.line = -9223372036854775808L;
     this.offset = -9223372036854775808L;
     this.args = new object[0];
     this.message = info.GetString("ParameterBindingException_Message");
     this.parameterName = info.GetString("ParameterName");
     this.line = info.GetInt64("Line");
     this.offset = info.GetInt64("Offset");
 }
開發者ID:nickchal,項目名稱:pash,代碼行數:11,代碼來源:ParameterBindingException.cs

示例3: TransferProgressTracker

        /// <summary>
        /// Initializes a new instance of the <see cref="TransferProgressTracker"/> class.
        /// </summary>
        /// <param name="info">Serialization information.</param>
        /// <param name="context">Streaming context.</param>
        protected TransferProgressTracker(SerializationInfo info, StreamingContext context)
        {
            if (info == null)
            {
                throw new System.ArgumentNullException("info");
            }

            this.bytesTransferred = info.GetInt64(BytesTransferredName);
            this.numberOfFilesTransferred = info.GetInt64(FilesTransferredName);
            this.numberOfFilesSkipped = info.GetInt64(FilesSkippedName);
            this.numberOfFilesFailed = info.GetInt64(FilesFailedName);
        }
開發者ID:BeauGesteMark,項目名稱:azure-storage-net-data-movement,代碼行數:17,代碼來源:TransferProgressTracker.cs

示例4: StoreWorldDetail

 //
 protected StoreWorldDetail(SerializationInfo info, StreamingContext context)
 {
     _storeid = info.GetInt64("sid");
     _storeworldid = info.GetInt64 ("swid");
     _year = info.GetInt16("y");
     _available_work_time_hours = (decimal?)info.GetValue("_1", typeof(decimal?));
     _available_buffer_hours = (double?)info.GetValue("_2", typeof(double?));
     _business_volume_hours = (decimal?)info.GetValue("_3", typeof(decimal?));
     _targetedbusinessvolume = (decimal?)info.GetValue("_4", typeof(decimal?));
     _netbusinessvolume1 = (decimal?)info.GetValue("_5", typeof(decimal?));
     _netbusinessvolume2 = (decimal?)info.GetValue("_6", typeof(decimal?));
     _benchmark_perfomance = (double?)info.GetValue("_7", typeof(double?));
 }
開發者ID:5509850,項目名稱:baumax,代碼行數:14,代碼來源:StoreWorldDetail.cs

示例5: WindowInfo

		public WindowInfo( SerializationInfo info, StreamingContext context )
		{
			long pointer = info.GetInt64( "Handle" );

			// The pointer is serialized as a 64 bit integer, but the system might be 32 bit.
			Handle = IntPtr.Size == 8 ? new IntPtr( pointer ) : new IntPtr( (int)pointer );
		}
開發者ID:amithasan,項目名稱:Framework-Class-Library-Extension,代碼行數:7,代碼來源:WindowInfo.cs

示例6: FileWebResponse

 protected FileWebResponse(SerializationInfo serializationInfo, StreamingContext streamingContext) : base(serializationInfo, streamingContext)
 {
     this.m_headers = (WebHeaderCollection) serializationInfo.GetValue("headers", typeof(WebHeaderCollection));
     this.m_uri = (Uri) serializationInfo.GetValue("uri", typeof(Uri));
     this.m_contentLength = serializationInfo.GetInt64("contentLength");
     this.m_fileAccess = (FileAccess) serializationInfo.GetInt32("fileAccess");
 }
開發者ID:pritesh-mandowara-sp,項目名稱:DecompliedDotNetLibraries,代碼行數:7,代碼來源:FileWebResponse.cs

示例7: NewsManager

        /// <summary>
        /// Deserialization constructor.
        /// </summary>
        public NewsManager(SerializationInfo info, StreamingContext context)
        {
            _updateTimer.Interval = info.GetInt64("timerInterval");
            _updateTimer.Enabled = info.GetBoolean("timerEnabled");

            _updateTimer.Elapsed += new ElapsedEventHandler(_updateTimer_Elapsed);
        }
開發者ID:redrhino,項目名稱:DotNetConnectTerminal,代碼行數:10,代碼來源:NewsManager.cs

示例8: DeleteStatement

 private DeleteStatement(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     TableName = (ObjectName) info.GetValue("TableName", typeof (ObjectName));
     WhereExpression = (SqlExpression) info.GetValue("Where", typeof (SqlExpression));
     Limit = info.GetInt64("Limit");
 }
開發者ID:deveel,項目名稱:deveeldb,代碼行數:7,代碼來源:DeleteStatement.cs

示例9: NetworkEnvelope

 protected NetworkEnvelope(SerializationInfo info, StreamingContext context)
 {
     DispatchId = info.GetInt32(NetworkEnvelopeMetadataKeys.DispatchId);
     IssueDate = new DateTime(info.GetInt64(NetworkEnvelopeMetadataKeys.IssueDate));
     Error = (ServerError) info.GetValue("Error", typeof (ServerError));
     Message = (IMessage) info.GetValue("Message", typeof (IMessage));
 }
開發者ID:prepare,項目名稱:deveeldb,代碼行數:7,代碼來源:NetworkEnvelope.cs

示例10: 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

示例11: HttpWebResponse

 protected HttpWebResponse(SerializationInfo serializationInfo, StreamingContext streamingContext) : base(serializationInfo, streamingContext)
 {
     _webHeaderCollection = (WebHeaderCollection)serializationInfo.GetValue("_HttpResponseHeaders", typeof(WebHeaderCollection));
     _requestUri = (Uri)serializationInfo.GetValue("_Uri", typeof(Uri));
     Version version = (Version)serializationInfo.GetValue("_Version", typeof(Version));
     _isVersionHttp11 = version.Equals(HttpVersion.Version11);            
     ContentLength = serializationInfo.GetInt64("_ContentLength");                        
 }
開發者ID:Corillian,項目名稱:corefx,代碼行數:8,代碼來源:HttpWebResponse.cs

示例12: UnsupportedBencodeException

        protected UnsupportedBencodeException(SerializationInfo info, StreamingContext context)
            : base(info, context)
        {
            if (info == null)
                return;

            StreamPosition = info.GetInt64("StreamPosition");
        }
開發者ID:Trontastic,項目名稱:BencodeNET,代碼行數:8,代碼來源:UnsupportedBencodeException.cs

示例13: ConnectionParameters

 /// <summary>
 /// Creates a new <see cref="ConnectionParameters"/> from serialization parameters.
 /// </summary>
 /// <param name="info">The <see cref="SerializationInfo"/> with populated with data.</param>
 /// <param name="context">The source <see cref="StreamingContext"/> for this deserialization.</param>
 protected ConnectionParameters(SerializationInfo info, StreamingContext context)
 {
     // Deserialize connection parameters
     m_timeOffset = info.GetInt64("timeOffset");
     m_frameRate = info.GetUInt16("frameRate");
     m_nominalFrequency = (LineFrequency)info.GetValue("nominalFrequency", typeof(LineFrequency));
     m_stationName = info.GetString("stationName");
 }
開發者ID:avs009,項目名稱:gsf,代碼行數:13,代碼來源:ConnectionParameters.cs

示例14: RateLimit

        protected RateLimit(SerializationInfo info, StreamingContext context)
        {
            Ensure.ArgumentNotNull(info, "info");

            Limit = info.GetInt32("Limit");
            Remaining = info.GetInt32("Remaining");
            ResetAsUtcEpochSeconds = info.GetInt64("ResetAsUtcEpochSeconds");
        }
開發者ID:naveensrinivasan,項目名稱:octokit.net,代碼行數:8,代碼來源:RateLimit.cs

示例15: RateLimit

        protected RateLimit(SerializationInfo info, StreamingContext context)
        {
            Ensure.ArgumentNotNull(info, "info");

            Limit = info.GetInt32("Limit");
            Remaining = info.GetInt32("Remaining");
            Reset = new DateTimeOffset(info.GetInt64("Reset"), TimeSpan.Zero);
        }
開發者ID:JiyaoLee,項目名稱:octokit.net,代碼行數:8,代碼來源:RateLimit.cs


注:本文中的System.Runtime.Serialization.SerializationInfo.GetInt64方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。