/// <summary> /// Creates a new instance. /// </summary> /// <param name="method">The property.</param> /// <param name="typeBuider">Optional, can be null.</param> public FluentCodeMethod(CodeMemberMethod method, FluentCodeType <TParent> typeBuider) : base(method, typeBuider) { }
public FluentCodeField(CodeMemberField field, FluentCodeType <TParent> type) : base(field, (TParent)type) { }
/// <summary> /// Creates a new instance. /// </summary> /// <param name="method">The wrapped type.</param> /// <param name="parentType">Optional, can be null.</param> public FluentCodeMethodBase(TWrappedType method, FluentCodeType <TParent> parentType) : base(parentType, new CodeBodyProvider(method.Statements)) { _codeTypeMember = new FluentTypeMemberMethodDummy(method); _wrappedType = method; }
public FluentCodeProperty(CodeMemberProperty property, FluentCodeType <TParent> type) : base(property, (TParent)type) { }
public static CodeTypeDeclaration GetCodeType(FluentCodeType <TThis> type) { return(type._wrappedType); }