Пример #1
0
 /// <summary>
 /// Transform the default value of the property to a different value
 /// </summary>
 /// <param name="obj">Original value of the property</param>
 /// <param name="member">Property info</param>
 /// <param name="i">Current slice</param>
 /// <returns>The resulting transformed object</returns>
 public virtual object TransformDefaultValue(object obj, PropertyInfo member)
 {
     return(MiscExtensions.MapSystemNumericsValueToVVVV(obj));
 }
Пример #2
0
 /// <summary>
 /// Transform a property to a different value
 /// </summary>
 /// <param name="obj">Original value of the property</param>
 /// <param name="member">Property info</param>
 /// <param name="i">Current slice</param>
 /// <returns>The resulting transformed object</returns>
 public virtual object TransformInput(object obj, PropertyInfo member, int i)
 {
     return(MiscExtensions.MapVVVVValueToSystemNumerics(obj));
 }
Пример #3
0
 /// <summary>
 /// Transform a field or a property to a different value
 /// </summary>
 /// <param name="obj">Original value of the field / property</param>
 /// <param name="member">Field / Property info</param>
 /// <param name="i">Current slice</param>
 /// <param name="stopwatchtoseconds"></param>
 /// <returns>The resulting transformed object</returns>
 public virtual object TransformOutput(object obj, MemberInfo member, int i)
 {
     return(MiscExtensions.MapSystemNumericsValueToVVVV(obj, StopWatchToSeconds));
 }
Пример #4
0
 /// <summary>
 /// Transform the type a property to a different one
 /// </summary>
 /// <param name="original">Original type of the property</param>
 /// <param name="member">Property info</param>
 /// <returns>The resulting transformed type</returns>
 public virtual Type TransformType(Type original, PropertyInfo member)
 {
     return(MiscExtensions.MapSystemNumericsTypeToVVVV(original));
 }
Пример #5
0
 /// <summary>
 /// Transform the type of a field or a property to a different one
 /// </summary>
 /// <param name="original">Original type of the field / property</param>
 /// <param name="member">Field / Property info</param>
 /// <returns>The resulting transformed type</returns>
 public virtual Type TransformType(Type original, MemberInfo member)
 {
     return(MiscExtensions.MapSystemNumericsTypeToVVVV(original, StopWatchToSeconds));
 }