Files
nvidiaProfileInspector/nspector/Common/Meta/SettingValue.cs
Orbmu2k 5cb91fabe8 init
2016-03-26 20:13:14 +01:00

31 lines
778 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace nspector.Common.Meta
{
internal class SettingValue<T>
{
public SettingMetaSource ValueSource;
public SettingValue(SettingMetaSource source)
{
ValueSource = source;
}
public int ValuePos { get; set; }
public string ValueName { get; set; }
public T Value { get; set; }
public override string ToString()
{
if (typeof(T) == typeof(uint))
return string.Format("Value=0x{0:X8}; ValueName={1};", Value, ValueName);
return string.Format("Value={0}; ValueName={1};", Value, ValueName);
}
}
}