19 lines
497 B
Plaintext
19 lines
497 B
Plaintext
|
|
[source,csharp,diff-id=1,diff-type=compliant]
|
|
----
|
|
void MyMethod(List<MyObject> items)
|
|
{
|
|
logger.Debug("The operation started");
|
|
foreach(var item in items)
|
|
{
|
|
logger.Information($"Evaluating {item.Name}");
|
|
var result = Evaluate(item);
|
|
if (item.Name is string.Empty)
|
|
{
|
|
logger.Error("Invalid item name");
|
|
}
|
|
logger.Information($"End item evaluation with result: {result}");
|
|
}
|
|
logger.Debug("The operation ended");
|
|
}
|
|
---- |