Skip to content

Instantly share code, notes, and snippets.

@baobao
Last active December 3, 2016 04:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save baobao/f999b0f2f8d0aa264910f40baf617ecf to your computer and use it in GitHub Desktop.
Save baobao/f999b0f2f8d0aa264910f40baf617ecf to your computer and use it in GitHub Desktop.
error Consider storing the value in a temporary variable
class Hoge {
public Sample Direction { get; private set;}
void Foo () {
Direction.y = 0;
}
public struct Sample {
public int y;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment