CodeCastExpression.cs 773 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. [Serializable]
  11. public class CodeCastExpression : CodeExpression {
  12. string targetType;
  13. CodeExpression expression;
  14. //
  15. // Constructors
  16. //
  17. public CodeCastExpression ()
  18. {
  19. }
  20. public CodeCastExpression (string targetType, CodeExpression expression)
  21. {
  22. this.targetType = targetType;
  23. this.expression = expression;
  24. }
  25. //
  26. // Properties
  27. //
  28. public CodeExpression Expression {
  29. get {
  30. return expression;
  31. }
  32. set {
  33. expression = value;
  34. }
  35. }
  36. public string TargetType {
  37. get {
  38. return targetType;
  39. }
  40. set {
  41. targetType = value;
  42. }
  43. }
  44. }
  45. }