Language- C#
Database- Sqlserver.
I am using Gmail Api to extract labels from Gmail mailbox so that I can create such labels in outlook programmatically. I am adding these labels in the database before creating them in Outlook. The gmail mailbox has nested custom labels like this.
As you can see these labels are separated by "/" and Label_# is system generated IDs. MyCustomLabel2 is the subLabel of MyCustomLabel, MyCustomLabel3 is the sublabel of MyCustomLabel2 and MyCustomLabel4 is the sublabel of MyCustomlabel3 and so on. The names of the labels could be anything.
Before I create new custom Labels on outlook, I would like to know I am creating the right custom sub Label under its main custom label. I tried playing with
string functions in c# without any luck.
My problem is not related to Gmail Api or outlook Api. It's completely related to string manipulation. A
Java programmer can also help me as conversion from Java to c# code won't be hard.