zoukankan      html  css  js  c++  java
  • Lambda 表达式(C# 编程指南)

    最近在研究ArcGIS  Runtime,被下面代码中的这个符号搞晕了() =>,总感觉这是一个函数,去微软的网站查了查,果不其然,这个也算一个新的东西吧,学习了,感谢群友的帮忙。

       LocalServer.InitializeAsync(() =>
          {
              if (LocalServer.LicenseStatus != LicenseStatus.Valid)
              {
                  MessageBox.Show("This ArcGIS Runtime license is not valid");
              }

              _graphicsLayer = MyMap.Layers["GraphicsLayer"] as GraphicsLayer;

              _drawFeatures = new Draw(MyMap);
              _drawFeatures.DrawComplete += new EventHandler<DrawEventArgs>(_drawFeatures_DrawComplete);


              _localPointtoPointRouting = new LocalGeoprocessingService(_packageFolder + @"PointToPointWBarriers.gpk", GPServiceType.Execute);
              _localPointtoPointRouting.StartAsync((callback) =>
      {
          if (callback.Error != null)
              MessageBox.Show("Error creating local GP service:\n" + callback.Error.Message, "Error", MessageBoxButton.OK, MessageBoxImage.Error);
          else
          {

              StartLocationButton.IsEnabled = true;
              StopLocationButton.IsEnabled = true;
              CreateRoute.IsEnabled = true;
          }
      });


          });

    http://msdn.microsoft.com/zh-cn/library/bb397687.aspx

  • 相关阅读:
    说说oracle分页的sql语句
    在desk于webi中资料查询不一致
    hql语句查询实体类采用list方法的返回结果集
    Come and join us at English corner
    一个失败项目引发的思考
    Use excel Macro export data from database
    Mark
    恭送功臣
    整理下心情
    Insert data from excel to database
  • 原文地址:https://www.cnblogs.com/zuiyirenjian/p/2106821.html
Copyright © 2011-2022 走看看