B
Blau
I am trying to follow some tutorials, and I came across this bit of
code:
public void AddBackground(string backgroundKey, string textureName,
Vector2 position, Rectangle? sourceRect, float scrollRateRatio, Color
color)
{
//the method is then implemented
}
What I don't understand, and what isn't explained in the tutorial, and
what i haven't been able to determine from my reference books, is what
does the "?" after the Rectangle do?
I saw two different opertors listed on msdn, ?: and ?? but the
syntax doesn't seem to be the same as in the tutorial.
Can someone help me out by explaning what "Rectangle?" means?
Thanks
Blau
code:
public void AddBackground(string backgroundKey, string textureName,
Vector2 position, Rectangle? sourceRect, float scrollRateRatio, Color
color)
{
//the method is then implemented
}
What I don't understand, and what isn't explained in the tutorial, and
what i haven't been able to determine from my reference books, is what
does the "?" after the Rectangle do?
I saw two different opertors listed on msdn, ?: and ?? but the
syntax doesn't seem to be the same as in the tutorial.
Can someone help me out by explaning what "Rectangle?" means?
Thanks
Blau