Code completion Query

Hi,

I am new to ReSharper c# and trying to get up to speed with it. I have a use case and wondering if it is possible or not

private void Test(ulong value){}

 

In the function above ,  value can only come from some class, can I tag the value argument ,  so that ReSharper will show me the properties from that class as a priority 

Regards 

5 comments

Hello!

 

Could you please specify some code sample that demonstrates the expected behavior?

Thanks in advance.

0

Hi Angelina , 

Let me know if this example explain the issue

 

public class HelloWorld
{
    //Can resharper help me to give me auto complete from Tags Class?. I cannot make it an enum. 
    public void SendTags(uint tag)
    {

    }
}

public class Tags
{
    public static int One = 1;
    public static int Two = 2;
    public static int Three = 3;
    public static int Four = 4;
}

0

Hello!

 

Sorry for delay in responding.

Please look at the screenshot. Is that what you looking for?

Thank you.

0

Hi Angelina ,

Actually I want to call SendTags() , but I want the auto complete to show me Tags.One etc. 

Hope I make sense here .

0

Maybe this give a better understanding 

0

Please sign in to leave a comment.