Hi i'm new to c#
i'm trying to write a function that i can use over and over again in a number of places.
i want to pass in a couple of parameters
1)the string
2)number of character i want in substring
3)what characters to put after the last white space of substring, this will be either "..." or " " (just nothing).
i see the it like
ltlr.text= function.Formatstring("AString", "200", "...");
what i'm unsure of is how to write the function to pass these paremeters into.
can any one help?