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

RSRP-287552: new feature proposal: transform code to use StringBuilder for merging strings

$
0
0
Reporter Jakub Jiricek (Jakub.Jiricek) Jakub Jiricek (Jakub.Jiricek)
Created Jan 3, 2012 1:53:10 PM
Updated Oct 18, 2018 10:37:21 AM
Resolved Jul 29, 2015 6:10:05 PM
Subsystem Refactorings
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Duplicate
Type Feature
Fix version Backlog
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
it would be useful to transform code that appends strings to a string variable, to the corresponding code that makes use of StringBuilder.

RSRP-330748: QF for error: StringBuilder += String

$
0
0
Reporter Drew Noakes (drewnoakes) Drew Noakes (drewnoakes)
Created Oct 6, 2012 9:34:48 PM
Updated Oct 18, 2018 10:37:21 AM
Resolved Jul 29, 2015 6:10:05 PM
Subsystem Quick Fixes
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Duplicate
Type Feature
Fix version Backlog
Affected versions 7.0.1
Fixed In Version ReSharper Undefined
VsVersion All Versions
I found a loop that was using string concatenation via the += operator.

var s = "Things: ";
foreach (var thing in things)
{
s += thing;
}
s += "... that's all!";

I changed the first line to use a StringBuilder:

var s = new StringBuilder("Things: ");
foreach (var thing in things)
{
s += thing;
}
s += "... that's all!";

At this point, the += operators are errors. R# could offer a QF to convert them to calls to StringBuilder.Append.

RSRP-423313: Suggest to use 'ToString(CultureInfo.InvariantCulture)' when using operator '+' with a string and a non-string

$
0
0
Reporter Angelina Elycheva (Angelina.Elycheva) Angelina Elycheva (Angelina.Elycheva)
Created Sep 12, 2014 2:06:22 PM
Updated Oct 18, 2018 10:39:57 AM
Subsystem Code Analysis - C#
Assignee Ivan Serduk (IvanSerduk)
Priority Normal
State Submitted
Type Feature
Fix version Backlog
Affected versions 8.2.2, 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
1.Check the following code sample:
Thread.CurrentThread.CurrentCulture = new CultureInfo("fr-FR"); 
var x = 12.34;
var y = "" + x;
var z = x.ToString(CultureInfo.InvariantCulture);

Result:
If I use this piece of code, I won't have the same result in y and z. This is because using the '+' operator with a string and a non-string will call .ToString() using CurrentCulture. This can lead to undesired results! I'd like to know how to get a warning from Visual Studio or Resharper when I write such thing as "" + 0.1 and I'd like it to suggest me to use .ToString(CultureInfo.InvariantCulture).

RSRP-470946: Cannot Advance beyond TotalWorkUnits.

$
0
0
Reporter ReSharper anonymous (resharper) ReSharper anonymous (resharper)
Created Jul 11, 2018 8:09:10 AM
Updated Oct 18, 2018 11:03:42 AM
Subsystem External Sources
Assignee Nikita Raba (nikita.raba)
Priority Critical
State Submitted
Type Exception
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
ReSharperPlatformVs15 Wave 182 Hive _c4e60166 — JetBrains ReSharper Ultimate 2018.2 EAP 2 Build 182.0.20180706.95810-eap02

JetBrains ReSharper 182 Build 182.0.20180706.100921-eap02

Cannot Advance beyond TotalWorkUnits.

— EXCEPTION #1/2 [InvalidOperationException]
Message = “Cannot Advance beyond TotalWorkUnits.”
ExceptionPath = Root.InnerException
ClassName = System.InvalidOperationException
Data.Units = 1
HResult = COR_E_INVALIDOPERATION=80131509

— Outer —

— EXCEPTION #2/2 [LoggerException]
Message = “Cannot Advance beyond TotalWorkUnits.”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
Data.ManagedThreadName = <NULL>
Data.LastExtension = cs
Data.SccRevisionShell = “<there are no packages matching the criteria>”
Data.HostProductInfo = “JetBrains ReSharper Ultimate 2018.2 EAP 2 Build 182.0.20180706.95810-eap02”
Data.SubProducts.#0 = “JetBrains ReSharper 182 Build 182.0.20180706.100921-eap02”
Data.SccRevisionEnv = “
Platform\Core\Shell:
    git::refs/heads/182-eap2

Platform\VisualStudio:
    git::refs/heads/182-eap2::9f014d91e51bc72e022f44cb319e1913fc745c28

