Questions et réponses pour le c# :

Récupérer toutes les FAQ sur c #


6
votes
long? i = 10000; int? s = i as int?; Why is it giving me a null in s variable? I know that casting it using int? s = (int?)i; will work fine but why can't I use an as operator? ...

5
votes
Comment concaténer d'énormes listes sans doubler la mémoire? Tenez compte de l'extrait suivant: Initial memory size: 12 MB Memory size after lists initialization: ...

5
votes
J'ai cette méthode très simple dont j'ai besoin pour effectuer un test unitaire. public static class ValidationExtensions { public static T GetValid<T>(this IConfigura ...