mirror of
https://github.com/Orbmu2k/nvidiaProfileInspector.git
synced 2025-12-23 23:18:07 -05:00
31 lines
778 B
C#
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);
|
|
}
|
|
}
|
|
}
|