rusoaica's Profile User Rating: *****

Reputation: 213 Stalwart
Group:
Authors
Active Posts:
677 (0.56 per day)
Joined:
10-March 12
Profile Views:
8,559
Last Active:
User is offline Today, 05:59 AM
Currently:
Offline

Previous Fields

Country:
RO
OS Preference:
Windows
Favorite Browser:
Chrome
Favorite Processor:
AMD
Favorite Gaming Platform:
PC
Your Car:
Who Cares
Dream Kudos:
250

Latest Visitors

Icon   rusoaica I'd love to change the World, but they won't give me the Source Code

Posts I've Made

  1. In Topic: Interfaces

    Posted 7 Jul 2015

    zinist, i'm glad it helped you!
  2. In Topic: Interfaces

    Posted 31 May 2015

    higharc91, you're welcome! :)
  3. In Topic: Interfaces

    Posted 12 Feb 2015

    You are welcome!
  4. In Topic: passing an object as a parameter creates a copy of it, how to avoid it

    Posted 17 Dec 2014

    i'm glad i could help :)
  5. In Topic: passing an object as a parameter creates a copy of it, how to avoid it

    Posted 17 Dec 2014

    i see two options here:
    you either use a method with a reference object parameter, and you apply the action on both objects, like this:
    static void StopPlayer(ref MyPlayer player)
    {
        player.Stop();
    }
    
    static void Main()
    {
        MyPlayer OriginalPlayer = new MyPlayer();
        StopPlayer(ref OriginalPlayer);   
    }
    
    

    or, you make the player a class-level field and apply the actions in a non-parameters method directly on the original variable. Like so:
    MyPlayer OriginalPlayer = new MyPlayer();
    
    static void StopPlayer()
    {
        OriginalPlayer.Stop();
    }
    
    static void Main()
    {
        StopPlayer(); 
    }
    
    

My Information

Member Title:
They're watching you, Neo!
Age:
30 years old
Birthday:
August 22, 1984
Gender:
Location:
Bucharest, Romania
Interests:
Music, Astronomy, Programming, Artificial Intelligence, Electronics, SF, pencil drawing and gothic.
Full Name:
Юлия Данилова (Yulia Danilova)
Years Programming:
5
Programming Languages:
C, C++, C#, VB.NET

Contact Information

E-mail:
Click here to e-mail me
Website URL:
Website URL  http://www.rusoaica.com
Yahoo:
Yahoo  rusoaica3@yahoo.com
Facebook:
https://www.facebook.com/yulia.danilova.587

Comments

Page 1 of 1
  1. Photo

    rusoaica Icon

    19 Oct 2014 - 04:35
    Binars: you're welcome!
  2. Photo

    binars Icon

    19 Oct 2014 - 04:11
    Thank you for the nice welcome!
  3. Photo

    rusoaica Icon

    16 Oct 2014 - 12:20
    thanks... i'm a big fan of Star Trek and LCARS ;)
  4. Photo

    dyo Icon

    16 Oct 2014 - 12:16
    Nice website :-)
Page 1 of 1