 | CodePrinterObjectToCode Delegate |
Custom handler for output the object in valid C#. Note, the `printGenericTypeArgs` is excluded because it cannot be a open-generic object.
This handler is also used to allow user to fully control a Constant expression output
Namespace:
SphinxConnector.FluentApi.Helpers
Assembly:
SphinxConnector (in SphinxConnector.dll) Version: 5.2.0
Syntaxpublic delegate string ObjectToCode(
Object x,
bool stripNamespace = false,
Func<Type, string, string> printType = null
)
Public Delegate Function ObjectToCode (
x As Object,
Optional stripNamespace As Boolean = false,
Optional printType As Func(Of Type, String, String) = Nothing
) As String
Parameters
- x
- Type: SystemObject
- stripNamespace (Optional)
- Type: SystemBoolean
- printType (Optional)
- Type: SystemFuncType, String, String
Return Value
Type:
String
See Also