public HelloExtension(UInt16 type, byte[] data) { if (data == null) { throw new AlertException(AlertDescription.InternalError, "Trying to create HandshakeExtension with null data"); } Type = type; Data = data; }