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 ) ); } }
internal ObjectBindInfo[] GetBoundComponents(ObjectWrapper wrapper) { return(CodeGenerator.GetFieldsToBind(wrapper).ToArray()); }