Microsoft.Azure.Management.HDInsight.Job.Models.Profile has two properties with JobId
There are two properties in the Microsoft.Azure.Management.HDInsight.Job.Models.Profile with jobId (case insensitive). One is string _jobId whereas another one is JobID _jobID.
> namespace Microsoft.Azure.Management.HDInsight.Job.Models;
> public class Profile
> {
> private string _jobFile;
> private string _jobId;
> private JobID _jobID;
> private string _jobName;
> private string _queueName;
> private string _url;
> private string _user;
> }
>
On trying to serialize this object, getting below exception.
System.InvalidOperationException : The JSON property name for 'Microsoft.Azure.Management.HDInsight.Job.Models.Profile.JobID' collides with another property.
Though it is not a blocking issue, it would be good coding practice to avoid properties which differs only in case.
0 条评论