public static bool IsDefinedInSpec(this ScalarType type) { return(type.GetType().IsDefined( typeof(SpecScalarAttribute), false)); }