繁体   English   中英

将Objective-C方法转换为C#

[英]Converting Objective-C Method to C#

我正在尝试将以下Objective-C方法转换为C#,但遇到了麻烦。

- (void)collectionView:(UICollectionView *)collectionView moveItemAtIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath;

这个对吗?

public void moveItemAtIndexPath(UICollectionView collectionView, NSIndexPathToIndexPath, NSIndexPath FromIndexPath)

我相信这是以下内容:

public void moveItemAtIndexPath(UICollectionView collectionView, NSIndexPath fromIndexPath, NSIndexPath toIndexPath)

尽管“公共/受保护/私人”全在您身上。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM