Nevron .NET Vision
Nevron.Reflection Namespace / NReflector Class / ReplaceFieldValue Method


In This Topic
    ReplaceFieldValue Method
    In This Topic
    Replaces the field with the specified value and returns a copy of the old one
    Syntax
    'Declaration
     
    
    Public Shared Function ReplaceFieldValue( _
       ByVal obj As System.Object, _
       ByVal fieldName As System.String, _
       ByVal newValue As System.Object _
    ) As System.Object
    'Usage
     
    
    Dim obj As System.Object
    Dim fieldName As System.String
    Dim newValue As System.Object
    Dim value As System.Object
     
    value = NReflector.ReplaceFieldValue(obj, fieldName, newValue)
    public static System.object ReplaceFieldValue( 
       System.object obj,
       System.string fieldName,
       System.object newValue
    )

    Parameters

    obj
    fieldName
    newValue
    Requirements

    Target Platforms: 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