Quantcast
Channel: YouTrackReSharper (RSRP) - Bug and Issue Tracker
Viewing all articles
Browse latest Browse all 106942

RSRP-287581: Custom constructor of LocalizationRequiredAttribute is not working as expected

$
0
0
Reporter Sven Heitmann (sheitmann) Sven Heitmann (sheitmann)
Created Jan 4, 2012 4:20:45 PM
Updated Jan 4, 2012 8:13:18 PM
Priority Normal
Type Bug
Fix versions No Fix versions
State Submitted
Assignee Alexander Nesterenko (alexn)
Subsystem Code Analysis
Affected versions 6.1.1
Fixed in build No Fixed in build
Hi

I added a new constructor to the class LocalizationRequiredAttribute in my copied annotation classes in this way.

/// <summary>
/// Initializes a new instance of the
/// <see cref="LocalizationRequiredAttribute"/> class with
/// <see cref="Required"/> set to <see langword="true"/>.
/// </summary>
public LocalizationRequiredAttribute() : this(true) {
}


It is just a default implementation to not write "true" always.
My issue now is, that Resharper does not track it as marker for localizable string correctly.

See picture 1 when I use my new constructor and picture 2 when I use the default constructor with 1 parameter.

Version Details
JetBrains ReSharper 6.1 C# Edition
Build 6.1.38.146 on 2011-12-30T12:18:32

Licensed to: Sven Heitmann
Plugins: 2
  1. 1. “Agent Johnson” v2.0.0.0 by “Jakob Christensen”
  2. 2. AgentSmith v1.5.0.0 by http://code.google.com/p/agentsmithplugin/
Visual Studio 10.0.40219.1.

Copyright © 2003–2012 JetBrains s.r.o. All rights reserved.

Viewing all articles
Browse latest Browse all 106942

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>