Quantcast
Channel: Forum Microsoft Identity Manager
Viewing all articles
Browse latest Browse all 4767

Reusing extensions in FIM

$
0
0

Can anybody say, how I can make reusable extension in FIM?

I have 3 functions to replace chars (diacritics) in First Name, Last Name and Initials.

For example (part of code):

case "LASTEN":

if (csentry["LAST"].IsPresent)
  {
   string LAST = csentry["LAST"].Value;
   string LAST_EN;
   LAST_EN = Regex.Replace(LAST, "[Б]", "B");
   LAST_EN = Regex.Replace(LAST, "[Ж]", "Zh");
   LAST_EN = Regex.Replace(LAST, "[Ю]", "Yu");
   LAST_EN = Regex.Replace(LAST, "[П]", "P");

mventry["lastNameEN"].Value = LAST_EN;
                    }

I want to use this code for 3 times First Name, Last Name and Initials, how I can do it without using 3 "tables" of changing chars?

Thanks!


1



Viewing all articles
Browse latest Browse all 4767

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>