Click or drag to resize

CodePrinterToArrayInitializerCode Method

Prints many code items as array initializer.

Namespace:  SphinxConnector.FluentApi.Helpers
Assembly:  SphinxConnector (in SphinxConnector.dll) Version: 5.2.0
Syntax
public static string ToArrayInitializerCode(
	this IEnumerable items,
	Type itemType,
	CodePrinterObjectToCode notRecognizedToCode,
	bool stripNamespace = false,
	Func<Type, string, string> printType = null
)

Parameters

items
Type: System.CollectionsIEnumerable

[Missing <param name="items"/> documentation for "M:SphinxConnector.FluentApi.Helpers.CodePrinter.ToArrayInitializerCode(System.Collections.IEnumerable,System.Type,SphinxConnector.FluentApi.Helpers.CodePrinter.ObjectToCode,System.Boolean,System.Func{System.Type,System.String,System.String})"]

itemType
Type: SystemType

[Missing <param name="itemType"/> documentation for "M:SphinxConnector.FluentApi.Helpers.CodePrinter.ToArrayInitializerCode(System.Collections.IEnumerable,System.Type,SphinxConnector.FluentApi.Helpers.CodePrinter.ObjectToCode,System.Boolean,System.Func{System.Type,System.String,System.String})"]

notRecognizedToCode
Type: SphinxConnector.FluentApi.HelpersCodePrinterObjectToCode

[Missing <param name="notRecognizedToCode"/> documentation for "M:SphinxConnector.FluentApi.Helpers.CodePrinter.ToArrayInitializerCode(System.Collections.IEnumerable,System.Type,SphinxConnector.FluentApi.Helpers.CodePrinter.ObjectToCode,System.Boolean,System.Func{System.Type,System.String,System.String})"]

stripNamespace (Optional)
Type: SystemBoolean

[Missing <param name="stripNamespace"/> documentation for "M:SphinxConnector.FluentApi.Helpers.CodePrinter.ToArrayInitializerCode(System.Collections.IEnumerable,System.Type,SphinxConnector.FluentApi.Helpers.CodePrinter.ObjectToCode,System.Boolean,System.Func{System.Type,System.String,System.String})"]

printType (Optional)
Type: SystemFuncType, String, String

[Missing <param name="printType"/> documentation for "M:SphinxConnector.FluentApi.Helpers.CodePrinter.ToArrayInitializerCode(System.Collections.IEnumerable,System.Type,SphinxConnector.FluentApi.Helpers.CodePrinter.ObjectToCode,System.Boolean,System.Func{System.Type,System.String,System.String})"]

Return Value

Type: String

[Missing <returns> documentation for "M:SphinxConnector.FluentApi.Helpers.CodePrinter.ToArrayInitializerCode(System.Collections.IEnumerable,System.Type,SphinxConnector.FluentApi.Helpers.CodePrinter.ObjectToCode,System.Boolean,System.Func{System.Type,System.String,System.String})"]

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerable. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also