Created
July 16, 2015 23:06
-
-
Save Fhernd/f0c890353bba5632b41b to your computer and use it in GitHub Desktop.
Uso de operador de puntero a miembro.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// OrtizOL - xCSw - http://ortizol.blogspot.com | |
using System; | |
public struct UsoOperadorMiembro | |
{ | |
int campo; | |
public unsafe static void Main() | |
{ | |
Console.WriteLine(Environment.NewLine); | |
UsoOperadorMiembro obj = new UsoOperadorMiembro(); | |
UsoOperadorMiembro* puntero = &obj; | |
// Uso de operador de puntero a miembro: | |
puntero->campo = 9; | |
Console.WriteLine(obj.campo); | |
Console.WriteLine(Environment.NewLine); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment