CmdletExtensions.SafeCopyValue Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SafeCopyValue<T>(FieldInfo, T, T) | |
SafeCopyValue<T>(PropertyInfo, T, T) |
SafeCopyValue<T>(FieldInfo, T, T)
public static void SafeCopyValue<T> (this System.Reflection.FieldInfo field, T source, T target);
static member SafeCopyValue : System.Reflection.FieldInfo * 'T * 'T -> unit
<Extension()>
Public Sub SafeCopyValue(Of T) (field As FieldInfo, source As T, target As T)
Type Parameters
- T
Parameters
- field
- FieldInfo
- source
- T
- target
- T
Applies to
SafeCopyValue<T>(PropertyInfo, T, T)
public static void SafeCopyValue<T> (this System.Reflection.PropertyInfo property, T source, T target);
static member SafeCopyValue : System.Reflection.PropertyInfo * 'T * 'T -> unit
<Extension()>
Public Sub SafeCopyValue(Of T) (property As PropertyInfo, source As T, target As T)
Type Parameters
- T
Parameters
- property
- PropertyInfo
- source
- T
- target
- T