Posts by communicative • 166 points
5 posts
-
1
votes1
answer288
viewsA: Return of Webapi Dynamic types
The signature of the method Request.Createresponse uses Generic Type Parameter that does not allow, by design, the passage of a dynamic (type variable), i.e., the compiler does not know its type…
-
2
votes1
answer53
viewsA: How do I validate how many images are inside a TIFF file?
Using the method Getframecount class Image it is possible to know the number of images contained in the file: int numeroImagens = Image.FromFile(@"C:\test.tiff").GetFrameCount(FrameDimension.Page);…
-
1
votes1
answer231
viewsA: Design standard to combine data from different databases
There are several approaches to solving this problem, one of them is using the principles of SOLID along with Software Design Patterns. We can start with the principle of "Single Responsability"…
-
6
votes6
answers1056
viewsA: How to make a Split for when there is a letter in the string?
Another alternative is to use regular expressions (System.Text.RegularExpressions) through a pattern in the Regex search language to make the "Matches" (value matches) of only numbers and then use…
-
5
votes2
answers1467
viewsA: Method to execute when destroying class instance
To achieve your goal you will need to use using and the interface IDisposable in the following approach: Inherit your class of IDisposable, that is to say: public class SQL : IDisposable so that you…