Skip to content

Commit a1ede65

Browse files
harishskcodemzs
authored andcommitted
Fixed #3207. Added an exception to the parameterless constructor for KeyType because it doesn't make sense to use it without a parameter (#3852)
1 parent 3401d7c commit a1ede65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.ML.Data/Data/SchemaDefinition.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public sealed class KeyTypeAttribute : Attribute
2828
/// </remarks>
2929
public KeyTypeAttribute()
3030
{
31-
31+
throw Contracts.ExceptNotSupp("Using KeyType without the Count parameter is not supported");
3232
}
3333

3434
/// <summary>

0 commit comments

Comments
 (0)