TH2 Add operator get for ExternalCodecContextProperty enum
@@ -45,6 +45,6 @@ interface IExternalCodecContext {
}
}
-inline operator fun <reified T> IExternalCodecContext.get(propertyName: String): T? {
- return get(propertyName, T::class.java)
-}
\ No newline at end of file
+inline operator fun <reified T> IExternalCodecContext.get(propertyName: String): T? = get(propertyName, T::class.java)
+
+inline operator fun <reified T> IExternalCodecContext.get(property: ExternalCodecContextProperty): T? = get(property.propertyName)
\ No newline at end of file
