1private EnumType myEnumType; 2Convert.ToInt32( myEnumType ); 3myEnumType = ( EnumType )System.Enum.ToObject( typeof( EnumType ) , value );
private ReportType meReportType; /// Gets / Sets the ReportType value /// The value of ReportType /// /// ReportDefinition reportDefinition; /// ReportType val = reportDefinition.ReportType; /// public virtual ReportType ReportType { get { return meReportType; } set { meReportType = value; } } [Browsable( false )] protected int enumReportType { get { return Convert.ToInt32( meReportType ); } set { meReportType = ( ReportType )System.Enum.ToObject( typeof( ReportType ) , value ); } }
/// ReportDefinition reportDefinition; /// ReportType val = reportDefinition.ReportType; ///