Beispiel #1
0
 /// <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)
 {
 }
Beispiel #2
0
 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;
 }
Beispiel #4
0
 public FluentCodeProperty(CodeMemberProperty property, FluentCodeType <TParent> type)
     : base(property, (TParent)type)
 {
 }
 public static CodeTypeDeclaration GetCodeType(FluentCodeType <TThis> type)
 {
     return(type._wrappedType);
 }