Changeset 4743

Show
Ignore:
Timestamp:
07/22/08 01:43:04 (4 months ago)
Author:
xmlhacker
Message:

changed to a class to adhere to ProtoContract? declaration type rules

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/nuxleus/Source/CodeSamples/Protobuf_Serialization_Comparison_Test/Nuxleus.Messaging/Protobuf/Person.cs

    r4739 r4743  
    2222 
    2323    [Serializable, ProtoContract] 
    24     public struct PhoneNumber { 
     24    public class PhoneNumber { 
    2525        [ProtoMember(1, Name = "Number", IsRequired = true)] 
    2626        public string Number { get; set; } 
  • trunk/nuxleus/Source/CodeSamples/Protobuf_Serialization_Comparison_Test/Protobuf_Serialization_Comparison_Test.build

    r4741 r4743  
    1010    <property name="build.dir" value="./bin/Release"/> 
    1111  </if> 
     12   
    1213  <target name="init"> 
    1314    <mkdir dir="${build.dir}" failonerror="false"/> 
    1415    <mkdir dir="${doc.dir}" failonerror="false"/> 
    1516  </target> 
    16   <target name="patch"> 
    17     <if test="${platform::is-unix()}"> 
    18       <exec program="patch" commandline="-p0 -i ProtoContractAttribute.cs.patch " failonerror="false"/> 
    19     </if> 
    20   </target> 
    21   <target name="ProtoBuf" depends="init patch"> 
     17   
     18  <target name="ProtoBuf" depends="init"> 
    2219    <property name="nant.settings.currentframework" value="mono-2.0" /> 
    23     <csc target="library" output="${build.dir}/${target::get-current-target()}.dll" debug="${not build.release}" optimize="${build.release}" doc="${doc.dir}/${target::get-current-target()}.xml"> 
     20    <csc target="library" output="${build.dir}/${target::get-current-target()}.dll" define="NET_2_0;NET_3_5;REMOTING" debug="${not build.release}" optimize="${build.release}" doc="${doc.dir}/${target::get-current-target()}.xml"> 
    2421      <sources> 
    2522        <include name="${source.dir}/protobuf-net/protobuf-net/**/*.cs"/>