Reporter | Alex Berezoutsky (fergard) |
---|---|
Created | Feb 13, 2012 6:27:20 PM |
Updated | Feb 13, 2012 6:41:02 PM |
Priority | Major |
Type | Bug |
Fix versions | Next |
State | Submitted |
Assignee | Evgeny Pasynkov (pasynkov) |
Subsystem | No subsystem |
Affected versions | 6.1.1 |
Fixed in build | No Fixed in build |
The following code produced warning:
where
After following the suggestion "Cast ' to 'string'"
warning disappeared.
public string ClientId { get { return DicomImage == null ? string.Empty : DicomImage.PatientID; } }
where
[DispId(14)] string PatientID { [DispId(14), MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] get; [DispId(14), MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] set; }
"There exist both implicit conversion from 'string' and 'string' and from 'string' to 'string'"
After following the suggestion "Cast ' to 'string'"
public string ClientId { get { return DicomImage == null ? string.Empty : (string) DicomImage.PatientID; } }
warning disappeared.