All Questions
46
questions
0
votes
0
answers
27
views
Invalid YaraSharp library in C#
When i run the code below that error appears.
using YaraSharp;
YSInstance YSInstance = new YSInstance();
System.BadImageFormatException: 'Could not load file or assembly
'YaraSharp, Version=1.3.0.0, ...
0
votes
2
answers
70
views
Is there a way to create a bool function that takes two List objects and returns true or false if a condition is met?
As the title states I am looking for ways to create and be able to interact with bool conditions.
I have tried predicates but they don't work. public static Predicate<(decimal?,decimal?)> ...
0
votes
1
answer
129
views
How to set the rules in outlook profile
I have got all outlook profile rules from Store.GetRules method (Outlook), Now how can I set that all the rules in other profile
0
votes
1
answer
550
views
How to get an Expression from a Lambda Expression
I am developing a rules engine where the rules are setup in the Database with this design:
"PropertyName" "Operator" "PropertyValue" (for e.g.: data.employee.salary = 10000). This is run against a ...
0
votes
1
answer
351
views
Making Outlook server side rule using C#
I have a strange question. I made a rule for Outlook. It is very simple rule. If there is specific word in Subject then move email to another folder. We also have Exchange server. And I would like ...
0
votes
1
answer
35
views
Is it possible to return only the text of rule , using CodeEffects?
I'm using CodeEffects https://codeeffects.com/Doc for my rules and it's all good. But in a mvc view i want to show only the text from a specific rule that the user created, just as a summary view. Is ...
3
votes
1
answer
809
views
What do I missed to apply for sonarqube custom rules using fxcop?
I want to apply for my own sonarqube custom rule using fxcop.
SonarScan succeeded with MSBuild, but sonarqube did not reflect the rule!
I referenced this url - https://github.com/DanielHWe/sonar-...
0
votes
1
answer
231
views
How can I access to method parameter's own type data in specific class using Roslyn API(C# Code Analysis)
I'm developing my own custom rules using Roslyn API(C# Code Analysis).
I want to get method parameter's own type class inheritance information in specific namespace's name.
First, I initialized ...
1
vote
0
answers
229
views
Architecture of product configurator with constraints
I am building a CPQ (Product Configurator) for metal cutting CNC machines for a project in my university.
I'm using C# and WPF as my technology. I am very familiar with both so I don't have problems ...
2
votes
1
answer
3k
views
Are there any rules for variable naming convention in visual studio, which can be enforced while development?
I was looking for a naming convention rule in static code analyser library of Visual studio dotnet but didn't find.
ie.
Name should be in camelCase.
var AgerageAge=10;// rule error: Name should be ...
0
votes
0
answers
56
views
Implementation Direction For Fetching a table and validating
Kindly excuse my silly request for some ideas, suggestions and a quick snippet of code, I am new.
I have a requirement like 4 columns of a table that contains business rules. These needs to be ...
2
votes
1
answer
116
views
Custom rule pattern implementation
I have a list of business rules I need to apply to json data then output it back via an http post.
The rules dictate how to format strings based on their type and value.
ex:
first name, Capitalize ...
2
votes
2
answers
654
views
how to send for specific functions in NLog using rules in config c#
I have a Logger class like this:
public class Logger : ILogging
{
private ILogger _logger;
public Logger()
{
_logger = LoggerFactory<ILogging>.Resolve();
}
public ...
0
votes
1
answer
41
views
How to rewritten rule for c# for GET request example.com/123 redirect to example.com/default.aspx?pid=123 and 123 is dynamic change
This is uri http://example.com/xyz where xyz is any number.
i have to redirect this to http://example.com/default.aspx?PID=xyz
2
votes
0
answers
193
views
How to identify the loop (for, foreach, while & do-while) in dll level by the (FxCop) Introspector & Code written in C# language
How to separate the (for, foreach, while & do-while) loop part alone in dll level of the (FxCop) Introspector & Code written in C# language.
Rule details:
1) I need to identify the loop.
2) ...