次の3行を置き換えたい:
this.CSType = typeof(DateTimeOffset?);
this.CSTypeString = "Target";
this.MappedCSType = SQLTypes.MappedCSType.NullableDateTimeOffset;
これとともに:
result = "Target";
だから私はこの正規表現を使おうとします:
探す::bthis.CSType = typeof(*);\n:bthis.CSTypeString = "{[^"]+}";\n:bthis.MappedCSType = SQLTypes.MappedCSType.*;
交換:result = "\1";
しかし、エラーがあります:Grouped expression is missing ')'.
私の表現に何か欠点はありますか?あなたの提案は何ですか?