Exemple #1
0
        public void SetValue(object resource, string propertyName, object propertyValue)
        {
            string str;
            string str1;
            Tracer current = TraceHelper.Current;
            string str2    = "DataServiceUpdateProvider";
            string str3    = "SetValue";

            if (resource == null)
            {
                str = "null";
            }
            else
            {
                str = resource.ToString();
            }
            string str4 = propertyName;

            if (propertyValue == null)
            {
                str1 = "null";
            }
            else
            {
                str1 = propertyValue.ToString();
            }
            current.MethodCall3(str2, str3, str, str4, str1);
            IUpdateInstance instanceFromHandle = this.GetInstanceFromHandle(resource);

            instanceFromHandle.SetValue(propertyName, propertyValue);
        }