asp.net - Put get set properties in another file -


here develop function.but after saw notimplemented exception occured there.and set properties.here code,

 private void modifymessage()     {         char [] characters_to_removed_from_end = { ' ' };         string trimmedstring = this.message_in.trimend(characters_to_removed_from_end);         trimmedstring = regex.replace(trimmedstring, @"s\+", "");          trimmedstring = rearrangemessage(trimmedstring);     } 

after automatically generate below code,

 private string rearrangemessage(string trimmedstring)     {         throw new notimplementedexception();     }      public string message_in { get; set; }     public string rearrangemessage { get; set; } } 

can put second code in file ? or happen here ?

post edited full code....

 using system;  using system.collections.generic;  using system.linq;  using system.web;  using system.web.ui;  using system.web.ui.webcontrols;  using system.configuration;  using system.data.sqlclient;  using system.text.regularexpressions;   namespace viltrasms.smsfunction { public partial class mooseseen : system.web.ui.usercontrol {     protected void page_load(object sender, eventargs e)     {          // return sms string username =     system.configuration.configurationmanager.appsettings["username"].tostring();         string password = system.configuration.configurationmanager.appsettings["password"].tostring();          int source = int.parse(request.querystring["msisdn"]);         int dest = int.parse(request.querystring["shortcode"]);         string message_in = request.querystring["msg"];      }      //singleton pattern     internal static connectionfactory newinstance()     {         try         {             return new connectionfactory(configurationmanager.connectionstrings["myconstring"].connectionstring);         }         catch (exception)         {             throw;         }      }      private void modifymessage()     {         char [] characters_to_removed_from_end = { ' ' };         string trimmedstring = this.message_in.trimend(characters_to_removed_from_end);         trimmedstring = regex.replace(trimmedstring, @"s\+", "");          trimmedstring = rearrangemessage(trimmedstring);     }        private string rearrangemessage(string trimmedstring)     {         throw new notimplementedexception();     }      public string message_in { get; set; }     public string rearrangemessage { get; set; }      private string rearrangemessage(string modifiedmessage)     {         char[] characters_to_removed_from_end = { ' ' };         modifiedmessage = modifiedmessage.trimend(characters_to_removed_from_end);         modifiedmessage = regex.replace(modifiedmessage, @"\n", "");         modifiedmessage = regex.replace(modifiedmessage, @"\r", "");         //0d & 0a not done          }     }   } 

make class partial. can split definition of class more 1 file partial class

http://msdn.microsoft.com/en-us/library/wa80x488(v=vs.80).aspx


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -