2011-06-11 4 views
-4

내 코드는 오류주고 컴파일되지 않습니다형식 또는 네임 스페이스 이름 'INT32'을 (를) 찾을 수 없습니다 (당신은 using 지시문 또는 어셈블리 참조가?)

The type or namespace name 'Int32' could not be found (are you missing a using directive or an assembly reference?)

왜 이런 일이 않습니다를/어떻게 수정해야합니까?

///*********************************************************** 
///Author Name: Harkamal Singh 
///Creation Date: 17th Nov, 2008 
///File Name: CountryPrp.cs   Component Used: 
///Called From: Business Logic Layer 
///Description: Class File For Booking Functionality 
///Tables Accessed: 
///Program specs: 
///UTP doc: 
///Tested By: 
///*********************************************************************** 
///Modification History: 
///Change No. Changed By Date Version Raised By/SRS No Description 

///***********************************************************************using System; 
using System.Data; 
using System.Configuration; 
using System.Web; 
using System.Web.Security; 
using System.Web.UI; 
using System.Web.UI.WebControls; 
using System.Web.UI.WebControls.WebParts; 
using System.Web.UI.HtmlControls; 
using System.Data.SqlClient; 
using System.Collections; 
using System.Collections.Generic; 


/// <summary> 
/// Summary description for CountryPrp 
/// </summary> 
namespace BLL 
{ 
public class CountryPrp 
{ 
    public CountryPrp() 
{ 
     // 
     // TODO: Add constructor logic here 
     // 
    } 

    #region tCountryPropertyClass 

     private Int32 iCountryId; 
     private String sCountryName; 
     private DateTime dtCreated; 
     private DateTime dtModified; 
     private Int32 iCreatedBy; 
     private Int32 iModifiedBy; 
     private Boolean bisActive; 
     private Char sOperationType; 
     private Int16 iReturnid; 


     public Int32 p_iCountryId 
     { 
      get 
      { 
       return iCountryId; 
      } 
      set 
      { 
       iCountryId = value; 
      } 
     } 

     public String p_sCountryName 
     { 
      get 
      { 
       return sCountryName; 
      } 
      set 
      { 
       sCountryName = value; 
      } 
     } 

     public DateTime p_dtCreated 
     { 
      get 
      { 
       return dtCreated; 
      } 
      set 
      { 
       dtCreated = value; 
      } 
     } 

     public DateTime p_dtModified 
     { 
      get 
      { 
       return dtModified; 
      } 
      set 
      { 
       dtModified = value; 
      } 
     } 

     public Int32 p_iCreatedBy 
     { 
      get 
      { 
       return iCreatedBy; 
      } 
      set 
      { 
       iCreatedBy = value; 
      } 
     } 

     public Int32 p_iModifiedBy 
     { 
      get 
      { 
       return iModifiedBy; 
      } 
      set 
      { 
       iModifiedBy = value; 
      } 
     } 

     public Boolean p_bisActive 
     { 
      get 
      { 
       return bisActive; 
      } 
      set 
      { 
       bisActive = value; 
      } 
     } 
     public Char p_sOperationType 
     { 

      get 
      { 
       return sOperationType; 
      } 
      set 
      { 
       sOperationType = value; 
      } 

     } 

     public Int16 p_iReturnid 
     { 
      get 
      { 
       return iReturnid; 
      } 
      set 
      { 
       iReturnid = value; 
      } 

     } 



    #endregion 

} 
+6

'질문'유형 또는 네임 스페이스 이름을 찾을 수 없습니다. –

+3

실제 질문이 누락되었습니다. 나는 그것을 추가했다. 그것이 당신이 물어보고 싶은 것을 나타내지 않는다면 진짜 질문을 편집하십시오. – CodesInChaos

+0

또한 .NET 명명 규칙 지침을 읽어야합니다. 헝가리 표기법을 사용해서는 안되며, 속성에'p_' 접두사를 사용하면 내가 본 것 중 가장 끔찍한 일입니다. –

답변

10

오류가 Int32 유형은 해당 네임 스페이스의 일부이기 때문에 당신이 using System;을 놓치고 있다고 알려줍니다

문제의 코드입니다.

///***********************************************************************using System; 

코드에서 using System; 앞에 줄 바꿈을 삭제 한 것 같습니다. 이것은 이전 행으로 옮겨졌고 그 행은 //으로 주석 처리되었습니다. 그래서 그것은 또한 주석 처리되었습니다.

줄 바꿈을하면 문제가 해결됩니다.

///*********************************************************************** 
using System; 
관련 문제