TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Marc
NA
205
54.1k
Creating an instance of a class
Oct 9 2014 8:15 AM
I have a method in another namespace I am trying to call that gathers the local users information.
namespace Tools
{
public sealed class Methods
{
public void LocalUser(string user, string password)
{
CreateLocalUser(user, password, new List<userAccountFlags>, string.Empty, string.Empty );
}
}
}
namespace MyApplication
{
class LogOn
{
static void Main (string[] args)
{
Tools
tol
= new Tools();
var locUser = tol.LocalUser()
// I want to pull this information from this method into an instance to utilize it for another method
}
}
}
I want to get the local user and password from the LocalUser method so I can utilize it in another method in
MyApplication
. Is this possible?
Reply
Answers (
6
)
get an XML file with all attributes in a treeview
how to save a xml file into listbox in C#