Damao教你如何使用MacDown

MacDown

Macdown is a editor for the MarkDown. Before i know the Macdown, i used the 马克飞象 to edit the MarkDown, but it is $79/year. So my friend recommend the MacDown.So let us see how to use the MacDown


How to use the MacDown

Line Breaks

To face a line break, put to spaces and a newline (reture) at the end of the line.

  • This two-line bullet
    won't break

  • This two-line bullet
    will break

ps: 如果不想让它断行,直接回车就行,如果想让它断行,则需要进行俩 空格,再回车

Here is the code:

* This two-line bullet won't break  

* Tihs two-line bullet  
  will break

Strong and Emphasize

Strong is so easy , here is the code for this:

    **Strong**  *起强调作用

Emphasize is a style, it can make the fonts to tilt. Here is the code for this

        *Emphasize*

Also there are some hot key for them

    strong : cmd+b ;  
      
    emphasize : cmd+i ;

Headers ( like tis one! )

    Header 1  
    
    ========
    
    Header 2  
    
    -------




or

        # Header 1
        ## Header 2
        ### Header 3  
        until Header 6    
  • As for the Email , just put angle brackets around an Emali and it becomes clickable:
    damaochina@163.com
    <damaochina@163.com>
  • As for the urls , if you won't add the alt or the urls' name, you just do it like the Email , but if you want to add the alts for the urls , you must to do something additional. Link that : Damao的邮箱 , here is the code :
    [Damao的邮箱](damaochina@163.com)

转载于:https://www.cnblogs.com/damaochina/p/7060385.html

在C#中,可以使用Reflection API来生成类型和设置其属性和字段。以下是一个示例代码: ``` using System; using System.Reflection; class Program { static void Main() { // 创建一个动态程序集 AssemblyName assemblyName = new AssemblyName("MyAssembly"); AssemblyBuilder assemblyBuilder = AppDomain.CurrentDomain.DefineDynamicAssembly(assemblyName, AssemblyBuilderAccess.Run); ModuleBuilder moduleBuilder = assemblyBuilder.DefineDynamicModule("MyModule"); // 创建一个新类型 TypeBuilder typeBuilder = moduleBuilder.DefineType("MyType", TypeAttributes.Public); // 添加一个属性 PropertyBuilder propertyBuilder = typeBuilder.DefineProperty("MyProperty", PropertyAttributes.HasDefault, typeof(int), null); // 添加一个字段 FieldBuilder fieldBuilder = typeBuilder.DefineField("myField", typeof(string), FieldAttributes.Private); // 设置属性的getter和setter方法 MethodBuilder getMethodBuilder = typeBuilder.DefineMethod("get_MyProperty", MethodAttributes.Public | MethodAttributes.SpecialName | MethodAttributes.HideBySig, typeof(int), Type.EmptyTypes); ILGenerator getIlGen = getMethodBuilder.GetILGenerator(); getIlGen.Emit(OpCodes.Ldarg_0); getIlGen.Emit(OpCodes.Ldfld, fieldBuilder); getIlGen.Emit(OpCodes.Ret); propertyBuilder.SetGetMethod(getMethodBuilder); MethodBuilder setMethodBuilder = typeBuilder.DefineMethod("set_MyProperty", MethodAttributes.Public | MethodAttributes.SpecialName | MethodAttributes.HideBySig, null, new[] { typeof(int) }); ILGenerator setIlGen = setMethodBuilder.GetILGenerator(); setIlGen.Emit(OpCodes.Ldarg_0); setIlGen.Emit(OpCodes.Ldarg_1); setIlGen.Emit(OpCodes.Stfld, fieldBuilder); setIlGen.Emit(OpCodes.Ret); propertyBuilder.SetSetMethod(setMethodBuilder); // 创建类型 Type myType = typeBuilder.CreateType(); // 创建类型的实例 object instance = Activator.CreateInstance(myType); // 设置属性的值 PropertyInfo myPropertyInfo = myType.GetProperty("MyProperty"); myPropertyInfo.SetValue(instance, 42); // 获取属性的值并输出 int myPropertyValue = (int)myPropertyInfo.GetValue(instance); Console.WriteLine("MyProperty value is {0}", myPropertyValue); } } ``` 该示例程序运行时生成一个名为"MyType"的公共类型,该类型具有一个名为"MyProperty"的整数属性和一个名为"myField"的私有字符串字段。使用Reflection API设置属性的getter和setter方法。最后,程序创建该类型的实例并设置和获取其属性的值。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值