HelpPageSampleGenerator..::..SampleObjectFactories Property

Gets factories for the objects that the supported formatters will serialize as samples. Processed in order, stopping when the factory successfully returns a non- object.

Namespace:  JiwaWebAPI.Areas.HelpPage
Assembly:  JiwaWebAPI (in JiwaWebAPI.dll)

Syntax


[SuppressMessageAttribute]
public IList<Func<HelpPageSampleGenerator, Type, Object>> SampleObjectFactories { get; set; }
<SuppressMessageAttribute> _
Public Property SampleObjectFactories As IList(Of Func(Of HelpPageSampleGenerator, Type, Object))
	Get
	Set
[SuppressMessageAttribute]
public:
property IList<Func<HelpPageSampleGenerator^, Type^, Object^>^>^ SampleObjectFactories {
	IList<Func<HelpPageSampleGenerator^, Type^, Object^>^>^ get ();
	void set (IList<Func<HelpPageSampleGenerator^, Type^, Object^>^>^ value);
}

Remarks


Collection includes just GenerateObject(Type) initially. Use
C#
SampleObjectFactories.Insert(0, func)
to provide an override and
C#
SampleObjectFactories.Add(func)
to provide a fallback.