Advertisement
Guest User

Untitled

a guest
Oct 24th, 2014
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. public Rect Bounds
  2. {
  3. get
  4. {
  5. var Top = (_targetPosition + _translationY) - _size / 2.0f;
  6. return new Rect(callOutStarMargin, Top, _size, _size);
  7. }
  8. }
  9.  
  10. private Rect _boundsRect = new Rect();
  11.  
  12. public Rect Bounds
  13. {
  14. get
  15. {
  16. var Top = (_targetPosition + _translationY) - _size / 2.0f;
  17. _boundsRect.Y = Top;
  18. return _boundsRect;
  19. }
  20. }
  21.  
  22. var b1 = foo.Bounds;
  23. var b2 = foo.Bounds;
  24. Assert.AreEqual(b2, b1);
  25.  
  26. public Rect Bounds
  27. {
  28. get
  29. {
  30. if (bounds == null)
  31. bounds = GetBounds(...);
  32. return bounds;
  33. }
  34. }
  35.  
  36. public Stream OutputStream
  37. {
  38. get { return new FileStream(...); }
  39. }
  40.  
  41. foo.OutputStream.Write(data1, 0, data1.Length);
  42. foo.OutputStream.Write(data2, 0, data2.Length);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement