GetFieldsToBind() static private method

static private GetFieldsToBind ( ObjectWrapper wrapper ) : List
wrapper ObjectWrapper
return List
コード例 #1
0
 static void GenerateWrapperFields(CodeTypeDeclaration type, ObjectWrapper wrapper)
 {
     foreach (ObjectBindInfo binfo in CodeGenerator.GetFieldsToBind(wrapper))
     {
         type.Members.Add(
             new CodeMemberField(
                 new CodeTypeReference(binfo.TypeName, CodeTypeReferenceOptions.GlobalReference),
                 binfo.Name
                 )
             );
     }
 }
コード例 #2
0
 internal ObjectBindInfo[] GetBoundComponents(ObjectWrapper wrapper)
 {
     return(CodeGenerator.GetFieldsToBind(wrapper).ToArray());
 }