Ejemplo n.º 1
0
 public virtual object ConvertTo(
     PSObject sourceValue,
     Type destinationType,
     IFormatProvider formatProvider,
     bool ignoreCase)
 {
     return(this.ConvertTo(PSTypeConverter.GetSourceValueAsObject(sourceValue), destinationType, formatProvider, ignoreCase));
 }
Ejemplo n.º 2
0
 public virtual bool CanConvertTo(PSObject sourceValue, Type destinationType) => this.CanConvertTo(PSTypeConverter.GetSourceValueAsObject(sourceValue), destinationType);