Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c# ilogger for inherited class

public abstract class BaseClassExample
{
    private readonly ILogger _logger;

    public class BaseClassExample(ILogger logger)
    {
        _logger = logger;
    }
}

public class DerivedClass : BaseClassExample
{
    private readonly ILogger<DerivedClass> logger;

    public class BaseClassExample(ILogger<DerivedClass> logger) :base(logger)
    {
        this.logger = logger;
    }
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: mvc form name 
Csharp :: clear highlight winforms treeview 
Csharp :: DisplayUnitType revit api 
Csharp :: project camera view to texture 
Csharp :: how to hide tree level button when no record found for devexpress child grid view in Winform c# 
Csharp :: HOW TO CALL AN EXTENSION METHOD FOR VIEW C# 
Csharp :: c# enum key value 
Csharp :: Boolean Literals 
Csharp :: data types of document in asp dot net frame work 
Csharp :: unity time.fixeddeltatime 
Csharp :: pyqt send message to another instance 
Csharp :: Include multiple siblings at the Level 
Csharp :: [range(typeof(bool),"true","true", 
Csharp :: c# generate random date of birth but over 18 
Csharp :: c# logical operators 
Csharp :: wpf loop through grid rows 
Csharp :: detect location from ip address .net core 
Csharp :: allelrt box wpf 
Csharp :: creating an object 
Csharp :: C# if (if-then) Statement 
Csharp :: skrivetækning 
Csharp :: unity get object position on screen 
Csharp :: how to detect when a gameobject has exited a trigger c# 
Csharp :: add two large numbers 
Csharp :: same click method lots of buttons c# 
Csharp :: C# Bitwise Left Shift 
Csharp :: how to connect google play services in unity 
Csharp :: asp.net core mvc razor page call pagemodel actio 
Csharp :: 403 forbidden error using Windows Forms 
Csharp :: c# open explorer and select file 
ADD CONTENT
Topic
Content
Source link
Name
9+3 =