Cuemon .NET Framework
FromObject(Object,Boolean,IFormatProvider,String,Doer<PropertyInfo,Object,IFormatProvider,String>) Method

The instance to represent.
Specify true to bypass the check for if a ToString() method is overriden; otherwise, false to use default behaviour, where an overriden method will return without further processing.
An object that supplies culture-specific formatting information.
The delimiter specification for when representing public properties of instance.
The function delegate that convert System.Reflection.PropertyInfo objects to human-readable content.
Returns a System.String that represents the specified instance.
Syntax
'Declaration
 
Public Overloads Shared Function FromObject( _
   ByVal instance As Object, _
   ByVal bypassOverrideCheck As Boolean, _
   ByVal provider As IFormatProvider, _
   ByVal delimiter As String, _
   ByVal propertyConverter As Cuemon.Doer(Of PropertyInfo,Object,IFormatProvider,String) _
) As String
public static string FromObject( 
   object instance,
   bool bypassOverrideCheck,
   IFormatProvider provider,
   string delimiter,
   Cuemon.Doer<PropertyInfo,object,IFormatProvider,string> propertyConverter
)

Parameters

instance
The instance to represent.
bypassOverrideCheck
Specify true to bypass the check for if a ToString() method is overriden; otherwise, false to use default behaviour, where an overriden method will return without further processing.
provider
An object that supplies culture-specific formatting information.
delimiter
The delimiter specification for when representing public properties of instance.
propertyConverter
The function delegate that convert System.Reflection.PropertyInfo objects to human-readable content.

Return Value

A System.String that represents the specified instance.
Remarks
When determining the representation of the specified instance, these rules applies:
1: if the System.Object.ToString method has been overridden, any further processing is skipped
2: any public properties having index parameters is skipped
3: any public properties is appended to the result if System.Object.ToString has not been overridden.

Note: do not call this method from an overridden ToString(..) method without setting bypassOverrideCheck to true; otherwise a stackoverflow exception will occur.
Requirements

Target Platforms: Windows 8, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

StringConverter Class
StringConverter Members
Overload List

 

 


| Cuemon is licensed under a The MIT License (MIT)



© 2009-2015 Weubphoria. All Rights Reserved.

Documentation made easy with Document! X by Innovasys

Send Feedback