How do I get a part of a method name?
Question asked by Hans Kesting - May 17 at 4:41 AM
Unanswered
I am trying to create a rule for "ShouldSerialize" methods (see docs.microsoft.com/en-us/dotnet/framework/winforms/controls/defining-default-values-with-the-shouldserialize-and-reset-methods).
 
For example for a method "ShouldSerializeSomeProperty()" I want to have a summary like "Determines whether property <see cref="SomeProperty"/> should be serialized".
 
Currently I use <see cref="$(End)$(MethodName.ActualName)"/> so I must manually delete the first part of the name.
 
How do I get just the "SomeProperty" part of the method name?
 
Some suggestions:
* a substring after some specific number of characters
* the non-matched part of the name (matching is "startswith 'ShouldSerialize' ")
 

1 Reply

Reply to Thread
0
Serge B. Replied
Employee Post
Hi Hans,
 
This is currently not possible in the free version but we are happy to advise the steps to get this done in the Pro version.
 
Thanks!

Reply to Thread