Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: toraj58
  • Order by date
  1. toraj58

    Data Type Conversion

    i have an alternative solution for you but sneaky, try the code below: string s = "1234"; int input; foreach (char c in s) { Console.WriteLine(c) } you see that by the means of this solution you don't need conversion but be carefull if you want do arithmatic operation on c...
  2. toraj58

    Data Type Conversion

    the problem is that Int32.Parse() method only accepts String as its parameter. so you should convert Char to String before calling this method. Try the code below: String myString = "1234"; int input; char c; for (int i = 0; i < myString.Length; i++) {...
  3. toraj58

    quick constructor question

    because the relationship between A and B is "IS_A_RELATIONSHIP", you can use implicit casting: B b = new B(); A a = new A(); // codes here to initialize b parameters and proberties a = b; // you also use a = (a)b; // codes here to initialize other params of a Touraj Ebrahimi
  4. toraj58

    numeric input with completion detection

    you can also use string.format() function, for instanse consider the below example: Decimal x = 12.3456; string s = String.Format("{0:F2}",x); console.WriteLine(s); // will output 12.34 F2 is a control: the number after 'F' indicates the number of digits after decimal point. Touraj Ebrahimi
  5. toraj58

    importing a c++ dll into csharp

    using ref is okey but if you have not initialized variables before passing them to the function you should use out instead.any way using ref and out both are used to call a function using call by refernce method in c#. Touraj Ebrahimi
  6. toraj58

    String Manipulation

    Character Constant Value ‘\n’ New line ‘\t’ Tab ‘\0’ Null character ‘\r’ Carriage return ‘\\’ Backslash Touraj Ebrahimi
  7. toraj58

    1234.927M -&gt; what is the M???

    1 //int 1U //unsigned int 1L //long int 1.0 //double 1.0F //float 1M //decimal
  8. toraj58

    1234.927M -&gt; what is the M???

    decimal m1; // good decimal m2 = 100; // better decimal m3 = 100M; // best The declaration of m1 allocates a variable m1 without initializing it to anything. Until you assign it a value, the contents of m1 are indeterminate. But that’s okay, because C# doesn’t let you use m1 for anything...
  9. toraj58

    FTP server setup (creating accounts for specific folder)

    How i can create account(username/ pass) for users in a FTP server on sun sloaris 8 in a way that only the user can access to a specific folder and its subfolders not root and other folders?
  10. toraj58

    ip configuration in redhat

    tnx alot qatqat
  11. toraj58

    ip configuration in redhat

    how to configure IP, gateway, dns using command line in redhat? and to which files those information are appended?
  12. toraj58

    finding linux version

    tnx qatqat...'cat /etc/issue' was so usefull for me i only knew 'cat /etc/redhat-release'
  13. toraj58

    IP configuration - solaris 9

    how to configure IP, gateway, dns using command line in solaris 9? and in which files those information are appended?
  14. toraj58

    finding linux version

    how is it possible to find the version of linux using a command? and how to find it from a file?
  15. toraj58

    thread definition?

    how to define a thread in c#?

Part and Inventory Search

Back
Top