CodeCastExpression.cs 757 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. //
  2. // System.CodeDom CodeCastExpression Class implementation
  3. //
  4. // Author:
  5. // Miguel de Icaza ([email protected])
  6. //
  7. // (C) 2001 Ximian, Inc.
  8. //
  9. namespace System.CodeDom {
  10. public class CodeCastExpression : CodeExpression {
  11. string targetType;
  12. CodeExpression expression;
  13. //
  14. // Constructors
  15. //
  16. public CodeCastExpression ()
  17. {
  18. }
  19. public CodeCastExpression (string targetType, CodeExpression expression)
  20. {
  21. this.targetType = targetType;
  22. this.expression = expression;
  23. }
  24. //
  25. // Properties
  26. //
  27. public CodeExpression Expression {
  28. get {
  29. return expression;
  30. }
  31. set {
  32. expression = value;
  33. }
  34. }
  35. public string TargetType {
  36. get {
  37. return targetType;
  38. }
  39. set {
  40. targetType = value;
  41. }
  42. }
  43. }
  44. }