Data.VsVersion = 15.7.27703.2035
InnerException = “Exception #1 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
 at JetBrains.Application.Progress.ProgressIndicatorBase.Advance(Double units)
 at JetBrains.Application.Progress.ProgressIndicatorBase.Advance(Double units)
 at JetBrains.Application.Progress.SubProgressIndicator.Advance(Double units)
 at JetBrains.Application.Progress.SubProgressIndicator.Advance(Double units)
 at JetBrains.Application.Progress.SubProgressIndicator.Advance(Double units)
 at JetBrains.Application.Progress.ProgressIndicatorBase.Stop()
 at JetBrains.Application.Progress.ProgressIndicatorBase.Dispose()
 at JetBrains.Symbols.Downloader.HttpDownloader.DelegatingIndicator.Dispose()
 at JetBrains.Symbols.Downloader.HttpDownloader.DownloadThread(IProgressIndicator indicator, String taskName)
 at JetBrains.Symbols.Downloader.HttpDownloader.SafeDownloadThread(IProgressIndicator indicator, String taskName)
 at JetBrains.Symbols.Downloader.HttpDownloader.<>c__DisplayClass3_1.<Execute>b__1()
 at JetBrains.Util.Logging.Logger.Catch(Action action)
 at JetBrains.Symbols.Downloader.HttpDownloader.<>c__DisplayClass3_1.<Execute>b__0()
 at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
 at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
 at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
 at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
 at System.Threading.ThreadHelper.ThreadStart()

RSRP-471264: "Show ignored usages" in Inspection Results doesn't work

$
0
0
Reporter Piotr Karasinski (pkarasinski) Piotr Karasinski (pkarasinski)
Created Aug 27, 2018 12:23:20 PM
Updated Oct 18, 2018 11:45:05 AM
Subsystem Inspect This - Value Tracking
Assignee Alexander Ulitin (alexander.ulitin)
Priority Critical
State Submitted
Type Bug
Fix version 2018.3
Affected versions 2018.2
Fixed In Version ReSharper Undefined
VsVersion All Versions

In any type of Inspection the "Show ignored usages" button does not work. See the attached screenshots.

RSRP-471714: Problem ignoring some items in inspection results window

$
0
0
Reporter Stécy Dubé (stecydube) Stécy Dubé (stecydube)
Created Oct 1, 2018 3:07:19 PM
Updated Oct 18, 2018 11:52:17 AM
Subsystem Inspect This - Call Tracking
Assignee Alexander Ulitin (alexander.ulitin)
Priority Normal
State Submitted
Type Bug
Fix version 2018.3
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions

I performed an inspect outgoing calls and got a list as expected.

However, ignoring some items doesn't seem to have any effect. The show ignored usages button is not activated.

Furthermore, right clicking on the "ignored" item still showing in the list reveal an "Undo Ignore" command.

Sometimes, ignoring items works and sometimes ignoring an item makes the previous ignored one to disappear from the list instead of the just ignored one.

As it is now this functionality is unusable.

Thank you.

RSRP-471887: Broken tree after hide ignored nodes in inspection result window

$
0
0
Reporter Alexander Ulitin (alexander.ulitin) Alexander Ulitin (alexander.ulitin)
Created Oct 18, 2018 11:52:01 AM
Updated Oct 18, 2018 11:53:59 AM
Subsystem UI
Assignee Daniel Degtyarev (daniel.degtyarev)
Priority Normal
State Submitted
Type Bug
Fix version 2018.3
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions

Steps to reproduce:

  1. Apply patch from attachment to your working copy
  2. Invoke value tracking
  3. Ignore root node
  4. Expand tree further
  5. Run "Show Ignored Usages"
    2018-10-18_10-42-27.gif

RSRP-428217: "Move declaration closer to usage" changes type from explicit to var

$
0
0
Reporter Alexey Yeltsov (Alexey.Yeltsov) Alexey Yeltsov (Alexey.Yeltsov)
Created Nov 26, 2014 2:40:08 AM
Updated Oct 18, 2018 12:05:44 PM
Subsystem Context Actions
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Submitted
Type Bug
Fix version Backlog
Affected versions 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
If developer chose to use explicit variable type, please leave it as is.
In attached screenshot the variable type was changed from SqlParameter to var

RSRP-429069: Context Action: Replace var with explicit type declaration, does not work

