Posts

Remove Diacritics Using C#

Remove Diacritics Using C# public static string NormalizeString(string text) {     string normalStr = text.Normalize(NormalizationForm.FormD);     var stringBuilder = new StringBuilder();      foreach (var c in normalStr)      {           var unicodeCategory = CharUnicodeInfo.GetUnicodeCategory(c);           if (unicodeCategory != UnicodeCategory.NonSpacingMark)           {              if (char.IsWhiteSpace(c))                  stringBuilder.Append((char)32); // Removed  (160) &#32              else                  stringBuilder.Append(c);            }       }             return stringBuilder.ToString().Normaliz...

IT Propessional should have these things

#topic_titlte# Must have things for IT professionals #title# #topic_para# A domain name #para# #topic_para# A cool website #para# #topic_para# A portfolio portal #para#  #topic_para# Updated Resume on your website #para#  #topic_para#  Blog writing on current treand and technologies. #para

Certificate Pinning in Windows 10 UWP app

Certificate Pinning in Windows 10 UWP app To add certificate pinning in windows 10 UWP apps 1. Go to package-appxmanifest 2. Select Declaration tab. 3. Select Certificate and add it from available declarations drop down menu. 4. Copy your .cer file and paste it to project folder. 5. Select the file and change its build action to Content from properties. 6. Select exlusive trust and auto select option from declaration tab. 7. Provide store name for selected certificate.( If certificate type is root then Store Name would be "Root", if it is "Intermediate" Store Name would be "CA" and if it is other then store name would be "TrustedPeople"). 8. Browse certificate file or give path for .cer. Now try to run execute your scenario. Hope this will be helpful.