Exemple #1
0
        public static bool TrySet <T>(this T context, string path, object value)
        {
            if (context == null || string.IsNullOrWhiteSpace(path))
            {
                return(false);
            }

            return(RUtils <T> .TrySet(context, path, value));
        }
Exemple #2
0
 public static void Set <T>(this T context, string path, object value)
 {
     RUtils <T> .Set(context, path, value);
 }
Exemple #3
0
 public static object Get <T>(this T context, string path)
 {
     return(RUtils <T> .Get(context, path));
 }
Exemple #4
0
 /// <summary>
 /// Returns value of property placed on <paramref name="path"/> with started point at <paramref name="context"/>.
 /// </summary>
 /// <param name="context">Object that has property on passed <paramref name="path"/></param>
 /// <param name="path">Path to requested property</param>
 /// <param name="value">Value</param>
 public static bool TryGet <T>(this T context, string path, out object value)
 {
     return(RUtils <T> .TryGet(context, path, out value));
 }