$
0
0
Reporter Alexander Kurakin (Alexander.Kurakin) Alexander Kurakin (Alexander.Kurakin)
Created Dec 15, 2014 5:08:13 PM
Updated Oct 18, 2018 12:09:12 PM
Resolved Oct 18, 2018 12:09:12 PM
Subsystem Context Actions
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Fixed
Type Bug
Fix version Unidentified prior version
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
On > Options > Code Editing > C# > Context Actions
Replace var with explicit type declaration


The option has no impact! It should!

Example:
public void SomeTask() 
{
var name = new Name();
}
I expext a Context Action to appear when the cursor is on "var" that asks me if I would like the value of "var" replaced with "Name"

RSRP-471882: Visualize running unit test processes in the Unit Test sessions

RSRP-470930: Object reference not set to an instance of an object.

$
0
0
Reporter Thomas Stocker (thomas.stocker) Thomas Stocker (thomas.stocker)
Created Jul 3, 2018 11:52:47 AM
Updated Oct 18, 2018 12:22:12 PM
Resolved Aug 31, 2018 10:42:26 AM
Subsystem Debugger features
Assignee Alexander Ulitin (alexander.ulitin)
Priority Critical
State Fixed
Type Exception
Fix version 2018.2
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
ReSharperPlatformVs15 Wave 182 Hive _cb16f37c — JetBrains ReSharper Ultimate 2018.2 EAP 1 Build 182.0.20180628.124316-eap01

JetBrains ReSharper 182 Build 182.0.20180628.125556-eap01

SubProducts.0 = JetBrains ReSharper 182 Build 182.0.20180628.125556-eap01

Object reference not set to an instance of an object.

