コード例 #1
0
 new internal static ShapeTypeNotSupportedException Throw <T>(T enumValue,
                                                              string messageSuffix = ExceptionMessages.MSG_NOT_SUPPORTED)
     where T : struct, IConvertible
 {
     return(new ShapeTypeNotSupportedException(Utils.GetEnumName(enumValue) + messageSuffix));
 }
コード例 #2
0
 internal static EnumNotImplementedException Throw <T>(T enumValue,
                                                       string messageSuffix = ExceptionMessages.MSG_NOT_IMPLEMENTED)
     where T : struct, IConvertible
 {
     return(new EnumNotImplementedException(Utils.GetEnumName(enumValue) + messageSuffix));
 }