示例#1
0
        public string ConvertToHashedValue(object value)
        {
            TelemetryPiiProperty telemetryPiiProperty = value as TelemetryPiiProperty;

            CodeContract.RequiresArgumentNotNull <TelemetryPiiProperty>(telemetryPiiProperty, "piiProperty");
            return(HashPii(telemetryPiiProperty.StringValue));
        }
示例#2
0
        public object ConvertToRawValue(object value)
        {
            TelemetryPiiProperty obj = value as TelemetryPiiProperty;

            CodeContract.RequiresArgumentNotNull <TelemetryPiiProperty>(obj, "piiProperty");
            return(obj.RawValue);
        }