コード例 #1
0
 public MarshalHelperBuilder(CodeNamespace ns, string marshal_name, string unmarshal_name, bool type_decode)
 {
     MarshalHelper = CreateMarshalHelperType(ns, marshal_name);
     MarshalHelper.AddStartRegion("Marshal Helpers");
     MarshalHelperType = new CodeTypeReference(MarshalHelper.Name);
     UnmarshalHelper   = CreateUnmarshalHelperType(ns, unmarshal_name, type_decode);
     UnmarshalHelper.AddEndRegion();
     UnmarshalHelperType = new CodeTypeReference(UnmarshalHelper.Name);
     MarshalMethods      = new Dictionary <NdrBaseTypeReference, CodeMemberMethod>();
     UnmarshalMethods    = new Dictionary <NdrBaseTypeReference, CodeMemberMethod>();
 }