protected override void ImplementCommonIXMetaData() { CodeMemberProperty localElementDictionary = CodeDomHelper.CreateInterfaceImplProperty("LocalElementsDictionary", "IXMetaData", CodeDomHelper.CreateDictionaryType("XName", "System.Type")); localElementDictionary.GetStatements.Add(CodeDomHelper.CreateCastToInterface("IXMetaData", "schemaMetaData", "Content")); localElementDictionary.GetStatements.Add(new CodeMethodReturnStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("schemaMetaData"), "LocalElementsDictionary"))); CodeMemberProperty contentProperty = CodeDomHelper.CreateInterfaceImplProperty("Content", "IXMetaData", new CodeTypeReference("XTypedElement")); contentProperty.GetStatements.Add(new CodeMethodReturnStatement(new CodePropertyReferenceExpression(new CodeThisReferenceExpression(), "Content"))); this.decl.Members.Add(localElementDictionary); this.decl.Members.Add(contentProperty); }