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


C# System.GetValue方法代码示例

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


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

示例1: APIError

 public APIError(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
     : base(info, context)
 {
     Error = (string)info.GetValue("error", typeof(string));
     HttpStatusCode = (int)info.GetValue("@http_status_code", typeof(int));
     Warnings = (List<string>)info.GetValue("warnings", typeof(List<string>));
 }
开发者ID:piplcom,项目名称:piplapis-csharp,代码行数:7,代码来源:APIError.cs

示例2: CryExtInfo

        protected CryExtInfo(System.Runtime.Serialization.SerializationInfo info, 
		                      System.Runtime.Serialization.StreamingContext context)
        {
            this.Count = info.GetInt32 ("Count");
            this.Key = (byte[])info.GetValue ("Key", typeof(byte[]));
            this.Salt = (byte[])info.GetValue ("Salt", typeof(byte[]));
        }
开发者ID:shby0527,项目名称:Mohachi,代码行数:7,代码来源:PBKDF2.cs

示例3: ParserStack

 ParserStack( System.Runtime.Serialization.SerializationInfo info,
     System.Runtime.Serialization.StreamingContext context)
 {
     this.states = (List<int>)info.GetValue("States", typeof(List<int>));
     this.States = this.states.AsReadOnly();
     this.symbols = (List<Symbol>)info.GetValue("Symbols", typeof(List<Symbol>));
     this.Symbols = this.symbols.AsReadOnly();
 }
开发者ID:mqrelly,项目名称:Syntan,代码行数:8,代码来源:ParserStack.cs

示例4: HandlerNotFoundException

			protected HandlerNotFoundException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
				: base (info, context)
			{
				handler_name = info.GetString ("HandlerName");
				signal_name = info.GetString ("SignalName");
				evnt = info.GetValue ("Event", typeof (System.Reflection.EventInfo)) as System.Reflection.EventInfo;
				delegate_type = info.GetValue ("DelegateType", typeof (Type)) as Type;
			}
开发者ID:liberostelios,项目名称:gtk-sharp,代码行数:8,代码来源:Builder.cs

示例5: IS24Exception

 /// <summary>
 /// Initializes a new instance of the Exception class with serialized data.
 /// </summary>
 /// <param name="info">The SerializationInfo that holds the serialized object data about the exception being thrown.</param>
 /// <param name="context">The StreamingContext that contains contextual information about the source or destination.</param>
 protected IS24Exception(
   System.Runtime.Serialization.SerializationInfo info,
   System.Runtime.Serialization.StreamingContext context)
     : base(info, context)
 {
     Messages = (Messages)info.GetValue("Messages", typeof(Messages));
     StatusCode = (HttpStatusCode)info.GetValue("StatusCode", typeof(HttpStatusCode));
 }
开发者ID:enkol,项目名称:IS24RestApi,代码行数:13,代码来源:IS24Exception.cs

示例6: RemoteVolume

 public RemoteVolume(System.Data.IDataReader rd)
 {
     this.ID = Convert.ToInt64(rd.GetValue(0));
     this.Name = rd.GetValue(1).ToString();
     this.Size = Convert.ToInt64(rd.GetValue(2));
     this.Hash = rd.GetValue(3).ToString();
     this.VerificationCount = Convert.ToInt64(rd.GetValue(4));
 }
开发者ID:admz,项目名称:duplicati,代码行数:8,代码来源:LocalTestDatabase.cs

示例7: SettingsState

 public SettingsState(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext ctxt)
 {
     this.tidVist = (Decimal)info.GetValue("tidvist", typeof(Decimal));
     this.tidFoerFortoning = (Decimal)info.GetValue("tidfoerfortoning", typeof(Decimal)); ;
     this.tidFortoning = (Decimal)info.GetValue("tidfortoning", typeof(Decimal)); ;
     this.tidVend = (Decimal)info.GetValue("tidvend", typeof(Decimal)); ;
     this.screen = (string)info.GetValue("skaerm", typeof(string));
 }
开发者ID:Wirack,项目名称:vendespil,代码行数:8,代码来源:SettingsState.cs

示例8: SetObjectData

      /// <summary>
      /// Deserializes the DensityImagePlotItem Version 0.
      /// </summary>
      /// <param name="obj">The empty DensityImagePlotItem object to deserialize into.</param>
      /// <param name="info">The serialization info.</param>
      /// <param name="context">The streaming context.</param>
      /// <param name="selector">The deserialization surrogate selector.</param>
      /// <returns>The deserialized DensityImagePlotItem.</returns>
      public object SetObjectData(object obj,System.Runtime.Serialization.SerializationInfo info,System.Runtime.Serialization.StreamingContext context,System.Runtime.Serialization.ISurrogateSelector selector)
      {
        DensityImagePlotItem s = (DensityImagePlotItem)obj;

        s.m_PlotAssociation = (XYZMeshedColumnPlotData)info.GetValue("Data",typeof(XYZMeshedColumnPlotData));
        s.m_PlotStyle = (DensityImagePlotStyle)info.GetValue("Style",typeof(DensityImagePlotStyle));
    
        return s;
      }
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:17,代码来源:DensityImagePlotItem.cs

示例9: getIntProperty

		/// <summary> Read the specified integer property.
		/// <p>
		/// Throws an exception if the property value isn't an integer.
		/// *
		/// </summary>
		/// <param name="key">the name of the property
		/// </param>
		/// <returns> the integer value of the property
		/// 
		/// </returns>
		public static int getIntProperty(System.Configuration.AppSettingsReader properties, System.Object key)
		{
			System.String string_Renamed = (System.String) properties.GetValue(key.ToString(), Type.GetType("System.String"));
			
			if (string_Renamed == null)
				System.Console.Error.WriteLine("WARN: couldn't find integer value under '" + key + "'");
			
			return System.Int32.Parse((System.String) properties.GetValue(key.ToString(), Type.GetType("System.String")));
		}
开发者ID:jiangguang5201314,项目名称:VMukti,代码行数:19,代码来源:PropertyHelper.cs

示例10: SetObjectData

      /// <summary>
      /// Deserializes the XYColumnPlotItem Version 0.
      /// </summary>
      /// <param name="obj">The empty XYColumnPlotItem object to deserialize into.</param>
      /// <param name="info">The serialization info.</param>
      /// <param name="context">The streaming context.</param>
      /// <param name="selector">The deserialization surrogate selector.</param>
      /// <returns>The deserialized XYColumnPlotItem.</returns>
      public object SetObjectData(object obj, System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context, System.Runtime.Serialization.ISurrogateSelector selector)
      {
        XYColumnPlotItem s = (XYColumnPlotItem)obj;

        s.Data = (XYColumnPlotData)info.GetValue("Data", typeof(XYColumnPlotData));
        s.Style = (G2DPlotStyleCollection)info.GetValue("Style", typeof(G2DPlotStyleCollection));

        return s;
      }
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:17,代码来源:XYColumnPlotItem.cs

示例11: Html

        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="info">The SerializationInfo to get the data from.</param>
        /// <param name="context">The destination (see System.Runtime.Serialization.StreamingContext) for this serialization.</param>
        protected Html(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
        {
            if (info == null)
                throw new System.ArgumentNullException("info");

            htmlData = (string)info.GetValue("htmlData", typeof(string));
            flowDocumentData = (string)info.GetValue("flowDocumentData", typeof(string));
            vModellDirectory = (string)info.GetValue("vModellDirectory", typeof(string));
        }
开发者ID:apoorv-vijay-joshi,项目名称:FSE-2011-PDE,代码行数:14,代码来源:Html.cs

示例12: FileSyncException

 protected FileSyncException(System.Runtime.Serialization.SerializationInfo info,
     System.Runtime.Serialization.StreamingContext context)
     : base(info, context)
 {
     if (info != null)
     {
         this.Operation = (FileSyncOperation)info.GetValue("Operation", typeof(FileSyncOperation));
         this.SourceFile = (IcyFileSystemInfo)info.GetValue("SourceFile", typeof(IcyFileSystemInfo));
         this.DestinationFile = (IcyFileSystemInfo)info.GetValue("DestinationFile", typeof(IcyFileSystemInfo));
     }
 }
开发者ID:GAMP,项目名称:DataInterfaces,代码行数:11,代码来源:Exceptions.cs

示例13: ClearAll

        public void ClearAll()
        {
            // Type
            Array @this = new[] {"Fizz", "Buzz"};

            // Exemples
            @this.ClearAll(); // Remove all entries.

            // Unit Test
            Assert.AreEqual(null, @this.GetValue(0));
            Assert.AreEqual(null, @this.GetValue(1));
        }
开发者ID:fqybzhangji,项目名称:Z.ExtensionMethods,代码行数:12,代码来源:Array.ClearAll.cs

示例14: TaskService

 private TaskService(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
 {
     this.BeginInit();
     this.AllowReadOnlyTasks = false;
     this.TargetServer = (string)info.GetValue("TargetServer", typeof(string));
     this.UserName = (string)info.GetValue("UserName", typeof(string));
     this.UserAccountDomain = (string)info.GetValue("UserAccountDomain", typeof(string));
     this.UserPassword = (string)info.GetValue("UserPassword", typeof(string));
     this.forceV1 = (bool)info.GetValue("forceV1", typeof(bool));
     ResetHighestSupportedVersion();
     this.EndInit();
 }
开发者ID:tablesmit,项目名称:task-scheduler-managed-wrapper,代码行数:12,代码来源:TaskService.cs

示例15: WriteArray

        public void WriteArray(System.Array _array)
        {
            // Initialise with symbol to indicate start of array
            StringBuilder.Append('[');

            switch (_array.Rank)
            {
            case 1:
                int _1DArrayLength				= _array.Length;

                for (int _iter = 0; _iter < _1DArrayLength; _iter++)
                {
                    if (_iter != 0)
                        StringBuilder.Append(',');

                    WriteObjectValue(_array.GetValue(_iter));
                }

                break;

            case 2:
                int _outerArrayLength				= _array.GetLength(0);
                int _innerArrayLength				= _array.GetLength(1);

                for (int _outerIter = 0; _outerIter < _outerArrayLength; _outerIter++)
                {
                    if (_outerIter != 0)
                        StringBuilder.Append(',');

                    // Append symbol to indicate start of json string representation of inner array
                    StringBuilder.Append('[');

                    for (int _innerIter = 0; _innerIter < _innerArrayLength; _innerIter++)
                    {
                        if (_innerIter != 0)
                            StringBuilder.Append(',');

                        WriteObjectValue(_array.GetValue(_outerIter, _innerIter));
                    }

                    // Append symbol to indicate end of json string representation of inner array
                    StringBuilder.Append(']');
                }

                break;
            }

            // Append symbol to indicate end of json string representation of array
            StringBuilder.Append(']');
            return;
        }
开发者ID:ASchvartzman,项目名称:518Project-ASK,代码行数:51,代码来源:JSONWriter.cs


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