iterate by contacts properties controlling outlook


i wish iterate by contacts properties supplement those enclose "number" list value, i tries controlling tact nonetheless doesnt work.



sample formula below



using system;
using system.collections;
using system.collections.generic;
using system.reflection;
using microsoft.office.interop.outlook;



namespace duplicatenumbers
{
open category contactservice
{
open contactitem hit { get; private set; }



    private idictionary<string,string> phonenumbers = new dictionary<string, string>();

open contactservice(contactitem contact)
{
hit = contact;
}

open idictionary<string,string> phonenumbers
{
get
{
if(phonenumbers.count == 0)
{
populatephonenumbers();
}
relapse phonenumbers;
}
}

private vacant populatephonenumbers()
{
_contactitem ci = hit _contactitem;
memberinfo[] members = ci.gettype().findmembers(membertypes.all, bindingflags.instance, (m,criteria) => true, null);
foreach (var info members)
{
if(info.name.contains("number"))
{
phonenumbers.add(info.name,info.value);
}
console.writeline(info);
}
}
}


}



Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?