コード例 #1
0
        private bool IsSpecified(JsonWriter writer, JsonProperty property, object target)
        {
            if (property.GetIsSpecified == null)
            {
                return(true);
            }

            bool isSpecified = property.GetIsSpecified(target);

            if (TraceWriter != null && TraceWriter.LevelFilter >= TraceLevel.Verbose)
            {
                TraceWriter.Trace(TraceLevel.Verbose, JsonPosition.FormatMessage(null, writer.Path, "IsSpecified result for property '{0}' on {1}: {2}".FormatWith(CultureInfo.InvariantCulture, property.PropertyName, property.DeclaringType, isSpecified)), null);
            }

            return(isSpecified);
        }
コード例 #2
0
    private bool IsSpecified(JsonProperty property, object target)
    {
      if (property.GetIsSpecified == null)
        return true;

      return property.GetIsSpecified(target);
    }
コード例 #3
0
    private bool IsSpecified(JsonWriter writer, JsonProperty property, object target)
    {
      if (property.GetIsSpecified == null)
        return true;

      bool isSpecified = property.GetIsSpecified(target);

      if (TraceWriter != null && TraceWriter.LevelFilter >= TraceLevel.Verbose)
        TraceWriter.Trace(TraceLevel.Verbose, JsonPosition.FormatMessage(null, writer.Path, "IsSpecified result for property '{0}' on {1}: {2}".FormatWith(CultureInfo.InvariantCulture, property.PropertyName, property.DeclaringType, isSpecified)), null);

      return isSpecified;
    }
コード例 #4
0
 private bool IsSpecified(JsonProperty property, object target)
 {
     return(property.GetIsSpecified == null || property.GetIsSpecified(target));
 }
コード例 #5
0
 // Token: 0x06000C0E RID: 3086
 // RVA: 0x00047D04 File Offset: 0x00045F04
 private bool IsSpecified(JsonWriter writer, JsonProperty property, object target)
 {
     if (property.GetIsSpecified == null)
     {
         return true;
     }
     bool flag = property.GetIsSpecified(target);
     if (this.TraceWriter != null && this.TraceWriter.LevelFilter >= TraceLevel.Verbose)
     {
         this.TraceWriter.Trace(TraceLevel.Verbose, JsonPosition.FormatMessage(null, writer.Path, StringUtils.FormatWith("IsSpecified result for property '{0}' on {1}: {2}", CultureInfo.InvariantCulture, property.PropertyName, property.DeclaringType, flag)), null);
     }
     return flag;
 }