Posts by Michel Aquino • 146 points
4 posts
-
4
votes2
answers1077
viewsQ: Implement abstract method in Python inheritance
Be the following class hierarchy, where class "A" has an abstract method called "foo": # -*- coding: utf-8 -*- import abc class A: __metaclass__ = abc.ABCMeta def __init__(self): pass…
-
3
votes1
answer163
viewsA: Composition with fluent interfaces
You must use Generic in the base class, use "T" as a return of "Getdata", and when inheriting this class pass the type you want to use in the "Getdata" method": // Classe base para composição public…
c#answered Michel Aquino 146 -
2
votes1
answer393
viewsQ: How to generate an XML schema, where I have some nodes with namespace and others without
I am trying to generate an XML schema, for future validations, where some attributes contain a specific namespace, and others do not: <?xml version="1.0" encoding="UTF-8"?> <root…
-
2
votes1
answer789
viewsQ: Which aspect-oriented programming frameworks exist for . NET?
Researching about aspect-oriented programming, found a framework that implements this paradigm, the Postsharp. But this tool is paid for some Ports. Does anyone know any more?…