troubleshooting Question

I do I retrieve 2 values from a library tuple processor

Avatar of Olukayode Oluwole
Olukayode OluwoleFlag for Canada asked on
C#* library* tuples
12 Comments1 Solution47 ViewsLast Modified:
In my c# application I need to split  a string   VOKE@NAUTILUS  into 2  strings  (VOKE  and NAUTILUS)

I want to use the tuple  below  taking

input as  VOKE@NAUTILUS   and   output  as

outputvariable1 = VOKE
outputvariable2 = NAUTILUS

 The Library Processor  is shown below

[public Tuple<string, string> GetUsernameCompanyName(string inputstring)
        {
            string s1 = inputstring;
            string[] s2 = s1.Split('@');
            foreach (string s3 in s2)
            {
                //  Console.WriteLine(s3);
            }
            string outusername = LoginDetails.staticusercode = s2[0];
            string outcompanyname = LoginDetails.staticcompany = s2[1];
           
            return new Tuple<string, string>(outusername, outcompanyname);
        }[/code]

I  want to initialize the processor   and get the variable into 2 screen variable as below

  StringSpliterProcessor2 processor2 = new StringSpliterProcessor2(UserNameValue.Text);
  UserNameValue.Text = LoginDetails.staticusercode;
   CompanyCodeValue.Text = LoginDetails.staticcompany;

See  where i have the error below

Call to the processor  showing Error Line
How do i call the processor and place the 2 values in  Username.Text  and  Companyname.Text

Grateful  for any Help

olukay
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 12 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 12 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros