src/Inflatable/Aspect/StartMethod/MapStartMethod.cs
/// <summary>
/// Sets up the specified method.
/// </summary>
/// <param name="method">The method.</param>
/// <param name="mapping">The mapping.</param>
/// <param name="builder">The builder.</param>
Sets up the specified method.
Sets up the specified method .
public void Setup(MethodInfo method, IMapping mapping, StringBuilder builder)
        {
            if (mapping is null || builder is null)
                return;
            var Property = mapping.MapProperties.Find(x => x.Name == method.Name.Replace("set_", string.Empty, StringComparison.Ordinal));
            if (Property is null)
                return;
            builder.Append(Property.InternalFieldName).AppendLine(" = value;")
                .Append(Property.InternalFieldName).AppendLine("Loaded = true;")
                .Append("NotifyPropertyChanged0(\"").Append(Property.Name).AppendLine("\");");
        }
public void Setup ( MethodInfo method , IMapping mapping , StringBuilder builder ) { if ( mapping is null || builder is null ) return ; var Property = mapping . MapProperties . Find ( x => x . Name == method . Name . Replace ( " " , string . Empty , StringComparison . Ordinal ) ) ; if ( Property is null ) return ; builder . Append ( Property . InternalFieldName ) . AppendLine ( " " ) . Append ( Property . InternalFieldName ) . AppendLine ( " " ) . Append ( " \" " ) . Append ( Property . Name ) . AppendLine ( " \" " ) ; }
Sets up the specified method.
Sets up the specified method .
method
MethodInfo
None
mapping
IMapping
None
builder
StringBuilder
None