private void SetTypeConverters()
{
Type[] numberTypes = new Type[] {
typeof(ulong), typeof(uint), typeof(ushort), typeof(byte),
typeof(long), typeof(int), typeof(short), typeof(sbyte)};
foreach (Type t in numberTypes)
{
TypeDescriptionProvider m_OriginalProvider = TypeDescriptor.GetProvider(t);
TypeDescriptionProvider hexProvider = (TypeDescriptionProvider)Activator.CreateInstance(typeof(IntToHexTypeDescriptionProvider<>).MakeGenericType(new Type[] { t }), new object[] { m_OriginalProvider }); ;
TypeDescriptor.AddProvider(hexProvider, t);
}
TypeDescriptor.AddAttributes(typeof(Offset), new EditorAttribute(typeof(OffsetUIEditor), typeof(UITypeEditor)));
TypeDescriptor.AddAttributes(typeof(IMemberSignature), new EditorAttribute(typeof(PropertyGridUIEditor), typeof(UITypeEditor)));
}