— EXCEPTION #1/2 [NullReferenceException]
Message = “Object reference not set to an instance of an object.”
ExceptionPath = Root.InnerException
ClassName = System.NullReferenceException
HResult = E_POINTER=COR_E_NULLREFERENCE=80004003
Source = JetBrains.PsiFeatures.VisualStudio.Debugger
StackTraceString = “
 at JetBrains.PsiFeatures.VisualStudio.Debugger.DebugProperty2.CreateFromProperty(IDebugProperty2 property, String overrideName, EvaluationExpressionInfo expression)
 at JetBrains.PsiFeatures.VisualStudio.Debugger.DebugProperty2.CreateFromProperty(IDebugProperty2 property, String overrideName, EvaluationExpressionInfo expression)
 at JetBrains.PsiFeatures.VisualStudio.Debugger.VsDebugVisualizerComponent.<CalculateExpressionsInRegion>d__26.MoveNext()
 at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
 at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
 at JetBrains.PsiFeatures.VisualStudio.Debugger.VsDebugVisualizerComponent.CalculateAdornments(Lifetime lifetime, ITextControl editor, FramePosition frame, IEnumerable`1 accumulatedReturnValues, IPsiSourceFile psiSourceFile)
 at JetBrains.PsiFeatures.VisualStudio.Debugger.VsDebugVisualizerComponent.<>c__DisplayClass23_1.<ShowEditorAdornments>b__0()
 at JetBrains.DataFlow.ISignalEx.<>c__DisplayClass0_0`1.<Advise>b__0(TValue value)
 at JetBrains.DataFlow.Signal`1.NotifySinks(TValue payload)


— Outer —

— EXCEPTION #2/2 [LoggerException]
Message = “Object reference not set to an instance of an object.”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
Data.ManagedThreadName = <NULL>
Data.LastExtension = cs
Data.SccRevisionShell = “<there are no packages matching the criteria>”
Data.HostProductInfo = “JetBrains ReSharper Ultimate 2018.2 EAP 1 Build 182.0.20180628.124316-eap01”
Data.SubProducts.#0 = “JetBrains ReSharper 182 Build 182.0.20180628.125556-eap01”
Data.SccRevisionEnv = “
Platform\Core\Shell:
    git::refs/heads/182-eap1::389b2b0a5d2b33c46224f8f1850bc61276990d1e


Platform\VisualStudio:
    git::refs/heads/182-eap1

Data.VsVersion = 15.8.27825.0
Data.VsPreview = True
InnerException = “Exception #1 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
 at JetBrains.DataFlow.Signal`1.NotifySinks(TValue payload)
 at JetBrains.DataFlow.Signal`1.NotifySinks(TValue payload)
 at JetBrains.DataFlow.Signal`1.Fire(TValue value, Object cookie)
 at JetBrains.PsiFeatures.VisualStudio.Debugger.VsDebugVisualizerComponent.ShowEditorAdornments(Lifetime editorLifetime, ITextControl editor, IProjectFile projectItem, FramePosition frame, IEnumerable`1 accumulatedReturnValues)
 at JetBrains.PsiFeatures.VisualStudio.Debugger.VsDebugVisualizerComponent.<>c__DisplayClass19_2.<OnStackFrameChanged>b__7()
 at JetBrains.ReSharper.Psi.Files.PsiFiles.CommitAllDocumentsAsync(Action success, Action interrupted)
 at JetBrains.PsiFeatures.VisualStudio.Debugger.VsDebugVisualizerComponent.<>c__DisplayClass19_2.<OnStackFrameChanged>b__5()
 at JetBrains.Application.Threading.IShellLocksEx.ExecuteWithReadLock(IShellLocks thіs, Action F)
 at JetBrains.Application.Threading.IShellLocksEx.<>c__DisplayClass5_0.<ExecuteOrQueueReadLock>b__0()
 at JetBrains.Threading.ReentrancyGuardEx.<>c__DisplayClass0_1.<Queue>b__3()
 at JetBrains.Threading.ReentrancyGuard.Execute(String name, Action action)
 at JetBrains.Threading.ReentrancyGuard.ExecutePendingActions()
 at JetBrains.Threading.JetDispatcher.Closure.Execute()
 at JetBrains.Util.Concurrency.WinJetDispatcher.ProcessQueue(Int32 nMinBucket)
 at JetBrains.Util.Concurrency.WinJetDispatcher.<>c__DisplayClass18_0.<BeginInvokeCore>b__0()
 at System.Windows.Threading.DispatcherOperation.InvokeDelegateCore()
 at System.Windows.Threading.DispatcherOperation.InvokeImpl()
 at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
 at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)
 at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
 at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
 at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
 at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
 at System.Windows.Threading.DispatcherOperation.Invoke()
 at System.Windows.Threading.Dispatcher.ProcessQueue()
 at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
 at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
 at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
 at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
 at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
 at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
 at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)

RSRP-430338: Successive 'invert if' results in invalid code!

$
0
0
Reporter Alexander Kurakin (Alexander.Kurakin) Alexander Kurakin (Alexander.Kurakin)
Created Jan 14, 2015 11:54:40 AM
Updated Oct 18, 2018 12:22:23 PM
Subsystem Context Actions
Assignee Alisa Afonina (alisa.afonina)
Priority Major
State Submitted
Type Bug
Fix version Backlog
Affected versions 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
private void UpdateAO() 
{
if (!enabled)
{
if (task != null) // invert if to reduce nesting
{
task.Dispose();
task = null;
}
return;
}

//.... more code here
}
after first time 'invert if' the code is good:
if (!enabled) 
{
if (task == null) return; // invert if to reduce nesting
task.Dispose();
task = null;
return;
}
again 'invert if' results in incorrect code:
if (!enabled) 
{
if (task != null)
{
task.Dispose();
task = null;
return;
}
}
The return statement ends up inside the inner brackets, but it should be in the outer brackets!!!

RSRP-471888: 'var' Usage in Declarations does not work as expected

$
0
0
Reporter Bob Louwe (b.louwe) Bob Louwe (b.louwe)
Created Oct 18, 2018 12:25:38 PM
Updated Oct 18, 2018 12:26:50 PM
Subsystem No Subsystem
Assignee Unassigned
Priority Normal
State Submitted
Type Unspecified
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions

Consider the following code:

namespace ConsoleApp6
{
internal class Program
{
private static void Main(string[] args)
{
var myFirstSomeObject = SomeFactory.CreateSomeObject();
}

    private class Some
    {
    }
    private static class SomeFactory
    {
        public static Some CreateSomeObject()
        {
            return new Some();
        }
    }
}

}

With the ['var Usage'in Declarations] set to [Use 'var' when evident] for all types, ReSharper suggests correctly to change:
var myFirstSomeObject = SomeFactory.CreateSomeObject();
to
Some myFirstSomeObject = SomeFactory.CreateSomeObject();

But take a look at the screenshot, ReSharper reports that Some is a simple type. But according to Microsoft, see https://docs.microsoft.com/en-us/dotnet/csharp/tour-of-csharp/types-and-variables, an object is not a simple type. Simples types are the build-in types, excluding string and object. So my questions is, what is the definition of a simple type according ReSharper?

RSRP-431241: Move static field initializer to cctor

$
0
0
Reporter T (thymin) T (thymin)
Created Jan 23, 2015 10:39:13 PM
Updated Oct 18, 2018 12:30:54 PM
Subsystem Context Actions
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Submitted
Type Feature
Fix version Backlog
Affected versions 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
Resharper should offer to move a static field initializer to the static constructor. If no cctor is present it should be created. If there are multiple field initializers in the text editor selection all of them should be moved (imagine a class with 10 initializer - we want to move all of them at once).

RSRP-431591: Context menu on symbols should have an entry for copying FullName

$
0
0
Reporter Jens Odborg (JensO) Jens Odborg (JensO)
Created Jan 27, 2015 1:51:02 PM
Updated Oct 18, 2018 12:34:50 PM
Subsystem Context Actions
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State To be discussed
Type Feature
Fix version Backlog
Affected versions 9.0 Update 1, 2018.3
Fixed In Version ReSharper Undefined
VsVersion VS 2013 RTM
This is would be use full if you want to talk about a specific class/method/property/field/... in comments, documentation etc.

RSRP-435198: Please implement CA 'To expression body' for indexers with the only 'get' accessor

$
0
0
Reporter Vladimir Reshetnikov (nikov) Vladimir Reshetnikov (nikov)
Created Mar 13, 2015 10:29:58 PM
Updated Oct 18, 2018 12:39:09 PM
Resolved Oct 18, 2018 12:39:09 PM
Subsystem Context Actions
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Fixed
Type Feature
Fix version Unidentified prior version
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions

RSRP-435905: Name files containing generic classes with their arity appended

$
0
0
Reporter Philip Cavanagh (Philip.Cavanagh) Philip Cavanagh (Philip.Cavanagh)
Created Mar 25, 2015 12:00:38 PM
Updated Oct 18, 2018 12:55:18 PM
Resolved Oct 18, 2018 12:55:18 PM
Subsystem Context Actions
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Duplicate
Type Feature
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
Given a class such as MyClass<T>, it would be useful to have the option to allow MyClass`1.cs to be the default file name (i.e. the name that the file would be given if the Rename file to match type name context action were chosen).

RSRP-468604: Move generic types into proper files, using user-defined convention

$
0
0
Reporter Daniele Mancini (Mancini) Daniele Mancini (Mancini)
Created Mar 7, 2018 1:00:45 PM
Updated Oct 18, 2018 12:56:06 PM
Subsystem Refactorings
Assignee Alisa Afonina (alisa.afonina)
Priority Major
State Submitted
Type Improvement
Fix version Backlog
Affected versions 2018.2
Fixed In Version ReSharper Undefined
VsVersion All Versions

Moving Foo, Foo<T> and Foo<TKey, TValue> types to appropriate files, will just move them to Foo.cs or eventually not move them at all if the file already exists.
It would be nice to have a way to specify how the user wants to name files holding a generic class using a pattern (currently it seems that Microsoft is using <TypeName>OfT pattern).
In case of multiple generic types, they could be be chained using a pattern like <TypeName>Of<T1>And<T2>.
The above examples could then be moved to appropriate files like
Foo.cs
FooOfT.cs
FooOfTKeyAndTValue.cs (or a shortened form, like FooOfKAndV.cs, dropping the T-prefix convention and using the first char of the remaining part).

RSRP-439818: Feature request: Convert params formats

$
0
0
Reporter T (thymin) T (thymin)
Created May 16, 2015 1:46:46 PM
Updated Oct 18, 2018 1:10:22 PM
Subsystem Context Actions
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Submitted
Type Feature
Fix version Backlog
Affected versions 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
params arguments can be given in multiple forms. R# should offer to convert between them. For example:

string.Format("", 1, 2, 3);
string.Format("", new [] { 1, 2, 3 });

Back and forth.

Also, selecting 1, 2, 3 and trying to extract a local variable should just work. The local should have type int[] here.

RSRP-440251: Add private to member

$
0
0
Reporter NN __ (NN) NN __ (NN)
Created May 25, 2015 10:37:10 PM
Updated Oct 18, 2018 1:11:09 PM
Resolved Oct 18, 2018 1:11:09 PM
Subsystem Context Actions
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Fixed
Type Feature
Fix version Unidentified prior version
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
readonly int A;

Alt+Enter suggests adding public, internal, protected but doesn't suggest adding explicit private.
Viewing all 106942 articles
Browse latest View live


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