I am a programmer who has never used .dll files. The reason I need third-party software such as a graphics library, a library that helps me create graphics, etc. I add / ddl link files to my program and use them in my code.
Also, it looks like you can use .dll for many different things, so I would like the theme to focus on C #.
Now I am working on a disinfecting library (?) (I think this is the right term), which will be filled with appropriate methods that can sanitize variables in various ways.
I want to know:
will there be any advantage:
1) Write the methods to the class library → compile / create it → add the library as a reference to the program - what will need to sanitize some variables?
Or it will be exactly the same if I where:
2) Create a new SanitizeClass in the program → add all sanitation methods → call methods from SanitizeClass in different classes of the program that should sanitize the variables
In general, I also want to know when it is an advantage to using compiled class libraries. I think about speed, safety, all of this.
Can someone enlighten me? :)
c # class dll class-library
CasperT
source share